account_usage
Check current-month API usage and prepaid balance before bulk operations. Avoid payment-required errors by verifying free allowance or prepaid credits remain.
Instructions
Current-month usage and prepaid balance for this API key.
Call this before a bulk loop. 402 payment_required means the free allowance (or prepaid balance) is exhausted.
Returns: dict with keys: month, calls, free_tier_remaining, estimated_charge_usd, balance_usd
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 |
|---|---|---|---|
No arguments | |||