Skip to main content
Glama

Import Mermaid into draw.io

drawio_import_mermaid

Convert Mermaid diagram code into native draw.io cells on a page in the connected editor document, letting you turn text-based diagrams into editable draw.io shapes.

Instructions

Convert Mermaid into native draw.io cells on a page of the connected editor document.

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": {
      "mermaid": "<mermaid>"
    },
    "name": "drawio_import_mermaid"
  }
}

Input Schema

NameRequiredDescriptionDefault
modeNo
mermaidYes
insert_modeNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.1

TDQS

C2.7/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 behavioral burden, and it does not say that the operation mutates the document, whether existing cells are destroyed under replace semantics, or what a caller gets back. The only behavioral hint is that a connected editor document is required, which is useful but far from sufficient for a write operation.

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?

It is one clean, front-loaded sentence with no filler. The brevity itself is a weakness here only because content is missing, not because the sentence is badly constructed.

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?

For a document-mutating tool with three undocumented parameters, two unlabeled enums, no annotations, and no output schema, the description is far too thin. An agent cannot determine the effect of the enum choices or the safety profile from this definition alone.

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% and the description never mentions 'mermaid', 'mode', or 'insert_mode'. Two of the three parameters are enums whose values (native vs embed, replace vs add vs new-page) are non-obvious and carry very different consequences, yet the single reference to 'a page' is the only, indirect, nod to page targeting.

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 gives a specific verb and resource pair: converting Mermaid source into native draw.io cells. The phrase 'on a page of the connected editor document' establishes the target scope and implicitly distinguishes this from drawio_export (the inverse direction), though no sibling is named outright.

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 explicit guidance on when to choose this over alternatives such as arch_diagram or drawio_export, and no stated prerequisites beyond the vague 'connected editor document'. The agent must infer that an editor session must exist before calling.

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