Create Cost Center
create_cost_centerCreate a cost center (POST /api/cost-centers) — a bucket that allocation rules route spend into (a team, product or business unit). Pass name, and optionally description, color (hex) and parent_cost_center_id to nest it (max 5 levels; the parent must not own rules itself — only leaf centers hold rules). A new center holds $0 until a rule targets it, so this is normally followed by preview_allocation_rule + create_allocation_rule. Additive and reversible (delete it in the dashboard). Requires a paid plan. 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. Example: { "name": "Platform team", "color": "#2563eb", "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>"
},
"name": "create_cost_center"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Display name, e.g. "Platform team". Required. | |
| color | No | Optional hex color for charts, e.g. "#16a34a". | |
| confirm | No | Set to true to actually make the change. Required: the tool refuses the mutation unless confirm:true is present. Authorization for the change itself is your org role, checked server-side. | |
| description | No | Optional free-text description. | |
| parent_cost_center_id | No | Nest the new center under this one (list_cost_centers). Omit for a top-level center. The parent must not own rules itself (only leaf centers hold rules), and the hierarchy is capped at 5 levels. |