Set agent account monthly budget
stack_set_account_budgetSet or remove an agent account's monthly spend budget, in USD cents. Owner or admin only; an agent session is refused. Lowering the budget applies at once. Raising it or removing it (monthly_budget_cents null) is a governance approval: the owner approves it in the browser. Setting a budget needs controls (CONTROLS_REQUIRED otherwise). When human approval is required and the chat client supports MCP elicitation, the person is asked to confirm the exact change in the client; the change is applied only after they approve, and a rejection changes nothing. Otherwise it returns GOVERNANCE_APPROVAL_REQUIRED with approval_id and approval_url, the page for that one approval, and the same payload sent with governance_approval_id after approval applies the change. An approval is single-use, bound to the exact payload, and expires after 24 hours. Returns the account with its budget.
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": {
"account_id": "<account_id>",
"monthly_budget_cents": "<monthly_budget_cents>"
},
"name": "stack_set_account_budget"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| account_id | Yes | Agent account id (acct_*) | |
| monthly_budget_cents | Yes | The new monthly budget in USD cents (a whole number above zero), or null to remove the budget | |
| governance_approval_id | No | Approval id from a GOVERNANCE_APPROVAL_REQUIRED response, once a human approved it |