Check what your account has spent
get_usageSee the real cost of calls on this account, itemized by resource (provider calls, browser sessions, IP leases) and aggregated in dollars. Pass no arguments to see this month; pass month: '2026-09' to see a past month (format YYYY-MM). Returns totalUsd and line items with sku, quantity, unit and usd. usd is what each line charged and the usd column sums to totalUsd; quantity is consumption, not the charge (on a usd_micros line it is the vendor's spend in micro-dollars). This is the EXACT amount your account has been charged, matching the invoice. A single run's price is not returned on the run, so to measure what a kind of call costs, call get_usage, run the same calls a few times, call get_usage again, and divide the difference in totalUsd by the number of runs (the 'before and after' method on /docs/pricing). Usage can lag a run, so read it again later for an exact figure; a reading straight after is a floor. The typical per-call ranges for each capability are on /docs/pricing.
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 |
|---|---|---|---|
| month | No | Past month in format YYYY-MM. Omit for current month. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lines | Yes | Itemized charges by resource | |
| month | Yes | The month in YYYY-MM format | |
| totalUsd | Yes | Total amount charged for the month in USD | |
| unitemizedUsd | Yes | Any unitemized charges in USD |