Check use case diagram text
check_use_case_diagramUse this when the user wants use case diagram text checked without a drawing, for example "which use cases have no actor?" or "check my use case diagram". Takes the same diagram text as make_use_case_diagram. Returns ready true or false; when a line breaks the grammar (also unknown names, relations between the wrong kinds of element, or a generalization cycle), the line number, the token and the reason; otherwise the elements with their relation counts, actors with no use case (an actor counts when it or an actor it specializes has an association), use cases no actor reaches (directly, through include, or as an extension of a reached use case), and include/extend cycles. Does not draw the diagram or make files.
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_use_case_diagram"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| diagram | Yes | The use case diagram in this line grammar, one statement per line, up to 40,000 characters: actor Name | actor "Long name" as A | usecase Name | usecase "Text" as UC1 | system "Name" { ... } (use case lines inside belong to that system; not nested) | A -- UC1 (association) | UC1 ..> UC2 : include | UC3 ..> UC1 : extend | Admin --|> User (actor generalization) | note UC1: text | # comment. Declare each actor and use case before or after use. Example: "actor Customer\nsystem \"Shop\" {\nusecase \"Place order\" as Order\nusecase Pay\n}\nCustomer -- Order\nOrder ..> Pay : include". |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| error | Yes | ||
| notes | Yes | ||
| ready | Yes | ||
| shown | No | ||
| counts | No | ||
| limits | Yes | ||
| grammar | Yes | ||
| analysis | No | ||
| elements | Yes |