model_usage
MCP tools › Window and UI driver
The costs of model calls, read only: the booked records since since (Unix seconds, default all) grouped by group_by (provider — default, key, model or task), each with calls, input and output tokens, the cost per currency (six decimal places) and unpriced_calls (no price was known at booking; never guessed). Also records, dropped (over the bound of 20000), unreadable and ledger_file. Needs no right.
| Capability | ui.model_usage |
|---|---|
| Area | Window and UI driver |
| Access | reads only |
| Reaches | — |
| Rights | none |
| Dry run | none |
Arguments
| Argument | Type | Description |
|---|---|---|
group_by | string | provider (default), key, model or task. |
since | integer | Only records at or after this time (seconds since the Unix epoch).minimum 0 |
Call it from a shell
ferris-idea call runs one tool with the rights and safe mode of ferris-idea mcp. Replace the folder and the placeholder values.
ferris-idea call ~/my-project model_usageInput schema as JSON
{ "type": "object", "additionalProperties": false, "properties": { "group_by": { "description": "provider (default), key, model or task.", "type": [ "string", "null" ] }, "since": { "description": "Only records at or after this time (seconds since the Unix epoch).", "type": [ "integer", "null" ], "minimum": 0 } }}