Skip to main content
Glama

generate_plantuml_diagram

Generate PlantUML diagrams with syntax validation and error reporting. Returns embeddable image URLs for valid diagrams or structured error details for automatic correction.

Instructions

Generate a PlantUML diagram with automatic syntax validation and error reporting for auto-fix workflows. Returns embeddable image URLs for valid diagrams or structured error details for invalid syntax that can be automatically corrected. Optionally saves the diagram to a local file.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
plantuml_codeYesPlantUML diagram code. Will be automatically validated for syntax errors before generating the diagram URL.
formatNoOutput image format (SVG or PNG)svg
output_pathNoOptional. Path to save diagram locally. Automatically creates all necessary parent directories. Restricted to current working directory by default. Set PLANTUML_ALLOWED_DIRS env var (colon-separated paths, or "*" for unrestricted) to allow additional directories. Only .svg and .png extensions permitted.

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/infobip/plantuml-mcp-server'

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