Skip to main content
Glama

Export draw.io diagram

drawio_export

Export a page from a connected draw.io document to PNG, SVG, or XML for sharing, documentation, or further processing.

Instructions

Export a page of the connected draw.io document to PNG, SVG or 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": {
      "format": "<format>",
      "output_path": "<output_path>"
    },
    "name": "drawio_export"
  }
}

Input Schema

NameRequiredDescriptionDefault
pageNo
formatYes
embed_xmlNo
output_pathYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.1

TDQS

C2.8/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full disclosure burden. It implies a write to disk via output_path but says nothing about overwrite behavior, whether the connected document must be saved first, permission requirements, or what happens on export failure — all significant for a mutating file-writing tool.

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

Conciseness5/5

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

A single front-loaded sentence with zero filler; the verb, scope, and format options all arrive immediately. Nothing is redundant or padded.

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

Completeness2/5

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

With four parameters, 0% schema description coverage, no annotations, and no output schema, the definition should explain more than one line. The unexplained embed_xml flag and output_path semantics leave real gaps an agent must guess at before calling.

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

Parameters2/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 largely does not. It restates the format enum values (already in the schema) and gestures at 'page', but leaves embed_xml and output_path — including path format and overwrite semantics — entirely undefined.

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 names a specific verb (export) and resource (a page of the connected draw.io document) and enumerates the three output formats. An agent can distinguish this from sibling tools like diagram_render or diagram_save, though it does not name an alternative explicitly.

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

Usage Guidelines2/5

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

There is no guidance on when to use this versus the related diagram_render, diagram_save, or drawio_import_mermaid tools, and no stated prerequisites such as the document needing to be open/connected. Usage is only implied by the word 'export'.

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