Create Budget
create_budgetCreate a budget for the organization (POST /api/budgets). Required: name, amount (positive, in the org's display currency), and start_date (YYYY-MM-DD). Optional: period (monthly | quarterly | annual; default monthly), end_date (YYYY-MM-DD; omit for ongoing), integration_id to scope it, a structured scope ({ platform | accountIds | services | tagKey+tagValue | costCenterId }), threshold_pcts (e.g. [80, 100]), and who to notify on a crossing: notification_channel_ids (ids from list_notification_channels — any number, any type) and/or emails (up to 5 addresses). Omit both for an informational-only budget. Webhook URLs are not accepted here — create a channel with create_notification_channel and attach its id. The currency is NOT settable — the backend stamps your organization's display currency. Returns the created budget. WRITE TOOL — MCP WRITES ARE OFF BY DEFAULT FOR EVERY ORGANIZATION. This call needs ALL FOUR of: the admin:write scope, the organization switch turned on (an org admin enables it in Settings → Organization → AI agent access), an admin or super_admin org role, and confirm:true. Missing any one of them it refuses and changes nothing, and the error names which one — relay that to the user rather than retrying. Read-only cak_ API keys can never perform it. Reversible (a budget can be deleted/edited). Example: { "name": "Prod AWS monthly", "amount": 50000, "start_date": "2026-07-01", "period": "monthly", "threshold_pcts": [80, 100], "notification_channel_ids": ["<channel_id>"], "emails": ["ops@acme.com"], "confirm": true }.
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>",
"amount": "<amount>",
"start_date": "<start_date>"
},
"name": "create_budget"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Display name for the budget (e.g. "Prod AWS monthly"). Required. | |
| scope | No | Optional structured scope. Combined with integration_id to express the scope hierarchy: omit everything + no integration_id = org-wide; { platform } = a whole platform; { costCenterId } = a cost center; integration_id + optional { accountIds, services, tagKey, tagValue } = that integration, optionally narrowed to sub-accounts / services / a tag. | |
| amount | Yes | Budget amount, a positive number in the organization's display currency. Required. | |
| emails | No | Up to 5 email addresses to notify directly, without a channel. On update this REPLACES the list; [] clears it; omit to keep it. For a longer list, create an email channel and attach its id. | |
| period | No | Budget period: monthly (default) | quarterly | annual. | monthly |
| confirm | No | Set to true to actually create the budget. Required: the tool refuses the mutation unless confirm:true is present. Authorization for the change itself is your org role, checked server-side. | |
| end_date | No | When tracking stops (YYYY-MM-DD). Omit for an ongoing budget; must be on or after start_date. | |
| start_date | Yes | When the budget takes effect, YYYY-MM-DD (e.g. "2026-07-01"). Required. | |
| integration_id | No | Scope the budget to a single provider connection. Omit for org-wide / cross-platform. | |
| threshold_pcts | No | Alert thresholds as percentages of the budget (e.g. [50, 80, 100]). Crossing one fires an alert. | |
| notification_channel_ids | No | Ids of the organization's notification channels (any number, any type — email, Slack, Teams) to deliver threshold crossings to. Get them from list_notification_channels. On update this REPLACES the set; [] detaches every channel; omit to keep the current channels. |