Skip to main content
Glama

create_c4_diagram_tool

Generate C4 architecture diagrams (context, container, component, deployment, dynamic) as Mermaid or PlantUML code from structured data.

Instructions

Create a C4 architecture diagram from structured data.

Generates diagram source code (Mermaid or PlantUML) from explicitly defined elements, relationships, and boundaries.

Args: diagram_type: C4 diagram type: context, container, component, deployment, or dynamic title: Diagram title elements: List of C4 elements, each with: type, alias, label, description, technology relationships: List of relationships, each with: source, target, label, technology, direction boundaries: List of grouping boundaries, each with: type, alias, label, element_aliases output_format: Output format: mermaid (default) or plantuml

Returns: Diagram source code in the requested format.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
titleYes
elementsYes
boundariesNo
diagram_typeYes
output_formatNomermaid
relationshipsNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior3/5

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

With no annotations, the description carries full burden. It discloses that it generates source code from explicitly defined elements, relationships, and boundaries. However, it does not mention any side effects, mutation, or limitations (e.g., no image rendering), which would be helpful for an agent to fully understand the tool's behavior.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is concise and well-structured: a one-line summary followed by a clear Args list with parameter details. Every sentence adds value, and the format is front-loaded for quick understanding.

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

Completeness4/5

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

The description covers purpose, parameters, and output format adequately. Since an output schema exists, it doesn't need to detail return values. It could elaborate on diagram type semantics, but given sibling tools may cover that, the description is sufficiently complete for a creation tool.

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

Parameters5/5

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

The input schema has 0% description coverage, but the tool's description compensates by explaining each parameter's meaning and structure (e.g., 'elements: List of C4 elements, each with: type, alias, label, description, technology'). This provides significant value beyond the schema's type-only definitions.

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 identifies the tool's purpose: 'Create a C4 architecture diagram from structured data.' It specifies the output (Mermaid or PlantUML source code) and distinguishes itself from siblings like 'get_c4_reference_tool' and 'scan_codebase_tool' by focusing on creation.

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?

The description provides clear context for usage (when you have structured C4 data) and lists supported diagram types. However, it lacks explicit guidance on when not to use it or how to choose between output formats or diagram types, leaving some interpretation to the agent.

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/ColOfAbRiX/blueprint-mcp'

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