Model Context Protocol server for DrawX — generate draw.io diagrams and architecture designs from natural language, inside Claude, Cursor, and VS Code.
Three tools with complete schemas and descriptions. Naming is clear and verb-based (generate_, architect_, whoami). Descriptions are substantive (150-250 chars, within baseline 194 avg). All parameters have types and descriptions. However, output schemas are not formally documented, responses are described in prose only. Error handling is present but generic (errorResult function). No tool annotations (readOnlyHint, destructiveHint, idempotentHint). Missing parameter constraints on some fields (e.g., 'mode' enum is declared but not all enums are fully constrained). Composition is sound, each tool has one clear responsibility.
Run the DrawX Architect Co-Pilot: from a brief, produce a High-Level Design diagram (optionally a Low-Level Design and a written design document). Returns the diagram XML and rationale. Best for 'design me an architecture for X' requests.
Generate a draw.io (diagrams.net) diagram from a natural-language description. Returns complete mxfile XML you can save as a .drawio file or paste into diagrams.net. Pass previousXml to modify an existing diagram.
Show the DrawX account tied to the configured API key, its plan, API tier, and remaining monthly API quota. Useful to confirm the key works before generating.
Output schemas not formally documented. Responses described in prose (e.g., 'Returns the diagram XML and rationale') but no structured schema definition visible. LLMs cannot reliably extract fields from unstructured text responses.
No tool annotations (readOnlyHint, destructiveHint, idempotentHint). All three tools are read-only (no state mutation), but this is not declared in the schema. Agents cannot infer safety properties without explicit hints.
Error handling is generic. errorResult() returns user-readable text but does not categorize errors as retryable, user-fixable, or fatal. LLMs cannot determine whether to retry, ask the user, or abort.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-23 | C | 64 | 2026-07-28+ | v2 |
API key (DRAWX_API_KEY) is injected server-side, which is correct. However, no audit logging visible in the code. Tool calls should be logged with user, timestamp, parameters, and outcome for compliance and debugging.
whoami tool name is non-standard. Verb-noun pattern would be 'get_account' or 'show_account'. 'whoami' is a Unix command idiom, not an action verb. LLMs may not recognize it as a discovery tool.