explain_rule_result
Explain why a rule did or did not fire on a document: whether its formats matched, what its given matched, what then checked, and the verdict. Works for your own rules, the catalog, and the built-ins.
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": {
"document": "<document>",
"rule": "<rule>"
},
"name": "explain_rule_result"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rule | Yes | A rule id, e.g. "info-require-license" or "operation-operationId". | |
| context | No | Optional: why you are asking. One sentence — the task you are trying to complete, or what you expect to get back. Never included in the answer and never used to rank; it is read only when a result turns out to be wrong, which is when knowing the intent is what makes the report actionable. | |
| document | Yes | The API description to operate on — OpenAPI, AsyncAPI, Arazzo or JSON Schema. A YAML/JSON string or an already-parsed object; both are accepted. |