Skip to content

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.

Capabilityui.model_usage
AreaWindow and UI driver
Accessreads only
Reaches—
Rightsnone
Dry runnone

Arguments

ArgumentTypeDescription
group_bystringprovider (default), key, model or task.
sinceintegerOnly 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.

Terminal window
ferris-idea call ~/my-project model_usage
Input 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
}
}
}