Get Talonic Usage
talonic_get_usageRetrieve per-function credit usage over a trailing window to determine which operations dominate credit consumption.
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.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| days | No | Trailing window in days (default 30). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| period_days | Yes | Length of the reporting window in days. | |
| total_credits | Yes | Total credits consumed across all functions in the window. | |
| by_function | Yes | Per-function breakdown, highest spend first. |