Set a budget
set_budgetCreates a budget on AI spend. scope is org, customer, feature, user or project; value '' gives every customer (or feature, user, project) its own limit. mode 'alert' notifies at 50/80/100%; 'block' also makes the SDKs refuse matching requests at the limit. scope engineer (value an email, '' or 'team:') or team sets a work and coding agent limit, which 'block' pushes into each tool that takes one. Needs an owner or admin.
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": {
"name": "<name>",
"limit_usd": "<limit_usd>"
},
"name": "set_budget"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | alert | |
| name | Yes | ||
| scope | No | org | |
| value | No | * | |
| period | No | month | |
| limit_usd | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||