Explain a rule
yof_explainExplain one yof rule in plain words: what it means, why it matters, how urgent it is, the safe fix and its CWE and OWASP references. Use it to understand a finding from yof_findings; use yof_fix_prompt instead for step-by-step instructions for one finding. Reads yof's rule list only, no account data; an unknown rule id is an error. Returns rule, title, why, severity, safe_fix and standards.
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": {
"rule_id": "<rule_id>"
},
"name": "yof_explain"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lang | No | Language of the rule titles and plain-word text, as a two-letter code. Default en. | |
| rule_id | Yes | The rule id exactly as a finding shows it. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| why | No | Why it matters. | |
| rule | No | Rule id. | |
| error | No | Only on a failed call (isError true): what went wrong. | |
| title | No | Readable rule name. | |
| safe_fix | No | The safe way to fix it. | |
| severity | No | fix_now, fix_week, nice or info. | |
| standards | No | CWE, OWASP and CVSS references, when the rule has them. |