Skip to main content
Glama

export_arch_diagram

Read-only

Exports the 'arch' slice of the current project (kind='arch' blocks + arch-sync/async/db/event/data dependencies) in a universal format. Supported formats: 'mermaid-c4' (Mermaid flowchart, ideal for a GitHub README) and 'plantuml-c4' (PlantUML with C4-Container macros, for a professional rendering). Returns the serialized content + metadata + stats (number of nodes / edges). Does not touch the other slices (org, ERD, ...). Also returns warnings naming WHAT THE FILE DOES NOT CARRY for this project (operational detail — region, capacity, cost, service objective; content blocks; people; progress status) — empty when there is nothing to report. The two formats do not lose the same things: 'plantuml-c4' carries the description of each block, 'mermaid-c4' does not.

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": {
      "format": "<format>"
    },
    "name": "export_arch_diagram"
  }
}

Input Schema

NameRequiredDescriptionDefault
formatYesOutput format. 'mermaid-c4' produces a Mermaid flowchart (rendered natively on GitHub/GitLab/Notion). 'plantuml-c4' produces a C4-PlantUML diagram (rendered on any PlantUML server).
expectedProjectIdNoUUID of the project THIS call targets (overrides the session project).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / expectedProjectId / description
      Previous value: -"UUID of the project THIS call targets (overrides the session project). No access: refused, nothing changed."New value: +"UUID of the project THIS call targets (overrides the session project)."
  2. Changed1 schema field changed
    • changedInput schema / properties / expectedProjectId / description
      Previous value: -"UUID of the project targeted by THIS call. ACTUALLY targets this project instead of the session project. Refused without changing anything if access is not granted."New value: +"UUID of the project THIS call targets (overrides the session project). No access: refused, nothing changed."
  3. Changed2 schema fields changed
    • changedInput schema / properties / expectedProjectId / description
      Previous value: -"UUID du projet visé par CET appel. Cible RÉELLEMENT ce projet au lieu du projet de session. Refusé sans rien modifier si l'accès n'est pas accordé."New value: +"UUID of the project targeted by THIS call. ACTUALLY targets this project instead of the session project. Refused without changing anything if access is not granted."
    • changedInput schema / properties / format / description
      Previous value: -"Format de sortie. 'mermaid-c4' produit un flowchart Mermaid (rendu natif sur GitHub/GitLab/Notion). 'plantuml-c4' produit un diagramme C4-PlantUML (rendu sur tout serveur PlantUML)."New value: +"Output format. 'mermaid-c4' produces a Mermaid flowchart (rendered natively on GitHub/GitLab/Notion). 'plantuml-c4' produces a C4-PlantUML diagram (rendered on any PlantUML server)."
  4. First observed

TDQS

A4.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false and openWorldHint=false, so the safety profile is covered. Beyond that the description adds real context: the return shape (serialized content + metadata + stats), a warnings channel that names what the file does not carry (region, capacity, cost, content blocks, people, progress), and a fidelity difference between the two formats. The gap is that it never says how the returned content is delivered for large diagrams or whether export is deterministic/repeatable.

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?

Purpose and scope are front-loaded in the first sentence, followed by format guidance and then return behavior, which is a sensible order. It is dense with parenthetical asides and em-dash lists, and the closing sentence about the two formats not losing the same things partially revisits the earlier warnings point, but nearly every clause carries information an agent needs.

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?

There is no output schema, so the description assumes the burden and discharges it: it lists the payload (serialized content, metadata, stats, node/edge counts) and explains the warnings array's semantics and empty case. Combined with the annotations covering safety, an agent has what it needs to call this correctly.

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 is 3; the description earns above that by disclosing an asymmetry the schema does not: 'plantuml-c4' carries each block's description while 'mermaid-c4' does not, and both emit warnings. The second parameter (expectedProjectId) is only explained in the schema, which is acceptable at full coverage.

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 gives a specific verb and resource ('Exports the arch slice ... in a universal format') and bounds the scope precisely, enumerating what is included (kind='arch' blocks plus arch-sync/async/db/event/data dependencies). The closing note 'Does not touch the other slices (org, ERD, ...)' separates it from the generic export_diagram without needing to inspect either schema.

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?

Format selection is well guided: 'mermaid-c4' is flagged as ideal for a GitHub README, 'plantuml-c4' for professional rendering with C4-Container macros. It also implies when not to use it ('Does not touch the other slices'), steering non-arch exports elsewhere. It stops short of naming an explicit alternative tool or stating prerequisites, so it is clear context rather than full when/when-not routing.

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.