Electron + Next.js DrawIO Application with AI-powered diagram editing capabilities
This is a desktop Electron application (not a traditional MCP server) with tool definitions scattered across multiple files. The 5 tools have inconsistent documentation: two tools (drawio_read, get_drawio_xml) have NO input schema defined (empty object), descriptions are present but very short (7-17 chars after translation removal), and parameter schemas lack descriptions. Tool naming uses underscores consistently but descriptions are extremely terse. No output schemas documented. Error handling not visible in provided code. The server is STDIO-only (Electron/browser environment), which is a hard cap at 50 for protocolReadiness. Overall definition quality reflects poor descriptions, missing parameter documentation, and lack of output schema guidance.
替换 DrawIO XML 内容(供 AI 工具调用),保存新的 XML 内容到存储,并返回成功状态和 XML 内容
获取当前 DrawIO XML 内容(从 IndexedDB)
Client bridge tool to export DrawIO diagram (multi-page export, Electron/browser environment)
Client bridge tool to get DrawIO XML from the editor (Electron/browser environment)
Client bridge tool to replace DrawIO XML in the editor (Electron/browser environment)
Two tools (drawio_read, get_drawio_xml) declare input schemas as empty objects with NO properties or descriptions. Cannot be scored as proper schemas.
Descriptions are extremely short and lack actionable context. 'Client bridge tool to get DrawIO XML from the editor (Electron/browser environment)' is only 82 chars and does not explain WHEN to use this tool vs others, or what it returns. Baseline for A-grade tools: 50-200 chars with clear purpose and return guidance.
No tool has a documented output schema. LLMs cannot predict what fields are returned, which breaks downstream planning and chaining. Example: export_drawio accepts 'format' parameter but no schema documents whether it returns a file path, base64 blob, or file object.
Inferred effective spec: <=2025-11-25.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-22 | F | 37 | <=2025-11-25 | v2 |
| 2026-03-09 | D | 51 | - | v1 |
Parameter in drawio_edit_batch named 'skipExportValidation' lacks description. Parameter names alone are insufficient, LLMs need explicit documentation of what happens when set to true vs false.
export_drawio parameter 'format' has no enum constraint or description of valid values. Free-form strings invite hallucinated formats. Should enumerate: ['png', 'svg', 'pdf', 'jpg', 'bmp', etc.]
Tool drawio_edit_batch accepts 'xml' parameter (drawio_xml, requestId, isRollback, skipExportValidation, description) but no description explains acceptable XML structure, encoding, or validation rules. LLMs cannot know what makes valid DrawIO XML.
No error handling guidance visible. If export_drawio fails with unsupported format, or drawio_edit_batch rejects malformed XML, what should the LLM do? No recovery suggestions documented.
Tool naming includes 'drawio' prefix on all tools (drawio_read, drawio_edit_batch, etc.), which is redundant and violates verb_noun convention. Better names: read_diagram, edit_diagram, get_xml, replace_xml, export_diagram. Tool name alone should signal action.
Inconsistent naming patterns across tools: get_drawio_xml vs replace_drawio_xml (get/replace) but also drawio_read (verb first). LLMs conflate similar names, standardize to verb_noun (read_diagram, write_diagram, export_diagram) or noun_verb (diagram_read, diagram_write) throughout.