Skip to main content
Glama

Read a slate as Mermaid

export_mermaid
Read-onlyIdempotent

Read a Slatebox slate as Mermaid text for docs or code; converts mind maps to mindmap, project plans to Gantt charts, and other diagrams to flowcharts.

Instructions

Read a slate as Mermaid text, to put a diagram in docs or code: a mind map as mindmap, a project plan as a Gantt chart, anything else as a flowchart.

To Mermaid. Write a slate you can open as Mermaid text: notes and lines as a flowchart (direction from the layout; shapes, labels, arrow ends and dashed, thick or hidden lines kept; a note drawn behind notes it holds becomes a subgraph of them; a workshop's lanes become subgraphs of cards), a mind map as a mindmap, a launch plan as a Gantt chart (format gantt, start is its first day). Returns the text, the same as a Markdown code block, and for a public slate its plain-text address (/slates/.mmd). A public slate reads without a token. What Mermaid cannot say is named in warnings: dashed lines are written as Mermaid's one broken style (dotted), a line with an arrow only at its start is written from its other end, and a line with an end on the open canvas is left out.

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": {
      "shareId": "<shareId>"
    },
    "name": "export_mermaid"
  }
}

Input Schema

NameRequiredDescriptionDefault
startNoA Gantt chart's first day, YYYY-MM-DD (default today).
formatNoauto: a mind map that is one tree as mindmap, anything else as flowchart.auto
stylesNoAlso write each note's colors (style lines).
shareIdYesThe slate ID from its address: /canvas/<shareId>.
canonicalNoWrite the canonical flowchart a repository keeps: notes, frames and lines sorted by id, note ids as names, a fixed direction, and a first-line header "%% slatebox:<shareId> rev:<n> hash:<h>" (the hash changes only when the diagram does, never when notes move). slates.importMermaid with sync reads it back.
directionNoWith canonical: the direction written.LR

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.5.2

TDQS

A4.7/5.0
Behavior5/5

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

Annotations already declare this a safe idempotent read, and the description adds real context beyond them: what is returned (the text, a Markdown code block, and a /slates/<id>.mmd address for public slates), token requirements, and a warnings channel for what Mermaid cannot express. The explicit lossy-conversion caveats — dashed becomes dotted, a start-only arrow is reversed, open-canvas lines are dropped — are exactly the behavioral details an agent cannot infer from annotations.

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?

Despite its length, every sentence carries distinct information: the first sentence sets the purpose, and the second addresses capability and limitations. The information density justifies the size, with no filler.

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?

With no output schema, the description carries the burden of explaining return values and does so fully: the Mermaid text, the Markdown code-block form, and the public .mmd address. Combined with the warnings list and token note, an agent has everything needed to call and interpret this six-parameter tool correctly.

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

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3; the description earns an extra point by explaining the semantic mapping behind the format choice (mind map as mindmap, launch plan as gantt with its first day) and what canonical output implies. The canonical mechanics are already spelled out in the schema, so this is additive framing rather than new information.

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?

The description opens with a specific verb and resource ("Read a slate as Mermaid text") and immediately distinguishes the output variants: mind map to mindmap, project plan to Gantt, anything else to flowchart. The inverse sibling is named (slates.importMermaid reads the canonical form back), so an agent can tell the two directions apart without opening a 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?

It states the use case (put a diagram in docs or code) and gives selection guidance for the format parameter via the mind-map/Gantt/flowchart mapping, plus an auth condition ("A public slate reads without a token"). It does not explicitly rule out situations or contrast with viewing tools like show_slate, so it stops short of full alternative routing.

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