Skip to main content
Glama
C4 Diagram MCP Server

C4 Diagram MCP Server

by tarastclair

create-sequence-diagram

Create a C4-styled sequence diagram in an existing architecture project to show component interactions over time and generate PlantUML code automatically.

Instructions

Create a new C4-styled Sequence diagram within an existing architecture project.

C4-PlantUML offers limited sequence diagram support that allows reusing existing elements 
and relationships as participants and calls in a time-sequenced interaction flow.

Note: For simplicity, this implementation does not support boundaries in sequence diagrams.

Benefits:
- Automatic PlantUML code generation
- Shows interactions between components over time
- Perfect for explaining complex flows to stakeholders

Required Input Fields:
- projectId: String (ID of the project to add this diagram to)
- title: String (The name of your sequence diagram)

Optional Input Fields:
- description: String (A brief explanation of what the diagram represents)
- showElementDescriptions: Boolean (Whether to show element descriptions in the diagram)
- showFootBoxes: Boolean (Whether to show foot boxes in the diagram)
- showIndex: Boolean (Whether to show message indices in the diagram)

The response will include unique IDs that you'll need for all subsequent operations,
and the diagram will be saved in your project's sequence/ directory.

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": {
      "projectId": "<projectId>",
      "title": "<title>"
    },
    "name": "create-sequence-diagram"
  }
}

Input Schema

NameRequiredDescriptionDefault
titleYesTitle for the new diagram
projectIdYesID of the project to add this diagram to
showIndexNoWhether to show message indices in the diagram
descriptionNoOptional description of what the diagram represents
showFootBoxesNoWhether to show foot boxes in the diagram
showElementDescriptionsNoWhether to show element descriptions in the diagram

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does disclose notable behavior: the unsupported boundaries limitation, that the response returns unique IDs needed for subsequent operations, and that the diagram is saved in the project's sequence/ directory. It omits permissions/auth requirements, which is why it is not a 5.

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

Conciseness3/5

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

The opening sentence and the boundary note are well front-loaded, but the 'Benefits' bullet list is marketing-style filler and the Required/Optional parameter enumeration duplicates the 100%-covered schema, adding length without new information.

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?

For a six-parameter creation tool with no output schema, it covers the essential creation context plus the response contract (unique IDs, save location). Only permission/role expectations are missing.

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

Parameters3/5

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

Schema description coverage is 100%, so the schema already documents all six parameters, and the description's Required/Optional field list largely restates that. No extra syntax or format detail is added beyond the schema baseline.

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 and resource ('Create a new C4-styled Sequence diagram within an existing architecture project') and the C4-PlantUML sequence semantics immediately distinguish it from sibling diagram creators like create-component-diagram or create-context-diagram.

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?

It gives clear context for when to use it ('Shows interactions between components over time', 'Perfect for explaining complex flows to stakeholders') and states the boundary limitation. It does not explicitly name alternative diagram tools or when not to use this one, so it stops short of full when/when-not guidance.

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