Skip to main content
Glama

A2UI Atomic Catalog

drawio_open

Idempotent

Open a diagram you wrote in draw.io (diagrams.net). YOU write the diagram as mxGraph XML, the format draw.io reads; this tool checks it, and returns a link that opens it in the draw.io editor for the person, plus a .drawio file to download (kept for one hour). Nothing is drawn or laid out for you, so give every shape its x, y, width and height. The XML must be uncompressed and shaped like this (ids unique, every shape parent="1", edges name source and target ids): If the check finds problems it lists each one with the cell id and the fix; correct the XML and call again. Limits: 200 KB of XML and 500 cells. For AWS and Google Cloud diagrams the check also looks at missing labels, overlaps, text that does not fit, contrast and placement (for example an instance outside a subnet); each finding names the cell. These are vendor-style conventions drawn from draw.io's own libraries, not an official checker from AWS or Google. Labels may use simple HTML (set html=1 in the style); scripts, iframes, event handlers and javascript: links are refused. The diagram travels in the link's fragment, which is never sent to a server.

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": {
      "xml": "<xml>"
    },
    "name": "drawio_open"
  }
}

Input Schema

NameRequiredDescriptionDefault
xmlYesThe mxGraph XML: an <mxGraphModel> (or an uncompressed <mxfile> holding one).
hostNodiagrams (default): open in app.diagrams.net. self: open in the editor hosted on a2uicatalog.ai, so the diagram never leaves this domain.
styleNoStyle pack. auto (default): if the diagram names AWS or Google Cloud services, check it against that vendor's conventions and report findings. aws or gcp: force a pack. none: no style checks. Name a service in the label ("Lambda", "Cloud Run") or set a service="..." attribute on an <object> wrapper.
titleNoOptional name for the downloaded file, for example "checkout-flow".
polishNoVisual finish using draw.io's own effects, layered on your styles without overriding any key you set: clean (default, nothing added), soft (rounded corners, gentle shadow, subtle gradient), glass (soft plus a glass shine), sketch (hand-drawn outlines). Text, images, icons, containers and shapes restyled by a vendor pack are left alone.
animateNoAdd moving dashes along the connectors (draw.io flow animation). Shows in the draw.io editor; default false.
restyleNoRewrite recognised services to draw.io's own icon styles and recognised groups (AWS: VPC, subnets, Region; Google Cloud: zones) to their group styles. AWS has icons for 350 services; for Google Cloud draw.io has 19 core products as stencils, and other Google services keep your style. Default false: the diagram is passed through as you wrote it and only reported on.

Output Schema

NameRequiredDescriptionDefault
okYesTrue when the diagram was accepted.
statsNoCounts of shapes and connections (success).
styleNoVendor style detection, when applied.
errorsNoWhy the diagram was refused (the refusal also sets isError).
polishNoWhat polish changed, when requested.
open_urlNoLink that opens the diagram.
warningsNoNon-blocking findings.
download_urlNoLink to the file.
download_expires_in_secondsNoLink lifetime in seconds.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "additionalProperties": true,
      +  "properties": {
      +    "download_expires_in_seconds": {
      +      "description": "Link lifetime in seconds.",
      +      "type": "integer"
      +    },
      +    "download_url": {
      +      "description": "Link to the file.",
      +      "type": "string"
      +    },
      +    "errors": {
      +      "description": "Why the diagram was refused (the refusal also sets isError).",
      +      "items": {
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    "ok": {
      +      "description": "True when the diagram was accepted.",
      +      "type": "boolean"
      +    },
      +    "open_url": {
      +      "description": "Link that opens the diagram.",
      +      "type": "string"
      +    },
      +    "polish": {
      +      "additionalProperties": true,
      +      "description": "What polish changed, when requested.",
      +      "properties": {},
      +      "type": "object"
      +    },
      +    "stats": {
      +      "additionalProperties": true,
      +      "description": "Counts of shapes and connections (success).",
      +      "properties": {},
      +      "type": "object"
      +    },
      +    "style": {
      +      "additionalProperties": true,
      +      "description": "Vendor style detection, when applied.",
      +      "properties": {},
      +      "type": "object"
      +    },
      +    "warnings": {
      +      "description": "Non-blocking findings.",
      +      "items": {
      +        "type": "object"
      +      },
      +      "type": "array"
      +    }
      +  },
      +  "required": [
      +    "ok"
      +  ],
      +  "type": "object"
      +}
  2. First observed

TDQS

A4.4/5.0
Behavior5/5

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

Goes well past the annotations: outputs (editor link, downloadable file kept one hour), size limits (200 KB, 500 cells), the exact validation feedback shape (per-cell id plus the fix), the security refusals (scripts, iframes, event handlers, javascript: links), and the honest caveat that AWS/GCP checks are vendor-style conventions, not an official checker. The privacy note that the diagram rides in the URL fragment and never reaches a server is exactly the kind of context annotations cannot convey.

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?

Front-loaded with purpose, then constraints, then the XML sample, which earns its length as a concrete format contract. The prose sentence carrying both the AWS/GCP scope and the "not an official checker" disclaimer runs long, and the vendor caveat arrives after the reader has already absorbed the example.

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

Completeness5/5

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

For a seven-parameter tool with an output schema, this covers what an agent still needs: input format rules, failure-and-retry behavior, hard limits, security restrictions, and the artifact lifetime. The presence of an output schema means return values need not be re-explained, and none of the remaining gaps are load-bearing.

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 100%, so the baseline is 3. The description does add real meaning for the xml parameter — uncompressed, structural rules (unique ids, parent="1", edges naming source/target), and a worked example — plus the hint that labels may carry simple HTML. The other six parameters are covered entirely by the schema and get no additional treatment in the description.

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

Purpose5/5

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

"Open a diagram you wrote in draw.io" pairs a specific verb with the resource, and immediately follows with "YOU write the diagram as mxGraph XML ... Nothing is drawn or laid out for you," which separates it from any sibling that generates diagrams (draw_architecture, draw_sequence). An agent can tell what it produces (editor link + .drawio file) without reading the schema.

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

Usage Guidelines4/5

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

Clear context for use — you supply the XML, the tool validates it, and on failure you "correct the XML and call again," which establishes the retry loop. It stops short of an explicit exclusion or named alternative (e.g. "for auto-generated architecture diagrams use draw_architecture"), so it is a strong 4 rather than a 5.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.