Check sequence diagram text
check_sequenceUse this when the user wants sequence diagram text checked without a drawing, for example "check my sequence diagram for unclosed blocks" or "which participants have no messages". Takes the same diagram text as make_sequence_diagram. Returns ready true or false; when a line breaks the grammar, the line number, the token and the reason; otherwise the participants with outgoing and incoming message counts, message counts by kind, the blocks with their lines, nesting depth and messages, activate lines with no deactivate, and participants that differ only in upper and lower case. Does not draw the diagram or make files, and does not read features of other diagram languages outside this grammar.
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": "<diagram>"
},
"name": "check_sequence"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| diagram | Yes | The diagram in this line grammar, one statement per line, up to 60,000 characters: participant Name | actor Name | participant "Long Name" as Alias; A -> B: text (sync call), A ->> B: text (async), A --> B: text (reply), A -> A: text (self); note over A: text | note over A,B: text; alt condition / else condition / end, loop condition / end, opt condition / end; activate A | deactivate A; lines starting with # or %% are comments. Example: "actor User\nUser -> Web: Log in\nWeb -> DB: Find user\nDB --> Web: User row\nalt password ok\nWeb --> User: Welcome\nelse wrong password\nWeb --> User: Try again\nend". |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| error | Yes | ||
| notes | Yes | ||
| ready | Yes | ||
| shown | No | ||
| blocks | Yes | ||
| counts | No | ||
| limits | Yes | ||
| grammar | Yes | ||
| activations | Yes | ||
| participants | Yes |