budget_set_ceiling
Set the global token ceiling for all agents to control budget limits. Changes take effect immediately, blocking or resuming agents based on current spend.
Instructions
Dynamically change the global token ceiling for all agents. Returns {ok:true, ceiling, previous} on success. Returns {ok:false, error:"..."} if ceiling is not a positive number. Changes take effect immediately — lowering below current spend will deny all future budget_spend calls until counters are reset via budget_reset; raising allows previously blocked agents to resume. ceiling must be a positive integer (total token budget across all agents); agent_id is recorded in the audit log. Avoid lowering the ceiling while agents are actively running; call budget_status first to check the current spend level.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| agent_id | Yes | Calling agent identifier (for audit) | |
| ceiling | Yes | New ceiling value (positive number) |