Explain a rule
explain_ruleRetrieve a CES rule's pattern, rationale, replacement strategy, exceptions, before/after example, and checker tokens by providing its rule ID.
Instructions
Show the full text of one CES rule: the pattern, why it is a tell, the replacement strategy, exceptions, a before/after example, and the tokens the checker uses.
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": {
"ruleId": "<ruleId>"
},
"name": "explain_rule"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ruleId | Yes | A rule ID such as CES-C-008. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| name | Yes | ||
| rating | Yes | ||
| tokens | Yes | ||
| example | No | ||
| category | Yes | ||
| detector | No | ||
| severity | Yes | ||
| exception | No | ||
| suggestion | Yes | ||
| description | Yes | ||
| enabledByDefault | Yes |