Save Labor Worker
save_labor_workerAdd a labor worker, or edit one, as the labor resources screen does: their name, the Spark account they sign in with (which gives them a my-work page), and whether they are archived. Omit worker to add one (firstName required); name an existing worker by id or full name (get_labor_resources) to edit it, and leave out what stays the same. Archived workers drop out of new plans, pools and calendars. Refused, as on the screen, while the worker has a session running and the edit archives them or changes their sign-in. Admin; operator credentials only. Preview first; the in-app assistant gets a confirm card.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "save_labor_worker"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| worker | No | The worker to edit, by id or full name; omit to add a new worker. | |
| account | No | The email of the internal Spark account the worker signs in with; it must not be linked to another worker. | |
| 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. | |
| archived | No | true archives the worker, false restores them; omit to keep as is. | |
| lastName | No | Last name, at most 120 characters; an empty string clears it. | |
| firstName | No | First name, at most 120 characters; required for a new worker. | |
| unlinkAccount | No | true removes the worker's sign-in link. | |
| 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 | ||
| workerId | No | ||
| committed | No | ||
| expiresAt | No | ||
| actionItemId | No | ||
| confirmation | No | ||
| correlationId | No | ||
| approvalResult | No | ||
| idempotencyKey | No | ||
| previewReceipt | No | ||
| idempotentReplay | No |