Save Labor Default
save_labor_defaultReview an operation's labor default, as the labor defaults screen does: minutes for setup, attendedRun and cleanup, each per run or per finished unit (perUnit needs the unit the work order's finished product is counted in), with the qualified pool and crew size that attend it (no pool and crew 0 is unattended time). A phase left out is zero minutes. Each save is a new revision; enabled false switches the default off. New runs of the operation copy the enabled default as a draft awaiting review; existing runs keep their plans until apply_labor_default recalculates one. Name the operation (the routing step, not a work order's run) by id, code or name. Needs a reason. Admin; operator credentials only. Preview first; the in-app assistant gets a confirm card.
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": {
"operation": "<operation>",
"phases": "<phases>",
"reason": "<reason>"
},
"name": "save_labor_default"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| unit | No | The finished product's unit, by id, abbreviation or name; needed for perUnit. | |
| phases | Yes | The phases: phase (setup, attendedRun or cleanup), minutes, scaling (perRun or perUnit), pool (id or name) and crewSize (default 1 with a pool, 0 without). | |
| reason | Yes | Why, for the plan's history: 1–1000 characters. | |
| enabled | No | false switches the operation's default off. Defaults to true. | |
| preview | No | Step 1 of the required two-step write: set true to validate and receive a structured preview plus a single-use previewReceipt. Nothing changes until the commit call. | |
| operation | Yes | The operation, by id, code or name. | |
| idempotencyKey | No | Caller-generated idempotency key; required with previewReceipt to commit. | |
| previewReceipt | No | Step 2 of the required two-step write: the receipt returned by the preview call. Supply together with a fresh idempotencyKey to commit; calls without it are refused. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | No | ||
| preview | No | ||
| request | No | ||
| version | No | ||
| committed | No | ||
| expiresAt | No | ||
| actionItemId | No | ||
| confirmation | No | ||
| correlationId | No | ||
| approvalResult | No | ||
| idempotencyKey | No | ||
| previewReceipt | No | ||
| idempotentReplay | No |