agentguard_spend_report
Read an agent log and report what it spent: totals, calls by tool and by class, estimated dollars by rail, loops, the largest single run, and — for every overspend — the agentguard band whose cap would have stopped it, the exact cap, and the call that would have tripped it.
Needs no account and no key. The log is read in the request and discarded; nothing is
stored. Accepts an agentwares audit export (agentwares.audit/v1), a Claude Code session
.jsonl, or a CSV/JSONL of tool calls with any of tool, ts, class, amount_usd,
rail, run_id, model, input_tokens, output_tokens.
Caps come from the proxy's own default policy, so a band named here refuses exactly what
it says it refuses. Buying that band is a checkout a person completes; the calls-only
purchase an unattended agent can complete is in agentguard_get_pricing instead.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| log | Yes | The log itself, verbatim — JSON, JSONL or CSV. Not a path and not a URL: this server does not fetch anything. | |
| detail | No | `concise` (default) returns the totals, the top ten tools, the rails, the loops and every overspend. `full` adds the complete per-tool breakdown and the window. Ask for `full` only when you are going to read it. |