A read-only SQLite MCP server (Model Context Protocol) — give your AI agent safe SQL access to a database.
Three well-named, read-only tools with clear descriptions and proper input schemas. Naming follows verb_noun convention (list_tables, describe_table, query). Descriptions are concise (10 - 200 chars) and explain purpose and constraints. Input schemas use proper JSON Schema with types and descriptions. However, output schemas are not formally documented in the tool definitions, only inferred from code. Error handling is present but minimal; no recovery guidance for common failures (e.g., 'table not found'). The max_rows parameter lacks explicit min/max bounds in the schema (though enforced in code). Resources and prompts are well-designed but not tools. Overall solid for a read-only utility, but lacks production-grade error messaging and output schema documentation.
Get the column schema (name, type, nullability, primary key) for one table.
List all tables in the database.
Run a READ-ONLY SQL query (a single SELECT or WITH statement) and return the rows. Writes (INSERT/UPDATE/DELETE/DROP/...) are rejected. Results are capped at max_rows.
Output schemas not formally documented. Tools return dicts/lists but no schema definition visible in tool registration. LLMs cannot plan downstream calls without knowing return structure.
max_rows parameter lacks explicit min/max bounds in schema. Code enforces 1 - 1000, but schema only shows default=100. LLMs may pass invalid values; validation happens at runtime.
Error messages are minimal. ValueError for 'unknown table' or 'empty query' do not guide recovery. Should suggest 'Call list_tables() first' or list available tables.
No tool annotations (readOnlyHint, idempotentHint). All three tools are read-only and idempotent, but this is not declared in the tool metadata.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-23 | D | 59 | 2026-07-28+ | v2 |
describe_table parameter 'table' description says 'as returned by list_tables' but does not explain what happens if the table does not exist or how to recover.