Get API usage
get_api_usageRetrieve total API usage between two inclusive dates to audit call volume, reconcile billing, or measure usage for a period without spending validation credits.
Instructions
API usage totals between two calendar dates. When to use: Audit call volume, reconcile billing, or answer how much API was used in a period. Parameters: startDate and endDate — inclusive dates in YYYY-MM-DD (ISO 8601). endDate must be on or after startDate. Example: last 7 days — set startDate to today minus 6 days and endDate to today. CREDITS: Does not spend validation credits.
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": {
"startDate": "<startDate>",
"endDate": "<endDate>"
},
"name": "get_api_usage"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| endDate | Yes | End date in YYYY-MM-DD format | |
| startDate | Yes | Start date in YYYY-MM-DD format |