Explain Frontend Rule
explain_ruleExplains one frontend rule, including its background, impact on users and the business, and related categories. Use it when the user asks why a practice matters or requests educational context. It returns explanation guidance rather than applying a fix.
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": {
"slug": "<slug>"
},
"name": "explain_rule"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| slug | Yes | Rule slug: the kebab-case rule ID, e.g. 'alt-text' or 'doctype'. The ID must identify a rule in the published catalogue. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| slug | No | ||
| title | No | ||
| message | No | ||
| categories | No | ||
| suggestions | No | ||
| explainPrompt | No |