veryfront__get_credit_usage

Break the credit spend of an account down by day, project and model, optionally for one project; returns the series with token counts per model. Requires account.billing.read.

Risk: read_only.

Arguments

NameTypeRequiredDescription
presetstringWhole local days, defaulting to 30d. Explicit from/to bounds take precedence over preset, including SDK-supplied defaults.
fromstringInclusive start. Supply both from and to; these bounds take precedence over preset.
toExclusive end, no later than the end of today in timezone.
timezonestringProvide the timezone.
granularitystringUTC hours, or local calendar days, Monday-based weeks and months.
group_byarrayGrouping dimensions supported by this operation. Repeat the parameter or use a comma-separated list.
comparestringCompare preceding calendar months for whole-month custom ranges, local days for whole-day ranges and presets, or equal elapsed duration otherwise.
project_referencestringProject ID or slug that narrows the read to one project of the account. A project of another account is not found.

Call it

JSON
{  "jsonrpc": "2.0",  "id": 1,  "method": "tools/call",  "params": {    "name": "veryfront__get_credit_usage",    "arguments": {}  }}