MCP server for CData Sage 300 connector providing database query and metadata tools
The server provides 3 tools with basic naming and descriptions, but lacks critical elements for LLM-optimized tool use. Tool names are reasonably verb-forward (get_, run_), but descriptions are sparse and parameter types are present but many lack detailed constraint documentation. Output schema documentation is minimal, tools return CSV strings without structured field definitions, making it impossible for downstream agents to parse results reliably. Error handling exists but provides no recovery guidance. The schema quality is inconsistent: GetTablesTool and GetColumnsTool have minimal parameter descriptions, and RunQueryTool lacks comprehensive SQL constraint documentation. Output is unstructured CSV rather than typed objects, violating the response-shaper pattern. This server lands in the C/D range, functional but missing LLM-friendly polish.
Retrieves a list of fields, dimensions, or measures (as columns) for an object, entity or collection (table). Use the `sage300_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 `sage300_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.
Output schema completely undocumented. All three tools return CSV strings with no structured field definitions. LLMs cannot reliably parse output or plan downstream tool calls. Violates response-shaper pattern.
Parameter descriptions are minimal and lack constraint documentation. E.g., 'catalog' and 'schema' parameters in sage300_get_tables have no description of what values are valid, format, or when they are required vs. optional. The only required param is documented in code (GetColumnsTool line 49: .required("table")) but this is invisible to LLMs reading the schema.
sage300_run_query description does not document SQL constraints, allowed clauses, or error cases. Description mentions 'mostly based around SQL-92' and lists allowed clauses (FROM, INNER JOIN, LEFT JOIN, GROUP BY, ORDER BY, LIMIT/OFFSET) but provides no guidance on invalid SQL behavior, max query timeout, or result row limits. Violates tool-description pattern.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-22 | F | 43 | 2026-07-28+ | v2 |
| 2026-03-09 | D | 53 | 0.8.1+ | v1 |
No error recovery guidance. All three tools throw RuntimeException with raw error messages on failure (e.g., GetColumnsTool.java line 56: 'throw new RuntimeException("ERROR: " + ex.getMessage())'. LLMs receive no guidance on whether to retry, how to self-correct, or what to try next. Violates recovery-guide pattern.
CSV output format wastes tokens and prevents structured parsing. Returns entire JDBC ResultSet converted to CSV without filtering irrelevant fields (e.g., TABLE_CAT, TABLE_SCHEM metadata). Violates strip-api-responses pattern, should return only agent-relevant fields in typed structures.
No pagination on result-returning tools. sage300_get_tables and sage300_run_query have no limit, offset, or page parameters. A catalog with thousands of tables or a SELECT returning 10k rows will blow the context window. Violates paginated-result pattern.
Missing scope/permission declarations. No indication whether these tools require read-only database access, write access, or admin permissions. Violates scope-declaration pattern, users cannot configure least-privilege access.