Rolle · Ausgabenlimit · Neu anlegen
create_business_role_budgetCreate a new role’s share of an existing General budget, without increasing that budget’s cap. Use update_business_budget with allocationId for an existing share, or archive_business_budget to retire one. This tool assigns money limits to existing roles; it does not create roles or grant access.
Build from existing records
Read get_business_budgets and get_business_context(view=roles). Choose the frame’s budgetId and that role’s roleKey; copy the frame’s goal, dates and reach. Omit parentAllocationId for a root share, or select an existing parent share for a child. That choice changes where hierarchy and sibling totals constrain the allocation.
Set limitCents to this share’s complete EUR-cent cap, not an increment or the frame’s cap. An active share for the selected role must not already exist; creation neither replaces it nor restores archived records.
Save and recover
Current allocation authority, hierarchy and totals apply. requestKey identifies this create intent in the existing work journal. Exact replay returns its original receipt, not current state; other arguments or intents conflict. After uncertainty reread the frame/share rather than changing the key. No payment or provider action occurs.
Requires operator:prepare, accounting:read, operations:read, existing work:read/write and current Workspace/allocation authority. Owners also need work:manage/Workspace manage.
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": {
"goal": "<goal>",
"startsOn": "<startsOn>",
"endsOn": "<endsOn>",
"reachKey": "<reachKey>",
"reachLabel": "<reachLabel>",
"limitCents": "<limitCents>",
"budgetId": "<budgetId>",
"requestKey": "<requestKey>",
"roleKey": "<roleKey>"
},
"name": "create_business_role_budget"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| goal | Yes | Purpose of the selected spending frame. | |
| endsOn | Yes | Last included UTC calendar day, on or after startsOn. | |
| roleKey | Yes | Exact existing roleKey from get_business_context(view=roles). Requires budgetId, requestKey and the unchanged parent frame; excludes expectedRevision. | |
| budgetId | Yes | Exact budgetId from this workspace's get_business_budgets; archive selects that frame, role mode selects its parent. | |
| reachKey | Yes | Workspace-local spending category key, not a provider account or permission. Creation may introduce a key; updates and role allocations copy the selected frame’s key. | |
| startsOn | Yes | First included UTC calendar day. Together with reachKey identifies a General frame. | |
| limitCents | Yes | General/role limit in safe integer EUR cents. Zero blocks positive new spending; it does not archive. No currency conversion. | |
| reachLabel | Yes | Display label for reachKey. | |
| requestKey | Yes | Fresh caller UUID across this tenant's shared work-operation journal. Exact replay keeps every argument; changed contents or actor conflict. | |
| parentAllocationId | No | Role mode only: parent share for a child allocation; omitted/null means a root share. Immutable on updates. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| status | Yes | ||
| roleKey | Yes | ||
| budgetId | Yes | ||
| replayed | No | Original role/archive receipt replay, not proof of current resource or request state. General is not journal-idempotent. | |
| revision | No | Work-journal revision on a fresh role allocation; absent on replay. Not a General frame revision. | |
| activates | Yes | ||
| limitCents | Yes | ||
| allocationId | Yes | ||
| ownerAssigned | Yes | ||
| parentAllocationId | Yes | ||
| tenantLimitChanged | Yes | Role allocation leaves the company limit unchanged. |