Validate and analyze Mermaid diagram syntax
validate_mermaid_diagramDeterministically lint and analyze Mermaid diagram syntax (flowchart, sequence, ER, Gantt, mindmap, state). Detects diagram category, counts nodes and edges, and reports line-level structural syntax issues.
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": {
"source": "<source>"
},
"name": "validate_mermaid_diagram"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| source | Yes | Mermaid diagram source code to validate and analyze (e.g. "flowchart TD\n A[Start] --> B[End]"). |