MCP server for creating, loading, and editing Word documents (.docx) with support for paragraphs, headings, tables, images, and styled text
This server has moderate naming consistency and functional parameter schemas, but suffers from weak descriptions that lack LLM-optimization and insufficient guidance on tool composition. Nine tools are explicitly defined via @mcp.tool() decorators with visible schemas. Naming follows verb_noun pattern (create_, load_, save_, add_) appropriately. However, descriptions are generic and under-optimized for LLM selection, they state WHAT the tool does but rarely WHEN to use it or prerequisites. Parameter descriptions exist but are minimal (average ~40 chars, below the 72-char baseline). Output schemas are implicit (return Dict[str, Any]) without documentation of expected fields. Error handling is basic (try-except with string messages) but provides no recovery guidance or error classification. The server lacks pagination, idempotency hints, and composition patterns. STDIO transport caps protocol readiness at 50.
Adds a heading to the Word document.
Adds a manual page break to the Word document.
Adds a paragraph to the Word document.
Adds a picture to the Word document from a server-accessible local path.
Adds a paragraph to Word doc with multiple styled text runs. Each run in text_runs is a dict: {"text": "str", "bold": bool, "italic": bool, "font_size_pt": int, "font_name": "str", "font_color_rgb": [R,G,B]}
Adds a table to the Word document.
Creates a new, blank Word document (.docx) in memory.
Descriptions are generic and lack LLM-optimization guidance. Most descriptions (e.g., 'Adds a paragraph to the Word document') are 50-60 chars, below the 194-char baseline for contextual descriptions. They omit WHEN to use a tool, prerequisites, or selection rationale.
Output schemas are not documented. All tools return Dict[str, Any] with fields like 'status', 'message', 'data' present only in docstrings or code inspection. LLMs cannot infer which fields to expect or chain results to downstream calls.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-22 | D | 50 | 2026-07-28+ | v2 |
| 2026-03-09 | F | 44 | - | v1 |
Loads an existing Word document (.docx) from 'documents_fastmcp' into memory.
Saves the current in-memory Word document (.docx) to 'documents_fastmcp'.
Parameter descriptions are minimal (average ~30-40 chars, below 72-char baseline). E.g., 'style' parameter in add_docx_paragraph lacks guidance on valid values ('Normal', 'BodyText', 'Heading1', 'ListBullet' are mentioned in the description but not formalized as enums). No regex patterns, length limits, or constraints documented.
Error handling provides no recovery guidance. Errors are returned as plain strings (e.g., 'File not found', 'An unexpected error occurred'). LLMs receive no actionable next step, should errors be retried, are they user-fixable, or fatal?
No idempotency hints or confirmation patterns. Destructive or write-heavy operations (save, add_*) lack dry-run or confirmation support. An agent retrying a failed save_docx_document call risks overwriting content unintentionally.
Tool composition lacks guidance. No batch operations (e.g., add_paragraphs taking an array). Agents building complex documents must call add_docx_paragraph repeatedly, wasting tokens and risking mid-chain failures.
add_docx_page_break has no parameters (input: {}) but lacks any description of what it does or when to use it. Description is only 35 chars ('Adds a manual page break to the Word document.'), below 20-char hard minimum for actionable guidance.
State management is implicit and not documented. Tools operate on a module-level docx_editor_instance (current_filename, in-memory document). No tool description clarifies that create_docx_document and load_docx_document mutate shared state, risking mid-workflow clobbering.