Skip to main content
Glama

A2UI Atomic Catalog

draw_architecture

Read-onlyIdempotent

Draw an architecture or flow diagram in the chat. YOU write the diagram as Mermaid flowchart text (first line "flowchart LR" or "graph TD"; nodes like A[Web app], B[(Database)], edges like A -->|request| B). This tool lays it out and returns a finished diagram that the view draws inline (MCP Apps hosts; elsewhere the text fallback lists the nodes and edges). Call it with the Mermaid you wrote and show the result as it is: do not edit, re-encode or re-send the returned block, and do not pass it to render_surface. If it is refused, the message says what to fix; correct the Mermaid and call again. Limits: 8192 bytes of Mermaid, at most 12 nodes, 16 edges and 4 subgraphs; larger systems should be split into several diagrams (one per subsystem). Only flowcharts are supported (no sequence, class, state or ER diagrams); colours, styles and click links are not drawn; labels are plain text up to 40 characters, with no HTML or links.

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": {
      "mermaid": "<mermaid>"
    },
    "name": "draw_architecture"
  }
}

Input Schema

NameRequiredDescriptionDefault
titleNoOptional title shown above the diagram (plain text, 80 characters at most).
mermaidYesMermaid flowchart text you wrote, for example: flowchart LR\n U[Shopper] --> G[API gateway]\n G --> O[Order service]\n O --> D[(Postgres)]

Output Schema

NameRequiredDescriptionDefault
titleYesDiagram title.
blocksYesOne laid-out architecture block for the view.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "additionalProperties": true,
      +  "properties": {
      +    "blocks": {
      +      "description": "One laid-out architecture block for the view.",
      +      "items": {
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    "title": {
      +      "description": "Diagram title.",
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "title",
      +    "blocks"
      +  ],
      +  "type": "object"
      +}
  2. Added

TDQS

A4.8/5.0
Behavior5/5

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

The annotations already declare a read-only, idempotent, non-destructive render, and the description adds a lot beyond them: what the caller sees inline on an MCP Apps host versus the text fallback elsewhere, and a rule against editing, re-encoding, or re-sending the returned block. It also discloses hard limits (8192 bytes, 12 nodes, 16 edges, 4 subgraphs, 40-character plain-text labels) that the annotations cannot convey.

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?

The opening sentence is clearly front-loaded and almost every sentence adds an operational fact. It is a single dense paragraph, though, and the limits would scan better as a short list rather than being compressed inline.

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?

An output schema exists, so return values do not need to be explained, yet the description still covers the display behavior and the contract for handling the returned block. Given the 2-parameter schema and the annotation coverage, nothing an agent needs in order to call it correctly is missing.

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 would be 3. The description adds real meaning beyond it: which Mermaid first lines are accepted ("flowchart LR" or "graph TD"), how nodes and edges should be formed, and that labels become plain text capped at 40 characters with no HTML or links.

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 uses a specific verb and resource ("Draw an architecture or flow diagram in the chat") and makes the division of labor unmistakable: the agent writes Mermaid, the tool lays it out. It also distinguishes itself from the sibling render_surface by naming it as something NOT to pass the output to.

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?

It states when to use it (architecture or flow diagrams), what it does not support (sequence, class, state, ER diagrams), and what to do when the tool refuses a request (fix the Mermaid and call again). It gives an explicit alternative path for larger systems by splitting the work into one diagram per subsystem.

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.