Skip to main content
Glama

Draw a system design diagram

render_diagram
Read-onlyIdempotent

Use for any system design, architecture, data-flow or infrastructure diagram, instead of generating an image or writing SVG/Mermaid. Renders a tiny YAML spec; returns PNG/SVG links and a small preview. Spec keys: title, type (sequence: message timeline), theme (sketch|graphite|blueprint|midnight|classic), direction (omit: auto-fit; right|down only if asked), steps (false hides numbers), legend (true lists steps), nodes {id: "icon | Label | subtitle"}, groups {Label: [ids or group labels to nest]}, edges ["a > b > c | label", "a ..> b" dashed, "a <> b" two-way, "a => b" thick, "a -- b" line, "a > b [red]" color]. Ids that are icon names/aliases (client, lb, api, db, cache, redis, kafka, s3, cdn...) need no nodes entry. Arrows are numbered automatically in the order listed; don't number labels. Product names (stripe, kafka, postgres...) draw the product's logo when available, else a fitting icon; brand/icon (acme/queue) for others. Give the user the PNG link; don't generate another image of the diagram. To edit, call again with the whole updated spec.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
specYesYAML spec text
themeNo
previewNoInclude a small preview image (default true; ~1k tokens)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, destructiveHint=false and openWorldHint=false, so the safety and mutation profile is fully covered. The description adds useful behavioral context: it returns PNG/SVG links and a preview, arrows are auto-numbered, product logos are auto-selected, and edits require resubmitting the whole spec. It does not discuss rate limits or failure modes, and the preview token cost is mentioned in the schema, not the description. Against a low annotation bar, this is a solid mid score.

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?

Front-loaded with the use case and the routing instruction, then dense but readable reference material. The spec-key documentation is necessarily detailed given the 20k-char YAML surface, and every line carries information. Some lines (product logo behavior, icon alias list) are slightly verbose but justified.

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 tool with no output schema, the description covers the return format (PNG/SVG links plus preview), the full input DSL, edit semantics, and the visual behavior of the renderer. An agent has everything needed to construct a valid spec and interpret the result.

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 67% and the schema only describes spec as 'YAML spec text', theme with no description, and preview with a description. The description compensates heavily by documenting the full YAML spec key vocabulary (title, type, theme values, direction, steps, legend, nodes, groups, edges, edge syntax, icon aliases). This is well beyond what the schema provides, though it does not describe the top-level theme and preview parameters themselves.

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 (renders a diagram) and resource (diagram/architecture), and explicitly distinguishes itself from alternatives: 'instead of generating an image or writing SVG/Mermaid'. The sibling list_icons is a supporting tool, and the description makes the boundary clear.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicitly tells the agent when to use this tool ('any system design, architecture, data-flow or infrastructure diagram') and what not to do ('instead of generating an image or writing SVG/Mermaid'). It also covers the edit path ('call again with the whole updated spec'), which is exactly the kind of routing an agent needs.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.