An MCP server that converts natural language queries to SQL and database metadata operations using LLM integration
Server has 6 tools with basic schemas and descriptions, but critical gaps prevent production use. Tool names lack clear verb-noun structure (e.g., 'excute_sql' is misspelled; 'get_sql_by_ddl_query' is vague). Descriptions are present but minimal (10-50 chars), providing insufficient context for LLM tool selection. Parameter descriptions are sparse or missing entirely. No output schemas documented. No error handling guidance. No idempotency hints despite write operations. Security concerns: execute_sql accepts arbitrary SQL with no injection guards or dry-run option. Tool composition is poor, get_sql_by_ddl_query generates SQL but doesn't execute it, forcing multi-step agent workflows.
将数据库查询结果转化为 echarts 图表
执行 SQL 获取数据
根据相关表的 ddl 以及用户的问题生成 SQL 语句
根据表名获取该表的 ddl
获取数据库所有的表名与注释
获取库中所有表的 ddl,了解库表结构
Tool name 'excute_sql' is misspelled (should be 'execute_sql') and lacks clear verb-noun structure. Description '执行 SQL 获取数据' (Chinese; execute SQL get data) is too terse and does not warn that this tool modifies state.
No output schemas documented for any tool. LLMs cannot infer what fields to expect in responses, forcing them to guess and risking failed downstream tool chains. E.g., get_tables_comments should document it returns [{table_name: string, comment: string}].
Tool 'excute_sql' accepts arbitrary SQL with no input validation, injection guards, or dry-run confirmation. Agents can accidentally drop tables or corrupt data. Missing destructiveHint annotation and confirmation-request pattern.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-23 | F | 45 | 2026-07-28+ | v2 |
Descriptions are too brief (10-50 chars) and lack context for LLM tool selection. E.g., 'get_sql_by_ddl_query' description does not explain when to use it vs. direct SQL execution, or that it requires DDL input. Baseline for A+ tools is 50-200 chars.
Parameter 'sql' in excute_sql has no description or constraints. Parameter 'chartType' in convert_data_to_chart lacks enum values (bar, line, pie, etc.), inviting hallucinated chart types. No format or range constraints on any numeric/string parameters.