Set or remove an AI spending limit
set_ai_spending_limitSets the most this workspace, or one of its projects, may spend on AI in a day or in a month, and what happens when spending reaches it: pause (new AI work pauses until the day or month starts again, or until the limit is raised; a step already running when the limit is reached finishes, so spending can end slightly over the limit) or tell (the owners are told and nothing stops). The owners are told by email at 80% and at 100% of every limit. Setting a limit replaces the one already there for the same project and period. Send remove true to remove it instead. Only owners and admins can. The limits in force, and what each has spent so far, are in get_usage. Confirm the amount, the period and what happens at the limit with the person before you call.
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": {
"period": "<period>"
},
"name": "set_ai_spending_limit"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| period | Yes | Whether the limit is per day or per month (calendar days and months, UTC). | |
| remove | No | True to remove the limit for this project and period. | |
| at_limit | No | pause stops new AI work at the limit; tell only tells the owners. Leave it out only when removing. | |
| amount_usd | No | The limit in US dollars, with at most two decimal places (50 or 12.50). Leave it out only when removing. | |
| project_id | No | Only this project (list_projects gives ids). Leave it out for a limit on the whole workspace. | |
| workspace_id | No | Workspace id from whoami; omit when there is one. |