Skip to main content
Glama

miro_generate_diagram

Convert Mermaid code into a structured diagram on Miro whiteboard with shapes and connectors using auto-layout.

Instructions

Generate diagram on Miro from Mermaid code. Creates shapes and connectors with auto-layout.

USE WHEN: "create flowchart", "generate diagram", "draw process flow", "sequence diagram"

TYPES: flowchart/graph, sequenceDiagram FLOWCHART: A[rect] --> B{diamond} -->|label| C((circle)) SEQUENCE: participant A; A->>B: sync; A-->>B: async

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
diagramYesDiagram code in Mermaid format (flowchart/graph syntax)
start_xNoStarting X position (default: 0)
start_yNoStarting Y position (default: 0)
board_idYesBoard ID to create the diagram on
parent_idNoParent frame ID to create diagram inside
node_widthNoWidth of each node (default: 180)
output_modeNoOutput mode: 'discrete' (default) returns individual items, 'grouped' groups all items together for easy move/delete, 'framed' creates a frame containing all items
use_stencilsNoUse professional flowchart stencils instead of basic shapes. Provides better visual styling with proper flowchart symbols (terminator, process, decision, I/O).

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
messageYes
node_idsYes
frame_idsNo
node_urlsNo
diagram_idNo
frame_urlsNo
diagram_urlNo
output_modeNo
total_itemsNo
diagram_typeNo
connector_idsYes
diagram_widthYes
nodes_createdYes
connector_urlsNo
diagram_heightYes
frames_createdYes
connectors_createdYes
Behavior3/5

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

Describes creation and auto-layout, but no annotations about safety or destructiveness. Limited detail on side effects, limitations, or Mermaid version compatibility.

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?

Concise with purpose front-loaded. Uses list and code examples efficiently. Minor improvement could group usage guidance more clearly.

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?

Covers main purpose and param usage, but does not explain output schema or return values. Lacks details on auto-layout behavior, though schema coverage is high.

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 has 100% coverage with clear descriptions; the description adds value by providing Mermaid syntax examples and explaining output modes, enriching beyond the schema.

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 clearly states 'Generate diagram on Miro from Mermaid code' with examples of use cases and syntax. It differentiates from siblings like miro_create_shape by focusing on bulk diagram generation.

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?

Provides explicit 'USE WHEN' phrases covering common diagramming tasks. However, lacks guidance on when not to use it or alternatives like individual item creation tools.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/olgasafonova/miro-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server