Couchbase MCP Server - The Developer Data Platform for Critical Applications in Our AI World
This server has 6 tools with basic schema definitions and descriptions, but several critical gaps prevent a higher score. Tool names follow verb_noun convention (get_*, run_, upsert_, delete_), which is good. However, descriptions are sparse (avg 60-100 chars, well below the 194-char baseline for A+ tools), parameter descriptions lack depth, and output schemas are undocumented. Error handling is minimal, no actionable recovery guidance, no categorization of error types. The tool definitions are directly visible in src/mcp_server.py, so not inferred, but lack sufficient detail for LLM-optimal selection and execution.
Delete a document by its ID. Returns True on success, False on failure.
Get a document by its ID from the specified scope and collection.
Get the schema for a collection in the specified scope. Returns a dictionary with the schema returned by running INFER on the Couchbase collection.
Get the names of all scopes and collections in the bucket. Returns a dictionary with scope names as keys and lists of collection names as values.
Run a SQL++ query on a scope and return the results as a list of JSON objects.
Insert or update a document by its ID. Returns True on success, False on failure.
Output schemas are undocumented. No tool specifies what fields the LLM should expect in responses. For example, get_scopes_and_collections_in_bucket returns a dict[str, list[str]], but this is only visible in the Python type hint, not in any JSON Schema or tool description visible to the client.
Descriptions lack actionable context. Most descriptions are 40 - 50 chars and do not explain WHEN to use the tool, what prerequisites exist, or what the LLM should do with the result. E.g., delete_document_by_id says 'Delete a document by its ID. Returns True on success, False on failure.' but does not warn that this is irreversible or suggest confirmation patterns.
Inferred effective spec: <=2025-11-25.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-22 | D | 50 | <=2025-11-25 | v2 |
| 2026-03-09 | F | 43 | - | v1 |
Destructive tool (delete_document_by_id) lacks confirmation or dry-run support. Agents can permanently delete documents without explicit confirmation, increasing risk of accidental data loss.
Error handling is minimal and non-actionable. The code logs errors and re-raises exceptions, but does not categorize errors as retryable vs fatal, does not include the invalid value in error messages, and does not suggest recovery steps (e.g., 'If the collection does not exist, call get_scopes_and_collections_in_bucket to list valid collections').
run_sql_plus_plus_query accepts arbitrary SQL++ without validation. The code checks read_only_query_mode but does not validate whether a query modifies data before executing it in read-only mode. An agent could accidentally pass a DELETE or UPDATE query, which would be rejected at runtime with a generic error rather than caught and reported with guidance.
Parameter descriptions are absent or trivial. Parameters like 'scope_name', 'collection_name', 'document_id' have descriptions like 'The scope name', which do not help an LLM decide what value to pass. For example, if the user says 'Get the user named Jack', the LLM does not know whether 'Jack' is a scope_name, collection_name, or document_id.
No pagination or result-limiting mechanism. Tools like run_sql_plus_plus_query could return thousands of rows, exhausting the context window. The tool description does not mention a limit or offer pagination parameters.
Missing tool-level metadata. The @mcp.tool() decorator does not include readOnlyHint, destructiveHint, or idempotentHint annotations that would help the agent reason about side effects and retry safety.