Check credit usage
talonic_get_usageRead per-function credit consumption over a trailing window to see which operations, such as extraction, structuring, or intelligence, drive your spend most.
Instructions
Read the workspace's per-function credit consumption over a trailing window: where the credits actually went.
USE WHEN: the user asks what they have spent credits on, or you want to see which function (extraction, structuring, intelligence ops) dominates spend. NOT FOR: the remaining balance (use talonic_get_balance) or per-unit rates (use talonic_get_pricing). ARGS: days (optional, default 30, clamped 1-365). RETURNS: period_days, total_credits, and by_function[] — each { operation_type, operations, credits }, highest spend first.
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": "talonic_get_usage"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| days | No | Trailing window in days (default 30). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| by_function | Yes | Per-function breakdown, highest spend first. | |
| period_days | Yes | Length of the reporting window in days. | |
| total_credits | Yes | Total credits consumed across all functions in the window. |