Record Labor Time
record_labor_timeRecord time a worker spent on a run after the fact, as the labor planner screen does: one phase (setup, attendedRun or cleanup) from start to end, at most 24 hours. start and end are ISO 8601 instants with an offset or Z (e.g. 2026-10-12T08:00:00-04:00); times are kept to the second. Refused when it overlaps the worker's other recorded time or a session they have running. Name the run by operationId, or by workOrder and operationCode, and the worker by id or full name. Recorded time cannot be edited or removed afterwards. 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": {
"worker": "<worker>",
"phase": "<phase>",
"start": "<start>",
"end": "<end>"
},
"name": "record_labor_time"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| end | Yes | When the work ended, ISO 8601 with an offset or Z. | |
| phase | Yes | setup, attendedRun or cleanup. | |
| start | Yes | When the work started, ISO 8601 with an offset or Z. | |
| worker | Yes | A worker id (GUID) or full name. | |
| 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. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | No | ||
| preview | No | ||
| request | No | ||
| recorded | No | ||
| committed | No | ||
| expiresAt | No | ||
| actionItemId | No | ||
| confirmation | No | ||
| correlationId | No | ||
| approvalResult | No | ||
| idempotencyKey | No | ||
| previewReceipt | No | ||
| idempotentReplay | No |