MCP server for creating diagrams on Eraser.io
eraser-mcp defines 3 tools with mostly complete schemas and well-structured descriptions. Tool names follow verb_noun convention (create_diagram, validate_diagram, fix_diagram). Each tool has a detailed description using a custom XML structure with <purpose>, <when-to-use>, <when-not-to-use>, <examples>, and <parameters> sections. However, several quality gaps reduce the score: (1) descriptions are excessively long (1000+ chars) and use verbose XML formatting that wastes tokens and buries key decision criteria for LLM tool selection; (2) parameter descriptions in the schemas themselves are minimal (e.g., 'Diagram content in Eraser DSL format' is terse and provides no format guidance or error recovery hints); (3) no output schema is documented, the response structure is described only in narrative text ('Success message with diagram URLs') rather than a formal JSON Schema; (4) error handling is absent, there's no guidance on what happens if the API key is invalid, the diagram syntax fails server-side validation, or the Eraser API is unavailable; (5) no discussion of idempotence, retryability, or side effects; (6) the tool descriptions themselves are embedded as plain text strings rather than being extracted from well-documented handler functions.
Create and render diagrams on Eraser.io, returning URLs for viewing and editing. Used when user asks to "create", "make", "generate", "draw", or "render" a diagram with complete diagram content ready for rendering.
Automatically fix common syntax errors in Eraser diagrams and return corrected version. Used when user asks to "fix", "correct", "repair", or "clean up" diagram syntax, or after validate_diagram finds errors that can be auto-corrected.
Check Eraser diagram syntax for errors and provide detailed feedback about validity. Used when user asks "is this valid?", "check this", "validate", or "verify" about diagram syntax, or before creating a diagram when syntax correctness is uncertain.
Excessive description length and verbose XML formatting. Tool descriptions exceed 1000 characters and use custom XML tags (<purpose>, <when-to-use>, <examples>) that are not standard MCP or LLM conventions. This wastes tokens and obscures the core decision criteria (what does the tool do, when should it be called?) that LLMs need for rapid tool selection. Baseline: A+ tools keep descriptions 50 - 200 chars with plain-text, actionable phrasing.
No documented output schema. Tool responses are described only in narrative text ('Success message with diagram URLs', 'Image URL: Direct link to view/download the rendered diagram'). LLMs cannot parse freeform response descriptions reliably. Output schema should be a formal JSON Schema defining response fields (e.g., { image_url: string, edit_url: string, diagram_id: string, created_at: string }).
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-22 | D | 53 | 2026-07-28+ | v2 |
| 2026-03-09 | F | 0 | - | v1 |
Minimal parameter descriptions in input schemas. While the tool-level description includes parameter guidance, the inputSchema properties have terse descriptions (e.g., 'Diagram content in Eraser DSL format'). This provides no format guidance, character limits, or error recovery hints. Descriptions should state: expected format, length/character constraints, example patterns, and what to do if validation fails.
No error handling or recovery guidance. Tool definitions lack any mention of error cases: what if ERASER_API_KEY is missing/invalid? What if diagram content fails server-side validation? What if Eraser API is down? Each tool should document expected errors and guide the LLM to recover (e.g., 'If validation fails, call validate_diagram first to identify syntax errors').
No discussion of side effects or idempotence. create_diagram and fix_diagram modify state (create new diagrams on Eraser.io), but descriptions do not state this explicitly. LLMs need to know: Are these operations idempotent? Can I safely retry? Will calling create_diagram twice with the same content produce two diagrams or reuse one?
diagramType parameter defaults to 'sequence-diagram' but tool descriptions do not explain when to override this. If a user asks 'Create a flowchart', the LLM must infer to set diagramType='flowchart-diagram'. Descriptions should explicitly tie diagram type to user intent, e.g., 'Flowchart for logic flows and decision trees; sequence-diagram for message exchanges between actors.'