MCP server for managing and editing documents with Claude integration
DocumentMCP has two tools with basic schemas and descriptions, but significant gaps in definition quality. Both tools have short, generic descriptions (read: 47 chars, edit: 87 chars) that fall short of the production baseline (194 chars avg). The edit_document tool lacks critical safety-related documentation, no mention that it modifies state, no guidance on exact string matching requirements, no error recovery hints. Parameters are minimally described. The tool interface matches names to function names rather than user intent (edit_document vs a more descriptive name like update_document_text). Error handling exists but provides no guidance to LLMs on recovery steps. Tool composition is reasonable (read + edit are separate concerns), but the definitions themselves are underdeveloped for agent interaction.
Edit a document by replacing a string in the documents content with a new string
Read the contents of a document and return it as a string
Descriptions are below production baseline. read_doc_contents (47 chars) and edit_document (87 chars) vs. 194 char production average. Lack context for LLM tool selection and do not explain when to use each tool or what the expected behavior is.
edit_document lacks critical safety documentation. No indication that it modifies state. No guidance on exact string matching (exact whitespace match requirement buried in parameter description). No mention of consequences (write operation) or error recovery (what if old_str doesn't match exactly?).
Error messages lack recovery guidance. ValueError exceptions are raised but no LLM-friendly error classification (retryable, user-fixable, fatal). Exception for 'Doc with id not found' provides no hint to call list_docs() resource first.
Inferred effective spec: <=2025-11-25.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-22 | D | 52 | <=2025-11-25 | v2 |
| 2026-03-09 | F | 37 | - | v1 |
Tool naming could be more precise. 'edit_document' is vague, does it append, replace, insert, or restructure? 'update_document_text' or 'replace_document_text' would be clearer. Parameter 'old_str' and 'new_str' are idiomatic but could benefit from clearer naming (text_to_find, text_to_replace_with).
No output schema documentation. Tools are inferred to return strings/lists but no formal schema is declared. LLMs cannot plan downstream operations without knowing what fields/structure to expect from results.