justhandled_agent_cost_decomposer
Decompose agent call costs into model, cached-token, and external-tool parts, and flag budget overruns for preflight checks.
Instructions
Calculate model, cached-token, and external-tool costs per call and flag a supplied budget overrun. Costs $0.05 USDC on Base mainnet.
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": {
"calls": "<calls>"
},
"name": "justhandled_agent_cost_decomposer"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| calls | Yes | ||
| budget_usd | No |