MCP server exposing guarded database tools to any MCP-compatible AI app (Claude Desktop, Claude Code, Cursor, ...). Reuses the exact same implementations the agent uses (execute_run_sql / execute_run_stats from src/tools/), so the safety guarantees are identical: SELECT-only, table-allowlisted, row-capped, enforced by the same code either way (src/db/connection.py). This server is a thin protocol adapter, not a second implementation to keep in sync.
Two tools with reasonable descriptions and parameter schemas, but significant gaps in output documentation and error handling guidance. run_sql has a strong description (180+ chars) explaining prerequisites and constraints; run_stats similarly well-documented. Both tools declare input schemas with types and descriptions. However, neither tool documents its output schema structure, making it difficult for LLMs to plan downstream operations. Error handling is minimal, no guidance on recovery paths (e.g., 'if query fails, try simplifying the WHERE clause'). Parameter descriptions are adequate but lack format constraints (e.g., z_threshold range). No tool annotations (readOnlyHint, idempotentHint) despite both being read-only operations.
Run a single read-only SQL SELECT statement (DuckDB dialect, CTEs OK) against the games catalog and/or player_counts time series, and return the resulting rows as JSON. Rows are capped server-side. Read the schema://games resource first if you haven't already, it has the exact column names, types, and gotchas (e.g. how to compute a single 'owners' number, which columns need a JOIN).
Run real statistical analysis (not just a SQL aggregate) on the result of a read-only query. mode="compare_two_groups": a Welch's t-test between two groups, reports a p-value, query must return exactly two columns, a group label and a numeric value, one row per observation. mode="outliers": z-score anomaly detection, query must return exactly two columns, a label and a numeric value. mode="describe": summary statistics for one numeric column, query must return exactly one column.
Output schemas not documented. Neither run_sql nor run_stats declares what fields/structure the response contains. LLMs cannot plan chained operations without knowing what data is available.
No error recovery guidance. Descriptions lack actionable error messages (e.g., 'If query times out, simplify the WHERE clause' or 'If z_threshold is invalid, use 2.0 - 3.5'). LLMs receive raw errors with no next-step guidance.
Parameter constraints incomplete. z_threshold has a default (2.5) but no documented range (min/max). query parameter lacks format guidance (e.g., 'DuckDB dialect, no INSERT/UPDATE/DELETE'). LLMs may pass invalid values.
No tool annotations despite read-only semantics. Both tools are safe to retry and have no side effects, but lack readOnlyHint annotation. Agents cannot infer safety properties from the definition alone.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-23 | D | 58 | 2026-07-28+ | v2 |
Result limits mentioned in run_sql description ('Rows are capped server-side') but no explicit cap value stated. LLMs cannot reason about pagination or result size without a concrete number.