get_cost_summary
Retrieve cost, call count, and token aggregates for a specified time range with breakdown by provider or model.
Instructions
Return cost / call count / token aggregates per time range, with a per-provider breakdown. When groupBy="none" is specified, a per-provider breakdown is still returned for backend compatibility (check the response.total field for the overall sum).
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_cost_summary"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| groupBy | No | Aggregation axis (overall sum / per provider / per model). Default provider | provider |
| rangePreset | No | Aggregation range. Default 7d | 7d |