MCP server for executing EdgeQL queries and managing Gel database operations
The gel-database MCP server has moderate definition quality with significant gaps. All 4 tools are explicitly defined with basic descriptions and Zod schemas, but descriptions lack depth and error handling guidance. Parameter descriptions are minimal (10-30 chars), violating the baseline of 72 chars average for A+ tools. The execute-typescript tool has an unusually long description (500+ chars) that reads more like a tutorial than a concise parameter guide. No output schemas are documented. Error handling returns generic error messages without recovery guidance. Tool names follow verb_noun convention (execute-, describe-, validate-) which is good, but descriptions do not explain WHEN to use each tool vs alternatives or clarify dependencies between them.
Get schema information for a specific type
Execute a raw EdgeQL query on the Gel database
Execute TypeScript with EdgeDB query builder access. USAGE: 1) The gelClient is ALREADY SET UP - use it directly. 2) Query builder pattern: 'const query = e.select(...); const result = await query.run(gelClient);'. 3) For direct EdgeQL: 'const result = await gelClient.query(`SELECT...`);'. 4) Common patterns: e.select(e.Type, obj => ({properties, filter: e.op(...)})), e.insert(e.Type, {properties}), e.update(e.Type, obj => ({filter_single: {id: '...'}, set: {prop: value}})), e.delete(e.Type, obj => ({filter: ...})). 5) Always use try/catch for error handling. 6) Check schema first with mcp__describe_schema if unsure about types. 7) Use e.cast() for proper type conversion when needed.
Validate EdgeQL query syntax without executing it
Parameter descriptions are minimal (10-30 characters) vs baseline 72 chars. Examples: 'The EdgeQL query to execute' (27 chars), 'Name of the type to describe' (28 chars). These lack format constraints, valid ranges, examples, or when-to-use guidance. LLMs cannot infer whether 'query' should be single-line or multi-line, parameterized or raw SQL.
No output schemas are documented. execute-edgeql returns 'Query executed successfully' with JSON results, but the schema of those results is unstated. describe-schema returns introspection results but the structure is not specified. Without documented return types, LLMs cannot plan downstream operations or extract chaining IDs (e.g., if a type_id is needed for a follow-up call).
Inferred effective spec: <=2025-11-25.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-22 | F | 46 | <=2025-11-25 | v2 |
| 2026-03-09 | F | 0 | - | v1 |
Error messages lack recovery guidance. Example from execute-edgeql: 'Error executing query: <error message>' with no hint about what to do next. The rubric requires 'Error responses must tell the LLM what to do next'. When a query fails, should the LLM try describe-schema, retry with different syntax, or ask the user?
execute-typescript description is 500+ characters of procedural tutorial text rather than a concise WHAT/WHEN/WHY statement. It lists examples (e.g., 'e.select(e.Type, obj => ...)') which violate the rule: 'Do not put example values in the description. LLMs tend to reuse example values literally.' The description should be ~100 chars explaining the tool's purpose, then parameter descriptions should detail code patterns.
Tool interdependencies are not documented. validate-query does not explain that it should be called BEFORE execute-edgeql on untrusted queries. describe-schema should be called BEFORE execute-typescript to understand available types. These discovery patterns should be explicit in parameter descriptions to guide agent planning.
execute-typescript accepts 'code' as a free-form string with no constraints on complexity, length, or allowed operations. A malicious agent could execute arbitrary TypeScript (e.g., infinite loops, memory bombs). The 'memory_limit' and 'timeout' parameters exist but lack descriptions stating their defaults (512MB, 5000ms), ranges, or units. No mention of runtime sandbox or execution model.
Schema for execute-typescript parameters lacks format/type clarity. 'timeout' and 'memory_limit' are numbers but no min/max specified. A 0ms timeout or 0MB memory_limit could silently fail. 'use_gel_client' defaults to true but this is not documented in the parameter description, only inferred from the default value in code.
Hard-coded database credentials in source code. getBranchClient() contains host='localhost', port=10700, user='edgedb', password='6GmB7hZI5NTziQ1xEdGaGoQe' directly in code. The rubric mandates: 'Credentials must never appear as tool parameters. Use server-side secret injection via environment variables or vault.' These should be loaded from environment or secure config.
No input validation or sanitization. execute-edgeql accepts arbitrary 'query' strings and 'args' objects. If an LLM is tricked into passing SQL injection payloads or malicious JSON, there is no guard. The rubric requires: 'Treat all agent-provided input as untrusted. Sanitize against SQL injection, command injection, and path traversal.'
No permission/scope declarations. Tools do not declare what permissions they require (e.g., 'read:database', 'write:database'). The rubric states: 'Each tool should declare what permissions it requires. This enables least-privilege agent configurations and clear audit trails.'