get_ai_usage
Retrieve AI gateway usage grouped by UTC day, app, and alias to track requests, prompt and completion tokens, and upstream errors.
Instructions
AI gateway usage per (UTC day, app, alias): requests, prompt and completion tokens, upstream errors. No cost estimate, no prompt trace.
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_ai_usage"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| days | No | UTC days back, today included (1-90). | |
| service | No | Only this app's usage; omit for every app. |