Skip to main content
Glama

Save Labor Worker

save_labor_worker
DestructiveIdempotent

Add 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

NameRequiredDescriptionDefault
workerNoThe worker to edit, by id or full name; omit to add a new worker.
accountNoThe email of the internal Spark account the worker signs in with; it must not be linked to another worker.
previewNoStep 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.
archivedNotrue archives the worker, false restores them; omit to keep as is.
lastNameNoLast name, at most 120 characters; an empty string clears it.
firstNameNoFirst name, at most 120 characters; required for a new worker.
unlinkAccountNotrue removes the worker's sign-in link.
idempotencyKeyNoCaller-generated idempotency key; required with previewReceipt to commit.
previewReceiptNoStep 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

NameRequiredDescriptionDefault
okNo
previewNo
requestNo
workerIdNo
committedNo
expiresAtNo
actionItemIdNo
confirmationNo
correlationIdNo
approvalResultNo
idempotencyKeyNo
previewReceiptNo
idempotentReplayNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.9/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Beyond the annotations (destructiveHint=true, idempotentHint=true), the description discloses concrete consequences the schema cannot: archived workers 'drop out of new plans, pools and calendars', and the call is 'Refused ... while the worker has a session running and the edit archives them or changes their sign-in'. It also states the authorization requirement ('Admin; operator credentials only') and the confirm-card behavior for the in-app assistant.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three dense sentences with zero filler: purpose first, then targeting/edit rules, then side effects and refusal conditions, then authorization and preview. Every clause carries operational information an agent would otherwise have to guess.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 9-parameter destructive mutation, the description covers permissions, refusal preconditions, side effects on downstream resources, and the mandatory two-step write, while the rich annotations and output schema handle safety flags and return shape. Nothing an agent needs to avoid a bad call is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so baseline is 3, but the description adds cross-parameter meaning the schema does not: the worker-identification convention (id or full name), the partial-update convention of omitting unchanged fields, and the coupling of preview with a separate commit call. It gives no extra detail on unlinkAccount or name-length handling, keeping it just short of a 5.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The opening sentence names a specific verb pair and resource ('Add a labor worker, or edit one') and anchors it to the labor resources screen, making the add-vs-edit duality explicit. Sibling save_labor_pool and save_labor_default operate on different resources, and nothing here could be confused with get_labor_resources.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It states exactly how to select each mode ('Omit worker to add one (firstName required); name an existing worker by id or full name'), names the lookup sibling get_labor_resources for resolving identities, and tells the agent to 'leave out what stays the same'. It further mandates 'Preview first', so the two-step flow is prescribed rather than inferred.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources