MCP server for accessing Sage Cloud Accounting data via JDBC connections, providing tools to query tables, retrieve column metadata, and execute SQL SELECT statements
This server provides three SQL-oriented tools for querying a Sage Cloud Accounting data source. While tool names follow verb_noun patterns (get_tables, get_columns, run_query), the definitions have significant gaps. All three tools have descriptions, but descriptions lack specificity about prerequisites, when to use them, and what LLMs should expect. Parameter schemas exist but are minimal, catalog and schema parameters are optional but lack constraints or defaults. The run_query tool's SQL parameter accepts a free-form string with only English-language guidance about valid clauses, not machine-checkable constraints. Output is CSV format (mentioned in descriptions) but the actual schema/structure is not documented, LLMs cannot predict column names or data types. Error handling is minimal (runtime exceptions are converted to RuntimeException with getMessage()). No pagination support despite CSV output potentially being large. No field-naming consistency between tools (e.g., 'table' vs 'TABLE_NAME' in output). The server assumes agents understand SQL-92 syntax and Sage Cloud data model details.
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.
Output schemas not documented. All three tools return CSV format but the actual structure (field names, data types, number of rows, pagination strategy) is never formally specified. LLMs cannot predict downstream field names or plan multi-step queries.
Tool descriptions lack depth and actionability. run_query description is only 41 characters, insufficient to guide LLM selection. Descriptions do not explain prerequisites, error cases, or when to call one tool vs another.
Parameter constraints are English-only prose, not machine-checkable. run_query's 'sql' parameter lists valid SQL-92 clauses in the description string rather than using enum, regex pattern, or maxLength. LLMs cannot validate input against schema.
Inferred effective spec: <=2025-11-25.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-22 | F | 44 | <=2025-11-25 | v2 |
| 2026-03-09 | F | 36 | - | v1 |
No pagination support. If get_tables or get_columns returns hundreds of rows, the entire result is returned as CSV without limit or offset parameters. Large results bloat context and degrade LLM reasoning.
Error handling is minimal and non-actionable. Exceptions are caught and converted to RuntimeException with only getMessage(). No guidance on what the LLM should do next (retry? ask user? check syntax?), no classification of errors (retryable vs fatal), no recovery steps.
Parameter descriptions lack specificity. catalog and schema are marked 'optional' but the description does not explain: what is the default behavior if omitted? Are they case-sensitive? Do they support wildcards? What happens if you specify an invalid catalog?
run_query description mixes tool purpose with constraint details. All SQL dialect, clause, and quoting rules are stuffed into the parameter description as unstructured text. Should be split into description and formal schema constraints.
No tool-chaining support or discovery guidance. If an LLM calls run_query with an invalid table name, it gets a generic error with no suggestion to call get_tables first. No cross-references in descriptions to help agents self-correct.