A Model Context Protocol server for Microsoft SQL Server that provides read-only and write database tools
This MSSQL MCP server provides 6 well-structured tools with clear names, descriptions, and input schemas. Naming follows verb_noun conventions (list_tables, describe_table, query, etc.). All tools have descriptions exceeding 20 characters. Input schemas are fully visible with type definitions and parameter descriptions. However, output schemas are not formally documented, responses are returned as JSON text without schema definitions, forcing LLMs to parse unstructured output. The execute_write tool has exceptionally detailed documentation with security rules, but lacks structured error recovery guidance. Parameter descriptions are generally adequate but could specify ranges and constraints more precisely. No enum constraints are present where they would improve robustness. Error handling returns text messages but lacks actionable recovery guidance or error classification (retryable vs fatal). The tool does not expose secrets as parameters (good), but lacks explicit permission checks and audit trail annotations.
Get parameters and definition of a stored procedure
Get column details for a specific table
Executes a write SQL statement. Rules: - WHERE required for UPDATE and DELETE. - MERGE requires ON. - TRUNCATE/DROP require confirm: true (unless dry_run is true; dry_run overrides confirm). - Multi-statement payloads are rejected unless every statement is a whitelisted DDL (CREATE/ALTER/DROP TABLE/INDEX, TRUNCATE TABLE). - Object scope: only table/index DDL; DATABASE/LOGIN/SCHEMA/PROCEDURE/VIEW/TRIGGER/GRANT etc. are rejected. - max rows: 1000 (DML/MERGE; DDL/TRUNCATE bypass the cap) - write timeout: 30s - dry_run runs inside a transaction that always rolls back; reports would-be rows. - WHERE/ON detection ignores SQL comments and quoted literals.
List all stored procedures
List all tables in the database with schema name and row counts
Execute a read-only SQL SELECT query
Output schemas not formally documented. Tools return JSON text responses without declared return schemas, forcing LLMs to parse unstructured output. This wastes tokens and invites parsing errors.
Error messages lack actionable recovery guidance. Errors return raw text like 'query failed: ...' without suggesting next steps (e.g., 'Try list_tables() first to verify schema').
Parameter descriptions lack explicit constraints and ranges. 'schema' parameters do not specify valid schema names or format; 'sql' in execute_write lacks statement length limits; no numeric bounds on any parameters.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-22 | D | 58 | 2026-07-28+ | v2 |
| 2026-03-09 | D | 52 | - | v1 |
Query tool does not document result limits. For large tables, unbounded SELECT queries can return thousands of rows, exhausting context window. No pagination support (limit, offset, cursor) despite being a discovery tool.
Tool descriptions for read-only tools (list_tables, describe_table, list_procedures, describe_procedure) do not clearly state WHEN to use them in a multi-step workflow. E.g., 'Call this first to explore schema before writing queries' is absent.
execute_write tool has detailed rule descriptions but lacks confirmation/dry-run error handling guidance. If confirm=false for a DROP, the description states the requirement but the error response doesn't guide the LLM to retry with confirm=true.
No tool annotations present. Tools lack readOnlyHint, destructiveHint, or idempotentHint metadata. Clients cannot infer which tools are safe to retry without examining descriptions.