budget_set_ceiling
Set a new global token ceiling for all agents. Lowering the ceiling blocks further spending until reset; raising it resumes 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.
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": {
"agent_id": "<agent_id>",
"ceiling": "<ceiling>"
},
"name": "budget_set_ceiling"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ceiling | Yes | New ceiling value (positive number) | |
| agent_id | Yes | Calling agent identifier (for audit) |