Skip to main content
Glama

Draw a mind map, flowchart or Gantt plan

import_mermaid

Draw Mermaid flowcharts, mind maps, or Gantt charts onto a new or existing Slatebox slate as editable notes and lines, with an optional preview before saving.

Instructions

Draw an editable mind map, brainstorm, flowchart or project plan (Gantt chart) on a shared slate, from an outline written in Mermaid (flowchart/graph, mindmap or gantt), on a new slate or beside what an existing slate holds. Returns the slate link, where the team edits it live and can present it.

Draw Mermaid. Draw a Mermaid flowchart, mind map or Gantt chart as real notes and lines, laid out in the diagram's direction (subgraphs and Gantt sections become frames). With shareId the diagram is added beside what that slate holds (it needs edit access; everyone on the slate sees it drawn); without, it becomes a new private slate of yours named name (or the diagram's title). Mermaid in a Markdown ```mermaid block is read too. Instead of mermaid, outline takes plain lines (one item per line, indented for children; bullets, numbers and # headings are read) and draws them as a mind map with each item's words exactly as written. Another kind of diagram is refused with 422 mermaid_unsupported; a mistake with 400 mermaid_invalid naming its line; a diagram past a slate's limits (1,000 notes counting frames, 5,000 lines, frames 50 deep, or a subgraph too big for one frame) with 422 mermaid_too_large. mode "preview" shows what would be drawn without saving.

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_mermaid"
  }
}

Input Schema

NameRequiredDescriptionDefault
baseNoWith sync: the diagram as last synced (what the slate and the file last agreed on). Only what it names may be deleted.
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).
syncNoWith shareId: read a flowchart back onto the slate it came from (canonical export, format names = note ids) instead of drawing it beside: new names are drawn, changed text and shapes updated, lines connected, disconnected or relabeled; nothing is moved. Notes and lines named in base that the diagram drops are deleted; notes added on the slate since are never touched.
confirmNoThe confirmation id from a confirmation_required result, once the person agreed.
mermaidNoMermaid source (flowchart/graph, mindmap or gantt), or Markdown holding a ```mermaid block. Give this or outline.
outlineNoInstead of mermaid: an outline, one item per line, indented (spaces or tabs) for children; leading bullets and numbers are dropped and # headings nest by level. Drawn as a mind map (up to 20,000 characters and 1,000 items), each item's words kept exactly as written. Several items at the top go around a central idea named by name (or "Outline").
shareIdNoAdd to this slate. Leave out to make a new private slate.
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

A4.3/5.0
Behavior5/5

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

Rich disclosure beyond the annotations: permission requirements ('it needs edit access', 'you need to be an editor of it'), social side effects ('everyone on the slate sees it drawn'), sync semantics including that notes and lines named in base that the diagram drops are deleted while notes added since are never touched, and precise failure modes with status codes and limits (1,000 notes, 5,000 lines, frames 50 deep). The one wrinkle is that sync deletion sits uneasily with destructiveHint:false; the description itself is candid about it rather than misleading, but the annotation and the sync path should be reconciled.

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

Conciseness3/5

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

Front-loaded with a useful summary sentence mentioning the returned slate link, and organized logically (what it does, variants, errors, preview). However, the second sentence re-announces 'Draw Mermaid. Draw a Mermaid flowchart...' redundantly, and the prose is packed with long parentheticals that make the modal differences (new slate vs shareId vs sync) harder to scan than a short bulleted structure would.

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 ten-parameter, zero-required, non-idempotent mutation tool with no output schema, the description covers everything an agent needs: which input to supply, what shareId/name/projectId do, what preview changes, what sync will and will not delete, the confirmation flow, and each failure code. It also states the return value (slate link), compensating for the absent output schema.

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% and the individual properties are already thoroughly documented (base, sync, outline, shareId, projectId, mode all carry detailed text). The description largely restates those semantics, adding only the error codes and size limits, so it does not meaningfully extend parameter meaning beyond the schema. Baseline 3 applies.

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?

Names a specific action and artifact set: draws a mind map, flowchart or Gantt chart from Mermaid source or a plain-line outline onto a shared slate. It also implicitly separates itself from export_mermaid (opposite direction) and from generic diagram importers by restricting input to Mermaid/outline and rejecting other formats with a named error ('Another kind of diagram is refused with 422 mermaid_unsupported'). An agent can identify the tool without opening 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?

Gives concrete routing conditions: with shareId the diagram is drawn beside an existing slate (needs edit access), without shareId it creates a new private slate named by name or the diagram's title; projectId places it in a folder; mode 'preview' shows without saving; outline is the alternative input when no Mermaid exists. It does not name a sibling tool for non-Mermaid diagram types, only the refusal code, so tool-level alternatives remain implicit.

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