Skip to main content
Glama

Architecture diagram

arch_diagram

Generate a Mermaid architecture view (container, context, or deploy) from a repository scan and optionally save it.

Instructions

Build a Mermaid architecture view (container | context | deploy) from the repository scan, optionally save it.

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

Input Schema

NameRequiredDescriptionDefault
pathNo
saveNo
viewNo
titleNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.1

TDQS

C2.9/5.0
Behavior2/5

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

With no annotations, the description carries the full disclosure burden, and it does confirm a dependency (the repository scan) and optional persistence. But it says nothing about where a saved diagram goes, whether it overwrites existing files, what permissions are required, or what the call returns — significant gaps for a tool whose optional 'save' is a write side effect.

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?

A single front-loaded sentence with no filler; the parenthetical enumeration keeps the view options scannable. It is efficient, though its brevity contributes to the gaps in other dimensions rather than being a purely positive trait.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Four parameters at 0% schema coverage, no annotations, and no output schema mean the description is the only source of behavioral information — and it doesn't cover output format, save destination, overwrite behavior, or the unlabeled parameters. Under-specified relative to a tool that can write to disk.

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

Parameters2/5

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

Schema description coverage is 0%, so the description must compensate, and it only partly does: 'view' values are echoed (already visible in the enum) and 'save' is hinted at with 'optionally save it'. The 'path' and 'title' parameters are never explained, leaving an agent to guess whether path is a repo root, an output file, or a scan reference.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

A specific verb and resource: 'Build a Mermaid architecture view' with three named view types, generated 'from the repository scan'. An agent can tell what it produces, though it doesn't distinguish itself from siblings like diagram_render or diagram_save, which the trailing 'optionally save it' partly overlaps with.

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

Usage Guidelines3/5

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

Usage is only implied: the tool builds a diagram from a repository scan, suggesting arch_scan must run first. There is no explicit when-to-use vs. when-not guidance and no statement about how this differs from diagram_render or diagram_save, which is exactly the ambiguity an agent needs resolved.

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