explain_finding
Render a finding as a markdown teaching card with location, marked code, explanation, reproduction, fix trade-offs, lesson, and evidence; choose junior or senior detail.
Instructions
Render the teaching card for a finding as markdown: where (file:line, function, introducing commit), the code with the bad line marked >>, what, why, repro, fix options with trade-offs, lesson and evidence. level: "junior" (adds key concepts) or "senior" (terse). If why / fix_options / lesson are missing, the card ends with a "TODO for Claude" section: fill those via update_finding, then call this again. Show the card to the user as-is.
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": {
"repo": "<repo>",
"finding_id": "<finding_id>"
},
"name": "explain_finding"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| repo | Yes | ||
| level | No | junior | |
| finding_id | Yes |