Get API Usage
get_usageList recent API usage events (endpoint, method, status code, cost) for the caller's account.
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": "get_usage"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| end | No | ISO date/time upper bound (optional). | |
| limit | No | Max results to return (default 100, max 500). | |
| start | No | ISO date/time lower bound (optional). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| error | No | Present when success is false | |
| usage | No | ||
| success | Yes | Whether the tool completed successfully | |
| has_more | No |