Credit usage
account_usageTrack API credits spent per operation and the remaining balance for a billing period to monitor usage and manage costs.
Instructions
Credits spent per operation in a billing period, and the remaining balance. Needs API key scope keys:manage. Free (no credits). Returns the API answer as JSON, with provenance (freshness, coverage, source).
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": "account_usage"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum rows. | |
| period | No | Billing period start, `YYYY-MM-01`; defaults to the current one. |