Skip to main content
Glama

Plan Labor Operation

plan_labor_operation
DestructiveIdempotent

Save a run's labor draft, as the labor planner screen does: how long the run takes (elapsedMinutes, 1–44640), an optional plannedStart (ISO 8601 with an offset or Z), and the complete list of who attends when (requirements, at most 50: a qualified pool by id or name, an optional named worker from it, the phase, offsetMinutes from the run's start, durationMinutes and crewSize). The list replaces the draft's requirements; an empty list plans unattended time. clear true removes the draft instead. A draft reserves nobody: commit_labor_plan does, and a committed run keeps its commitment until it is committed again or released. Name the run by operationId, or by workOrder and operationCode (list_labor_operations). 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": "plan_labor_operation"
  }
}

Input Schema

NameRequiredDescriptionDefault
clearNotrue removes the run's draft instead of saving one.
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.
workOrderNoThe run's work order number, with operationCode.
operationIdNoThe run's operation id (GUID).
plannedStartNoWhen the run starts, ISO 8601 with an offset or Z; omit for an unscheduled draft.
requirementsNoThe complete attendance list: pool (id or name), optional worker (id or full name), phase (setup, attendedRun or cleanup), offsetMinutes (default 0), durationMinutes and crewSize (default 1).
operationCodeNoThe run's operation code, with workOrder.
elapsedMinutesNoHow long the run takes, start to finish, in minutes (1–44640).
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
committedNo
expiresAtNo
planVersionNo
actionItemIdNo
confirmationNo
correlationIdNo
approvalResultNo
idempotencyKeyNo
previewReceiptNo
idempotentReplayNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Beyond the annotations, it discloses that a draft reserves nobody, that the requirements list fully replaces the existing draft, that an empty list plans unattended time, and that clear removes the draft. Credential requirements and the in-app confirm card add context the annotations do not carry.

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

Conciseness4/5

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

The key scoping and replacement semantics are front-loaded in a single dense paragraph with no filler sentences. It is long but most clauses carry distinct information; a short bulleted structure would read more easily.

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 10-parameter mutation tool with an output schema, the description covers the critical gaps: replacement semantics, preview/commit flow, run identification, and credentials. Return values are already documented by the output schema, so nothing essential 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 the baseline is 3. The description still adds meaning the schema lacks: the requirements list is a complete replacement rather than a merge, an empty list means unattended time, and the run can be identified by either id or work order plus operation code.

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 description opens with a specific verb and resource: it saves a run's labor draft, mirroring the labor planner screen. It explicitly distinguishes itself from commit_labor_plan, which reserves workers, and from clear true, which removes the draft.

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 when to use it, when to use commit_labor_plan instead, how to identify the run (operationId or workOrder plus operationCode via list_labor_operations), and that an admin/operator credential is required. The preview-first requirement is also spelled out.

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