finding
Get full details of a specific cost issue from your Tallybook report by its ID, including what happened, why it costs, what to change, and expected savings with evidence and patch.
Instructions
One finding in full, addressed by its stable id from report: what happened, why it costs, what to change, what to expect, plus the evidence table and the patch if there is a file to change.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | the finding's id from report, such as readonly-agent-on-strong-model | |
| since | No | window: 7d, 30d, 90d, all, or a YYYY-MM-DD start date; default 30d | |
| source | No | restrict to one tool: "claude-code" or "codex"; default both | |
| project | No | restrict to one project directory, exact match, or a prefix if it ends with a path separator | |
| currency | No | override the detected plan: "usd" reports as charged, "share" reports as a subscription's list-price equivalent |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| plan | Yes | "api" or "subscription", re-detected on every scan | |
| patch | No | unified diff of the file change, when there is a file to change; tallybook never applies it | |
| share | Yes | ||
| title | Yes | ||
| currency | Yes | "usd" when the figures were charged, "list_price_equivalent" when a subscription covered them and the figures are what the usage would have cost on the API | |
| evidence | Yes | ||
| direction | Yes | ||
| confidence | Yes | ||
| saving_usd | Yes | estimated saving per 30 days at list price; 0 for info findings | |
| scan_error | No | why the most recent scan attempt failed, in which case the figures are from the last successful scan | |
| age_seconds | Yes | seconds since that scan; the server rescans when a tool is called more than 60 seconds after the last attempt, or on refresh | |
| ingested_at | Yes | RFC 3339 time of the last successful transcript scan; empty if none has succeeded yet | |
| plan_reason | Yes | why that plan was chosen | |
| why_it_costs | Yes | ||
| what_happened | Yes | ||
| what_to_change | Yes | ||
| what_to_expect | Yes |