Skip to main content
Glama

Read the diagram as Mermaid

get_diagram_mermaid
Read-only

Convert the open BPMN diagram into a Mermaid flowchart for READMEs, wikis, or Mermaid-enabled chats; lanes and pools become subgraphs, while message flows and associations become dotted links.

Instructions

Returns the open diagram as a Mermaid flowchart (flowchart LR), for a README, a wiki or a chat that displays Mermaid. Lanes and pools become subgraphs, message flows and associations dotted links. Positions, colors and the detailed types of tasks and events are lost.

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": "get_diagram_mermaid"
  }
}

Input Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.4.6

TDQS

A4.7/5.0
Behavior5/5

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

Annotations already mark it read-only with openWorldHint=false, but the description goes much further: it documents the fidelity trade-off ('positions, colors and the detailed types of tasks and events are lost') and the exact conversion mapping (lanes and pools to subgraphs, flows and associations to dotted links). That tells the agent what it will and will not get back, which never appears in the structured fields.

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?

Two sentences, front-loaded with the output format, then the intended consumers, then the fidelity caveat. No filler, no restating of the title, and every clause carries information the agent cannot get elsewhere.

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 zero-parameter, read-only export tool with no output schema, the description covers what is returned, what it is good for, and what is lost in conversion. There is no meaningful gap left that would cause a mis-call.

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?

The tool takes zero parameters, so baseline is 4. The description still adds a relevant output constraint by fixing the diagram direction to 'flowchart LR', which is not settable via any input.

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?

States a specific verb (returns) plus resource (the open diagram) plus the exact output form (Mermaid flowchart, LR orientation). That immediately distinguishes it from siblings get_diagram_image and get_diagram_xml, which read the same resource in different formats.

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?

The consumer list ('for a README, a wiki or a chat that displays Mermaid') gives a clear condition under which this tool is the right pick. It stops short of naming explicit exclusions such as 'use get_diagram_xml when you need fidelity', leaving the agent to infer the alternative from the sibling names.

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