Cost Report
gateway_cost_reportTrack API usage costs and call statistics with session-level breakdowns across backends and tools. View spending for current sessions or all keys with 24-hour, 7-day, and 30-day rolling windows.
Instructions
Return current session and API-key spend. Includes total cost, call count, and breakdown by backend and tool. Per-key totals are shown for 24 h / 7 d / 30 d rolling windows.
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": "gateway_cost_report"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| include_all_keys | No | Return all API key accumulators (admin view). Default false. | |
| include_all_sessions | No | Return all active sessions (admin view). Default false. | |
| session_id | No | Specific session ID to report on. Defaults to current session. |