get_ai_summary
Get AI/LLM usage summary: total cost, tokens, calls, errors, and latency. Pass group_by='model' or group_by='provider' for per-model or per-provider breakdowns. Helps answer 'how much am I spending on AI?' or 'which model has the most errors?'.
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_summary"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| days | No | Lookback window in days (1-90, default 7) | |
| group_by | No | Break down by 'model' or 'provider'. Omit for aggregate totals. |