Get usage
get_usageThis connection’s ColorCraft activity for the last N days (default 7): calls by tool, errors, and pages spent through assistants, plus the pages credited to the account, by source and with when each was added (purchases, plan grants, a trial, one-time bonuses such as a first book or first cover, and pages added by ColorCraft), so a balance change can be reconciled. Use it to stay inside a budget before running another loop. Free.
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": "get_usage"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| days | No | How many days back (default 7, max 90). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| days | Yes | ||
| calls | Yes | Every tool call this connection made in the window, however many. | |
| errors | Yes | Calls that did not work (any outcome but ok, accepted or replayed), every unknown_tool call included. | |
| by_tool | Yes | ||
| credits | Yes | Each credit in these days, newest first (at most 50; pages_credited and credits_by_source count them all). | |
| pages_spent | Yes | Pages of balance charged through this connection. | |
| pages_credited | Yes | Pages added to the whole account’s balance in these days, from every source in credits_by_source. Not pages handed back when a hold on the balance was not used up (a failed cover render, say), which were never in pages_spent. A balance can fall by less than pages_spent because of these credits. | |
| credits_by_source | Yes | pages_credited split by where the pages came from. |