get_usage_events
Retrieve detailed usage events with model information, token counts, costs, and chargeable status. Filter by user email and date range to analyze AI coding session expenses.
Instructions
Get granular per-request usage events with model, token counts, costs, and whether the request was chargeable. Supports filtering by user email and date range.
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_events"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| No | Filter by user email | ||
| startDate | No | Start date as Unix timestamp in milliseconds | |
| endDate | No | End date as Unix timestamp in milliseconds | |
| page | No | Page number (default: 1) | |
| pageSize | No | Results per page (default: 500, max: 500) |