Get usage and spend
get_usageTrack estimated Gemini media costs by session, day, month, or all time, broken down by model and tool, with budget remaining, recent calls, and running video jobs.
Instructions
Report estimated spend for this session, today, this month or all time, broken down by model and tool, with budget remaining, recent calls and running video jobs.
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_usage"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| period | No | session (since this server started), today (default), month or all | |
| recent | No | How many recent entries to include (default 10, max 100) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | Yes | ||
| extra | No | ||
| budget | Yes | ||
| period | Yes | ||
| summary | Yes | ||
| activeJobs | No | ||
| ledgerPath | Yes |