Agent Usage Analytics
agent-usageView API usage analytics for the authenticated user.
Actions: summary (usage overview with plan limits), products (per-product usage breakdown),
history (recent generation request timeline with optional date filters).
All actions require authentication.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": {
"action": "<action>"
},
"name": "agent-usage"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | End date for history filter (YYYY-MM-DD format, optional for history) | |
| from | No | Start date for history filter (YYYY-MM-DD format, optional for history) | |
| limit | No | Max number of history items to return (1-200, default 100, optional for history) | |
| action | Yes | The usage action: summary, products, history |