Skip to main content
Glama

Import a draw.io, Visio, Lucid, Excalidraw, PlantUML or other diagram

import_diagram

Convert draw.io, Visio, Mermaid, and other diagram files into editable notes, lines, and frames on a slate while preserving shape positions and returning the slate link.

Instructions

Turn a diagram file from another tool (draw.io, Visio, Lucidchart, Excalidraw, tldraw, Graphviz, PlantUML, Mermaid, XMind, FreeMind, OPML, Markdown outline) into editable notes, lines and frames on a slate, keeping where its shapes were drawn. Returns the slate link. The full reference is in describe, methods ["slates.importDiagram"].

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "import_diagram"
  }
}

Input Schema

NameRequiredDescriptionDefault
dataNoThe file, base64 (at most 5 MB). Give this or text.
modeNosave (the default) writes; preview returns what would change and saves nothing. The response says which happened.save
nameNoThe new slate's name (without shareId).
textNoA text format (Graphviz, PlantUML, Mermaid, an outline, draw.io XML, OPML ...) as plain text, instead of data.
formatNoThe format, when the file name does not say it.
confirmNoThe confirmation id from a confirmation_required result, once the person agreed.
shareIdNoDraw beside what this slate holds. Leave out to make a new private slate.
fileNameNoThe file's name; its extension names the format when format is left out. Without either, the format comes from what the file holds.
projectIdNoMake the new slate in this project or folder (without shareId; you need to be an editor of it).
idempotencyKeyNoSend with confirm: the idempotencyKey from the confirmation_required result.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.5.2

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, destructiveHint=false, idempotentHint=false and openWorldHint=false, so the mutation profile is partly covered. The description adds genuine value by saying shape positions are preserved and that the slate link is returned. However, it never mentions the confirmation_required / confirm / idempotencyKey handshake that the schema implies for a non-idempotent write, which is the most consequential behavior an agent needs to know.

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?

Two tightly written sentences, front-loaded with the action and outcome, then the return value and the pointer to describe. The parenthetical format list is long but earns its place by telling the agent what inputs are accepted. The describe pointer is slightly cryptic in phrasing but still efficient.

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?

With 10 parameters, no output schema and a non-idempotent write, the description covers the purpose and return value adequately but leaves the confirmation flow and the data-vs-text requirement to the schema. It is complete enough to call correctly if the agent reads the schema, but not self-sufficient for a mutation of this complexity.

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 parameters are already documented in the schema, including the data-or-text alternative, format inference from fileName, and the save/preview mode. The description adds no parameter-level meaning beyond what the schema states. Baseline 3 is appropriate when the schema carries the parameter burden.

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?

It states a specific verb and outcome — turning a foreign diagram file into editable notes, lines and frames on a slate — and enumerates the supported source formats, so the agent knows exactly what it gets. It also names the return value (the slate link). The one gap is that it does not distinguish itself from the sibling import_mermaid, even though Mermaid is listed among the accepted formats.

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 is only implied: the tool is for bringing diagrams in from other tools, and the description points at describe with methods ["slates.importDiagram"] for the full reference. There is no explicit when-to-use versus when-not guidance and no routing between this and import_mermaid for Mermaid input. The agent must infer the selection rule from the format list.

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

Deploy Server

Other Tools