MCP server for CData Box connector enabling SQL query execution, table discovery, and column introspection
The server provides three SQL-focused tools with clear names and mostly adequate schemas. Naming follows the verb_noun pattern well (get_tables, get_columns, run_query). Descriptions are present but vary in quality and completeness, they explain WHAT the tools do but lack guidance on WHEN to use them or error recovery. Schemas are well-structured with proper JSON Schema types and required fields. However, output schemas are not documented (tools return CSV but no schema is provided), and error handling lacks recovery guidance. The tool definitions are explicitly registered in code (see GetColumnsTool.register, GetTablesTool.register, RunQueryTool.register), not inferred. STDIO transport is a hard cap at 50 for protocolReadiness, limiting overall appeal.
Retrieves a list of fields, dimensions, or measures (as columns) for an object, entity or collection (table). Use the `{prefix}_get_tables` tool to get a list of available tables. The output of the tool will be returned in CSV format, with the first line containing column headers.
Retrieves a list of objects, entities, collections, etc. (as tables) available in the data source. Use the `{prefix}_get_columns` tool to list available columns on a table. Both `catalog` and `schema` are optional parameters. The output of the tool will be returned in CSV format, with the first line containing column headers.
Execute a SQL SELECT statement.
No output schemas documented for any tool. Tools return CSV format but LLMs need structured field documentation to parse results reliably.
Error handling lacks recovery guidance. Exceptions are caught but generic RuntimeExceptions thrown without context (see GetColumnsTool.run, GetTablesTool.run). LLMs have no actionable error messages.
Parameter descriptions lack constraints and formats. 'catalog' and 'schema' are optional but no guidance on what happens if both/either are omitted, or max length, or valid characters.
Tool descriptions do not guide LLM on when to call each tool (discovery vs query). For example, run_query should say 'Use get_tables and get_columns to explore schema first, then construct queries.'
Inferred effective spec: <=2025-11-25.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-22 | D | 57 | <=2025-11-25 | v2 |
| 2026-03-09 | F | 37 | - | v1 |
No result limits or pagination support. Tools do not specify what happens if a table has thousands of columns or a query returns millions of rows. Without caps, results could exhaust token budgets.
Security: SQL parameter in run_query is free-form string. No mention of SQL injection prevention. LLMs could be tricked into constructing malicious queries. Should validate/sanitize SQL or provide parameterized query support.