The Diagram Assistant is the set of MCP tools, resources, and prompts that help users generate and understand UML and other diagrams. This page describes four example user prompts and how the server satisfies them.
| User prompt | Desired behavior | Tools | Resources |
|---|---|---|---|
| “Show me a Mermaid sequence diagram for an API call” | Return valid Mermaid sequenceDiagram (client → API → backend) and optionally call generate_uml("mermaid", code). |
generate_uml |
uml://examples (mermaid), uml://mermaid-examples (sequence_api) |
| “Generate a Gantt chart using Mermaid syntax” | Return valid Mermaid gantt block and optionally call generate_uml("mermaid", code). |
generate_uml |
uml://mermaid-examples (gantt), uml://templates |
| “Explain how to draw a BPMN process model” | Return concise guidance (elements, flow, BPMN 2.0.2 alignment) and optionally point to BPMN template/example. | generate_bpmn_diagram, generate_uml |
uml://bpmn-guide, uml://templates (bpmn) |
| “Convert this class diagram into Mermaid code” | Take PlantUML or description and output Mermaid classDiagram; optionally call generate_uml("mermaid", code). |
generate_uml |
uml://templates, uml://examples |
diagram_type (e.g. class, sequence, mermaid, bpmn) and code to render via Kroki or PlantUML.diagram_type (class, sequence, mermaid, d2, etc.) and code. Uses Kroki or PlantUML under the hood.mermaid, mermaid_gantt-style content via Mermaid examples).sequence_api (API call sequence), gantt (Gantt chart).Registered prompts that support the four scenarios above:
alt); then call generate_uml("mermaid", code).generate_uml("mermaid", code).uml://bpmn-guide and generate_bpmn_diagram / generate_uml("bpmn", ...).classDiagram and optionally call generate_uml("mermaid", code).Other diagram prompts (e.g. class_diagram, sequence_diagram, uml_diagram_with_thinking) remain available for general UML generation.
The server supports (among others): class, sequence, activity, usecase, state, component, deployment, object, mermaid, d2, graphviz, erd, blockdiag, packetdiag, bpmn, c4plantuml. See uml://types for the full list and descriptions.
.skill/skills/uml-diagramming/SKILL.md and references/DIAGRAM-TYPES.md for type mappings and examples.