A Model Context Protocol (MCP) server that provides a standardized interface for AI assistants to interact with a SurrealDB database.
The server provides 10 well-intentioned SurrealDB tools with explicit schema definitions and risk categorization. However, multiple critical gaps prevent production readiness: (1) parameter descriptions lack critical implementation details (format, constraints, examples), (2) output schemas are completely undocumented, LLMs cannot plan downstream calls or extract return fields, (3) no error guidance, agents have no recovery path on failures, (4) tool descriptions exist but are generic and do not answer when/why to use each tool over alternatives. The naming is verb-forward and clear (query, select, create, update, delete, merge, patch, upsert, insert, insertRelation), which is a strong baseline. But the server falls short on the 'describe the full picture' principle that separates a C-grade from a B-grade implementation.
Create a new record in a table with the specified data.
Delete a specific record by ID.
Insert multiple records into a table. Use 'create' for single records.
Create a graph relation (edge) between two records.
Merge data into a specific record. Only updates specified fields.
Apply JSON patches to a specific record.
Execute a raw SurrealQL query against the connected database.
No output schemas documented for any tool. LLMs cannot plan downstream calls, extract return field names, or know whether a tool returns a single record, array, count, ID, or success flag. This violates pattern:tool and forces agents to call tools speculatively and parse responses with no guidance.
Parameter descriptions rely on examples ('e.g., user:john', 'e.g., table:id') instead of formal constraints (regex patterns, enum, or format keywords). LLMs frequently reuse example values literally, causing failed calls. No guidance on valid formats, required constraints, or error cases.
Inferred effective spec: <=2025-11-25.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-22 | D | 58 | <=2025-11-25 | v2 |
| 2026-03-09 | F | 0 | - | v1 |
Select all records from a table or a specific record by ID.
Update a specific record with new data. Replaces the entire record content.
Upsert a record: create if it doesn't exist, update if it does.
No error handling or recovery guidance. Tools (especially destructive ones like delete) do not describe what errors they can raise, what causes them, or how an agent should respond. No error categorization (retryable vs. user-fixable vs. fatal). Agents have no path to self-correct or escalate.
Destructive operations (delete, create, update, merge, patch, upsert, insert, insertRelation) lack confirmation/dry-run patterns or explicit irreversibility warnings. Agents can inadvertently delete records without a safety barrier.
The 'data' and 'patches' parameters use additionalProperties: true without documenting what fields are valid, which are required, what constraints apply (string length, numeric ranges), or whether sensitive fields should be rejected. LLMs will hallucinate field names and values.
Tool descriptions are generic (10 - 50 words) and do not explain when to use one tool over a similar one. E.g., when should an agent call merge vs. update? When is patch preferred over update? The descriptions assume LLMs know SurrealDB semantics, but most do not.