Generate Plantuml Diagram
generate_plantuml_diagramGenerate 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.
When to Use
Use this tool when you need to 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.. This is part of the PlantUML provider on xpay✦.
MCP Connection
Connect to xpay✦ to access this tool (and 2+ others):
{
"mcpServers": {
"xpay": {
"url": "https://mcp.xpay.sh/mcp?key=YOUR_API_KEY"
}
}
}
For Claude Code:
claude mcp add --transport http xpay "https://mcp.xpay.sh/mcp?key=YOUR_API_KEY"
How to Execute
Use the xpay✦ meta-tools to run this tool:
xpay_details— Get full input schema:xpay_details("plantuml/generate_plantuml_diagram")xpay_run— Execute:xpay_run("plantuml/generate_plantuml_diagram", { ...inputs })
Input Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
format | string | No | Output image format (SVG or PNG) |
plantuml_code | string | Yes | PlantUML diagram code. Will be automatically validated for syntax errors before generating the diagram URL. |
output_path | string | No | Optional. 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. |
Pricing
- Cost: $0.01/call
- Balance check: Use
xpay_balanceto check remaining credits - Get your API key at xpay.tools — $5 free credits included
Related Skills
- PlantUML (all tools) — 3 tools
- Encode Plantuml — $0.01/call
- Decode Plantuml — $0.01/call
Links
- Tool page: https://xpay.tools/plantuml/generate-plantuml-diagram/
- Provider: https://xpay.tools/plantuml/
- All tools: https://xpay.tools/explore
How to Execute
Input Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
format | string | No | Output image format (SVG or PNG) |
plantuml_code | string | Yes | PlantUML diagram code. Will be automatically validated for syntax errors before generating the diagram URL. |
output_path | string | No | Optional. 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. |
Related Tools from PlantUML
Install Skill
Pricing
Cost
$0.01/call
Model
Flat rate
Provider
PlantUML

