Skip to main content
Glama

Start or Finish Operation

transition_work_order_operation
DestructiveIdempotent

Start or finish one work order operation, as the work-order screen's start and finish buttons do. Find operations and the moves each allows with get_work_order. start: a pending operation; on the standard screen it goes into preparation worked by assignedUserId (in-app, the confirming user by default) and the work order must be started; on an account with parallel operation execution it goes straight into progress, optionally on machineId (refused while that machine runs another operation). finish: an operation in preparation or progress (parallel: in progress); the next operation becomes pending, and finishing the last one leaves the work order waiting for completion. Completing the work order itself, which consumes materials and receives the output, stays a separate step. Preview first. Requires Write + manufacturing.execute on an unpinned operator credential. In-app assistants get a confirm card the user applies.

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": {
      "operationId": "<operationId>",
      "action": "<action>"
    },
    "name": "transition_work_order_operation"
  }
}

Input Schema

NameRequiredDescriptionDefault
actionYesstart or finish.
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.
machineIdNostart only, parallel operation execution only: the machine (GUID, from list_machines) to run it on; defaults to the operation's machine.
operationIdYesWork order operation id (GUID), from get_work_order's operations.
assignedUserIdNostart only: the member (user id GUID) who works the operation. Required for connector credentials on the standard screen; defaults to the current assignee.
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
expiresAtNo
transitionNo
actionItemIdNo
confirmationNo
correlationIdNo
approvalResultNo
idempotencyKeyNo
previewReceiptNo
idempotentReplayNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior4/5

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

Goes well beyond the annotations by disclosing the resulting state transitions, the standard-vs-parallel branching, the machine-conflict refusal, the permission requirement (Write + manufacturing.execute on an unpinned operator credential), the confirm-card behavior for in-app assistants, and the two-step preview/commit protocol. The remaining gap is that it never says whether a start can be undone or what the receipt/idempotency enforcement means for retries, so it stops short of 5.

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?

Purpose and the get_work_order pointer are front-loaded, and every sentence carries information. The middle sentences are dense, packing state-machine branches, defaults, and permission scoping into long clauses, which costs some readability but not correctness.

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 state-mutating tool with an output schema already covering return values, the description supplies everything else: required credentials, the preview-then-commit requirement, per-action eligibility, resulting states, machine contention, and the boundary against work-order completion.

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 real meaning by explaining that assignedUserId applies to the standard-screen path (defaulting to the confirming user in-app) while machineId is start-only and parallel-only, plus the 'Preview first' sequencing. That conditional logic is the part an agent would otherwise have to infer from per-parameter text alone.

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?

States a specific verb pair and resource ('Start or finish one work order operation') and anchors it to the familiar UI buttons, immediately distinguishing it from transition_work_order (which moves the work order itself) and from the separate completion step. An agent can tell what this does and what it does not do without opening the schema.

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?

Gives explicit preconditions and alternatives: 'Find operations and the moves each allows with get_work_order', 'Preview first', and 'Completing the work order itself ... stays a separate step'. It also names which source states are legal for each action (pending for start; preparation or progress for finish), which is exactly the when-to-use guidance an agent needs.

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