Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
KROKI_SERVERNoKroki server URLhttps://kroki.io
MCP_READ_ONLYNoDisable file writesfalse
MCP_OUTPUT_DIRNoDiagram output directory (local runtime only)./output
PLANTUML_SERVERNoPlantUML server URLhttp://plantuml-server:8080
USE_LOCAL_KROKINoUse local Kroki instancefalse
USE_LOCAL_PLANTUMLNoUse local PlantUML instancefalse
MCP_BATCH_MAX_ITEMSNoMax items per generate_uml_batch20
MCP_MAX_CODE_LENGTHNoMax diagram code length500000
MCP_RATE_LIMIT_PER_MINUTENoHTTP rate limit per IP for diagram/MCP routes (0 = off)0

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

This server publishes no instructions, or was last inspected before Glama recorded them.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": true
}
logging
{}
prompts
{
  "listChanged": false
}
resources
{
  "subscribe": false,
  "listChanged": false
}

Tools

Functions exposed to the LLM to take actions

NameDescription
list_diagram_typesA

List supported diagram types with Kroki backend, description, and formats (same data as uml://types resource). Use when the client cannot read resources.

generate_uml_batchA

Generate multiple diagrams in one call. Each item is like generate_uml (diagram_type, code, output_format?, theme?, scale?). Optional shared output_dir for all items. Returns a list of per-index results or errors.

generate_umlA

Generate any UML or diagram by type (class, sequence, mermaid, d2, etc.)

validate_umlA

Validate a diagram by compiling it on the renderer. Runs local structure checks first, then a real Kroki compile, so valid reflects what the renderer accepts (a TikZ figure that does not compile is reported invalid). Returns errors, suggestions, compiled, and compile_ms.

render_diagramA

Render a diagram and return it as an MCP image plus the server-side file path. Use this instead of generate_uml when the figure should appear in chat or be uploaded: the image needs no base64 copying in the conversation, and local_path is a file the wiki writer can upload directly.

Prompts

Interactive templates invoked by user choice

NameDescription
uml_diagramBase prompt for UML diagram generation
uml_diagram_with_thinkingPrompt for generating UML diagrams with plan-then-generate. Same workflow as uml_diagram (plan first, then code and generate_uml), plus explicit planning instructions and optional sequential-thinking MCP guidance.
class_diagramPrompt for generating UML class diagrams
sequence_diagramPrompt for generating UML sequence diagrams
activity_diagramPrompt for generating UML activity diagrams
usecase_diagramPrompt for generating UML use case diagrams
mermaid_sequence_apiPrompt for a Mermaid sequenceDiagram showing a typical API call: client, API, optional auth/DB, request/response, and optional alt block.
mermaid_ganttPrompt for a Mermaid gantt chart with title, dateFormat, sections, and tasks.
bpmn_process_guidePrompt that instructs the model to explain how to draw a BPMN process model: start/end events, tasks, gateways, sequence flow, lanes, aligned with BPMN 2.0.2. Optionally point to uml://templates (key bpmn), uml://examples (key bpmn), and generate_uml.
c4_modelTask-specific guidance for C4 via Kroki c4plantuml backend (aligned with uml://templates key c4plantuml).
wireviz_harnessAligned with uml://templates and uml://examples for wireviz.
bpmn_executable_processTask-first BPMN XML; aligned with uml://templates (key bpmn).
convert_class_to_mermaidPrompt for converting a class diagram (PlantUML or prose) into Mermaid classDiagram. Instructs to output Mermaid classDiagram and optionally call generate_uml("mermaid", code).
algorithm_explainerTask-focused prompt for explaining algorithms as diagrams. Steers the model through (1) picking a diagram shape that matches the algorithm's structure, (2) labeling each step with its complexity, and (3) using layout directives that reduce crossing arrows. Then call `generate_uml` with the chosen `diagram_type` and the raw source.
paper_concept_diagramTask-focused prompt for academic-paper concept diagrams with clickable citation links.

Resources

Contextual data attached and managed by the client

NameDescription
get_diagram_typesGet available diagram types
get_diagram_templatesGet diagram templates for different diagram types
get_diagram_examplesGet diagram examples for different diagram types
get_output_formatsGet supported output formats for each diagram type
get_capabilitiesType → backend → formats matrix for tooling and clients.
get_server_infoGet MCP server information
get_diagram_recipesReturn curated starter recipes that map a use case to a ready-to-edit source body.
get_recommended_workflowReturn the recommended workflow: plan first, then call generate_uml.

TDQS

A4/5.0

Scored across 5 tools

Disambiguation4/5

Each tool has a mostly distinct role: listing types, single generate, batch generate, validate, and render. The main ambiguity is between generate_uml and render_diagram, but the description explicitly steers usage ('use this instead of generate_uml when the figure should appear in chat'), which resolves most misselection risk.

Naming Consistency4/5

All names follow a snake_case verb_noun pattern (list_diagram_types, generate_uml, generate_uml_batch, validate_uml, render_diagram). Minor inconsistency: three tools use the '_uml' resource suffix while render_diagram uses '_diagram', but the convention remains readable and predictable.

Tool Count5/5

Five tools is well-scoped for a diagram generation server, with each tool earning its place (discovery, single gen, batch gen, validation, image rendering). No obvious padding or redundancy.

Completeness4/5

The core lifecycle (discover types, generate, batch, validate, render to image/file) is covered with no dead ends. Minor gaps exist around managing generated artifacts (e.g., listing or cleaning up previously written output files), but agents can work around this.

Maintenance

ActivityMaintained
ResponsivenessNo issues