A comprehensive interface to SQL Server databases for LLMs through MCP
Server has 19 tools with basic schemas and descriptions, but significant gaps limit production readiness. All tools are READ_ONLY except refresh_table_field_digest (WRITE). Descriptions are present but generic (avg ~60 chars, well below 194-char baseline). Parameter descriptions exist but lack detail on constraints, formats, and valid ranges. No output schemas documented. Error handling is minimal, no recovery guidance or actionable error messages visible in code. Tool naming follows verb_noun convention (good), but composition issues exist: multiple discovery tools (list_tables, list_schemas, list_stored_procedures) could be unified; analyze_table_data and get_sample_data overlap in intent. No tool annotations (readOnlyHint, destructiveHint) despite clear risk levels. Security: no visible input validation, SQL injection guards, or permission checks in sampled code.
Analyze query execution history.
Analyze table data for patterns and statistics.
Execute a SELECT query against the database.
Export SQL query results in various formats.
Find duplicate records in a table.
Find foreign key relationships for a table.
Find tables related to a given table through foreign keys.
No output schemas documented for any tool. LLMs cannot plan downstream calls or extract required fields. Violates pattern:tool and pattern:response-shaper.
Descriptions are generic and lack actionable context. Most are 45-65 chars (well below 194-char baseline). No guidance on WHEN to use each tool vs similar alternatives (e.g., analyze_table_data vs get_sample_data). Violates pattern:tool-description.
No input validation visible in export_data or execute_select. SQL injection guards not evident. LLMs can pass arbitrary SQL. Violates pattern:tool-gateway and pattern:secret-injection.
Inferred effective spec: <=2025-11-25.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-23 | D | 50 | <=2025-11-25 | v2 |
Get general information about the database.
Get the definition of a stored procedure.
Get example queries for a table.
Get sample data from a table.
Get digest information for table fields.
Get recommendations for a table based on usage patterns.
Get schema (columns, FKs) for a table in allowed schemas.
List all schemas in the database.
List all stored procedures in the database.
List tables/views in allowed schemas.
Refresh the table field digest.
Search for schema objects by name or pattern.
No tool annotations (readOnlyHint, destructiveHint, idempotentHint) despite clear risk levels. refresh_table_field_digest is WRITE but unmarked. Violates current MCP spec (2026-07-28) tool annotation requirement.
Composition: analyze_table_data and get_sample_data both retrieve table data but with unclear distinction. Multiple discovery tools (list_tables, list_schemas, list_stored_procedures) could be unified. Violates pattern:tool (single responsibility).