validate_uml
Check diagram type, format, code length, and basic syntax locally before render; returns errors and suggestions without calling Kroki.
Instructions
Validate diagram type, format, code length, and basic syntax locally before render (no Kroki call). Returns errors and suggestions.
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": {
"diagram_type": "<diagram_type>",
"code": "<code>"
},
"name": "validate_uml"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | Diagram source text. | |
| strict | No | When True, apply extra Mermaid/D2 checks (no extra PlantUML rules). | |
| diagram_type | Yes | Same as generate_uml (see uml://types). | |
| output_format | No | Intended output format (default svg); must be allowed for the type. | svg |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||