Skip to main content
Glama

Export an editable Draw.io diagram

export_drawio
Read-onlyIdempotent

Converts scene geometry into editable Draw.io cells with attached connectors and returns native mxfile or mxGraphModel XML for import and further editing.

Instructions

Convert supplied scene geometry into native Draw.io cells with attached connectors. Return an uncompressed mxfile document or a bare mxGraphModel. Labels are escaped, not executed. Does not recognize images, automatically infer layout, open an editor or write files. Max 32 KiB/200 elements input and 96 KiB XML.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "scene": "<scene>"
    },
    "name": "export_drawio"
  }
}

Input Schema

NameRequiredDescriptionDefault
sceneYes
pageNameNoDiagram
containerNofile

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already cover readOnly/idempotent/destructive/closed-world, and the description adds genuinely new behavior: labels are escaped and not executed (a security property), the output container can be an uncompressed mxfile or bare mxGraphModel, and there are explicit size caps (32 KiB/200 elements in, 96 KiB XML out). The escaping note and output caps are the kind of context annotations cannot carry.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Four compact sentences, front-loaded with the conversion action, then output shape, then safety, then limits. The telegraphic final sentence ('Max 32 KiB/200 elements input and 96 KiB XML') is efficient rather than padded, though its clipped phrasing takes a moment to parse.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a nested-object, 3-parameter tool with no output schema and zero schema descriptions, the definition covers return form, escaping, and size limits but omits pageName meaning, scene field semantics, and any error/failure behavior. It is callable but not fully self-sufficient.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the description must compensate, and it partly does: the 'mxfile document or bare mxGraphModel' phrasing explains the container enum, and '200 elements' mirrors the maxItems constraint. It says nothing about pageName or the scene sub-structure (nodes/edges/texts semantics), so a substantial portion of the nested schema is left undocumented.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description opens with a specific verb and resource ('Convert supplied scene geometry into native Draw.io cells with attached connectors') and states the return artifact (mxfile or mxGraphModel). It does not explicitly name the sibling tools validate_diagram_scene or create_flowchart_scene, so the differentiation is implied rather than stated.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage scope is defined mostly through exclusions ('does not recognize images, automatically infer layout, open an editor or write files'), which tells an agent what this tool will not do. However, it never says when to pick this over validate_diagram_scene or create_flowchart_scene, leaving the routing decision to inference.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.