budget_set_ceiling
Set a new global token ceiling for all agents to control total spending. Lowering denies future budget calls until reset; raising allows previously blocked agents.
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 |
|---|---|---|---|
| ceiling | Yes | New ceiling value (positive number) | |
| agent_id | Yes | Calling agent identifier (for audit) |