Three read-only tools with basic schemas and descriptions. Tool names follow verb_noun pattern (executeSelectQuery, getDatabaseSchema, getDatabases) and are reasonably clear. All tools have descriptions (194-250 chars, within baseline 34-392 range). Input schemas use Zod with type definitions and descriptions. However, critical gaps: (1) No output schemas documented, LLMs cannot predict return structure; (2) Parameter descriptions lack format/constraint details (e.g., 'query' doesn't specify max length, SQL dialect, or row limits); (3) No error guidance, catch blocks return generic 'Failed to execute query' without actionable recovery steps; (4) No pagination support despite tools returning potentially large result sets; (5) SQL injection risk in getDatabaseSchema (string interpolation in filter construction) not mitigated in tool description. executeSelectQuery validates SELECT prefix but lacks row limits. Overall: functional but below production baseline for agent-facing tools.
Executes a parameterized SELECT query against the database
Retrieves schema information from a specified database
Retrieves a list of available databases from MSSQL Server
No output schemas documented. LLMs cannot predict return structure (field names, types, nesting). executeSelectQuery returns {success, rowCount, data} but data structure is undocumented. getDatabaseSchema returns {tables: TableInfo[]} but TableInfo structure is only visible in code, not in tool definition.
Parameter descriptions lack actionable constraints. 'query' parameter says 'Must begin with SELECT' but omits: max length, row limit, timeout, supported SQL features. 'filter' and 'server' in getDatabases lack format guidance. LLMs cannot validate inputs without explicit constraints.
Error responses are generic and non-actionable. All tools return {error, message} with no recovery guidance. 'Failed to execute query' tells LLM nothing about whether to retry, ask user, or try a different tool. No error classification (retryable vs fatal).
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-23 | D | 54 | 2026-07-28+ | v2 |
No pagination support. getDatabaseSchema and getDatabases can return unbounded result sets. Large schemas or many databases will blow context window. No limit, offset, or cursor parameters documented.
SQL injection risk in getDatabaseSchema. Filter construction uses string interpolation: `input.tables.map(t => \`'${t}'\`).join(',')` without escaping. Tool description does not warn about input sanitization or mention that table/schema names are validated.