Recent charges
recent_chargesUse this when the user asks what this key spent, or wants a receipt for a run. Returns the charges of this key only, never another key's, newest first: tool, credits and time. Also returns their sum in credits and dollars, the dollar value of one credit, and the balance. When truncated is true there are older charges: raise limit up to 100, and say the sum is partial.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "recent_charges"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | 1 to 100, defaults to 50 |