Commit Labor Plan
commit_labor_planCommit a run's scheduled labor draft as a reservation, as the labor planner screen's commit does: the crew it names can then start work on it from their my-work page, and its hours count against everyone else's plans. Refused unless the draft has a planned start and the qualified workers' calendars cover it (includeAuthorizedOvertime counts overtime they are authorized for). A committed run's new commitment replaces its old one; a draft from apply_labor_default is reviewed by committing it. Needs a reason for the plan's history. Name the run by operationId, or by workOrder and operationCode. 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": {
"reason": "<reason>"
},
"name": "commit_labor_plan"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| reason | Yes | Why, for the plan's history: 1–1000 characters. | |
| 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. | |
| workOrder | No | The run's work order number, with operationCode. | |
| operationId | No | The run's operation id (GUID). | |
| operationCode | No | The run's operation code, with workOrder. | |
| 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. | |
| includeAuthorizedOvertime | No | true counts overtime the workers are authorized for as available time. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | No | ||
| preview | No | ||
| request | No | ||
| committed | No | ||
| expiresAt | No | ||
| allocation | No | ||
| actionItemId | No | ||
| confirmation | No | ||
| correlationId | No | ||
| approvalResult | No | ||
| idempotencyKey | No | ||
| previewReceipt | No | ||
| idempotentReplay | No |