Token-efficient MCP server for MySQL, PostgreSQL, and SQLite
Server provides 17 tools with consistent naming (verb_noun pattern) and basic descriptions. All tools have input schemas with typed parameters and descriptions. However, descriptions are terse (avg ~60 chars, well below the 194-char baseline), lack context on WHEN to use tools, and omit recovery guidance. Output schemas are not documented. Error handling is minimal, no guidance on retryability, user-fixable vs fatal errors, or recovery steps. DDL tools lack confirmation/dry-run patterns despite irreversible consequences. No tool annotations (readOnlyHint, destructiveHint) despite clear risk stratification.
Add a column to a table (requires --allow-ddl).
Alter column type (requires --allow-ddl).
EXPLAIN query plan summary for slow SELECT diagnostics.
Create table from DDL (requires --allow-ddl).
Describe table columns and indexes.
Drop column; needs confirm:true and --allow-ddl.
Drop table; needs confirm:true and --allow-ddl.
Descriptions are terse (avg ~60 chars vs 194-char baseline) and lack context. Missing WHEN to use each tool, dependencies, and recovery guidance. E.g., 'List schemas/databases' does not explain when to call it before list_tables or what structure it reveals.
No tool annotations (readOnlyHint, destructiveHint, idempotentHint) despite clear risk stratification (READ_ONLY, WRITE, DESTRUCTIVE, IRREVERSIBLE). LLM cannot infer safety properties from tool names alone.
DDL tools (drop_table, drop_column, truncate_table) require confirm:true but lack dry-run or explicit confirmation workflow. No guidance on what happens if confirm is false or missing. Agents may misunderstand the safety model.
Inferred effective spec: <=2025-11-25.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-23 | D | 54 | <=2025-11-25 | v2 |
Execute one SQL statement or a concurrent batch via queries[].
List foreign keys for a schema or table.
List indexes (flat: name, columns, unique) for a schema or table.
List schemas/databases.
List configured database sources.
List tables in a schema.
DDL schema mutations (requires --allow-ddl).
One-shot schema survey: tables + approx row counts (planner stats; omit if unknown; use COUNT(*) for exact) + FKs.
Search schemas, tables, columns, or indexes with keyword filter.
Truncate table; needs confirm:true and --allow-ddl.
Output schemas are not documented in tool definitions. LLMs cannot plan downstream calls or extract required fields (e.g., what does schema_overview return? Does it include row counts, FK details, or both?).
Error handling is minimal. No guidance on retryability, user-fixable vs fatal errors, or recovery steps. E.g., if execute_sql fails due to syntax error, should the LLM retry or ask the user? If a table is not found, what alternatives exist?