get_thread_budget
Retrieve a thread's budget caps and accumulated usage across tokens, cost, turns, and time, so you can check remaining spend or confirm whether any limits are set.
Instructions
Read a thread's budget envelope with the usage accumulated against it. The max_ fields (tokens, usd_micros where $1 is 1,000,000, turns, wall_secs) are null when that dimension has no cap, and the used_ fields include tokens, usd_micros, turns, wall_secs and the input, output and cache token splits. Returns null when no budget was set and no usage has been reported. Set caps with set_thread_budget or update_thread_budget, and record usage with report_usage; usage_rollup aggregates spend across a workspace, thread or member. Requires workspace:read and read access to the thread's channel.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"thread_id": "<thread_id>"
},
"name": "get_thread_budget"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| thread_id | Yes | UUID of the thread whose budget to read. |