Explain a finding
yof_explainExplains a yof rule in plain words: what it means, why it matters, its severity, and the safe fix. Use it to understand a finding from yof_check, yof_check_diff, or yof_findings.
Instructions
Explain one yof rule in plain words: what it means, why it matters, how urgent it is and the safe fix. Use it to understand a finding from yof_check, yof_check_diff or yof_findings; use yof_fix_prompt instead for step-by-step instructions for one specific finding. Key rules (secret.) and package rules (package.) are answered on this computer without reading project files; any other rule id is asked of yof.io only when YOF_API_KEY is set, and is an error otherwise. Returns rule, name (or title from yof.io), severity, why and safe_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": {
"rule_id": "<rule_id>"
},
"name": "yof_explain"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rule_id | Yes | The rule id exactly as a finding shows it, for example secret.stripe_live or package.made_up. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| why | Yes | Why it matters. | |
| name | No | Readable rule name (rules answered on this computer). | |
| rule | Yes | The rule id. | |
| title | No | Readable rule name (rules answered by yof.io). | |
| safe_fix | Yes | The safe way to fix it. | |
| severity | Yes | fix_now, fix_week, nice or info. | |
| standards | No | CWE and OWASP references (rules answered by yof.io). |