Skip to main content
Glama

Change Work Order Status

transition_work_order
DestructiveIdempotent

Move one work order to a new status: approve (waitingApproval to readyForProduction), mark_ready (open or onHold to readyForProduction), hold (open to onHold), or cancel (any work order not started, completed or cancelled; returns its reserved stock to available stock and frees its machines). A work order a manufacturing order generated is not cancelled here: cancel the manufacturing order. Starting and completing production use execute_manufacturing_step. Preview first; the preview shows the status change, the stock a cancel releases and the pick lists left open. 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": {
      "workOrderId": "<workOrderId>",
      "action": "<action>"
    },
    "name": "transition_work_order"
  }
}

Input Schema

NameRequiredDescriptionDefault
actionYesapprove, mark_ready, hold or cancel.
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.
workOrderIdYesWork order id (GUID), from list_work_orders.
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.8/5.0
Behavior5/5

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

Annotations already flag destructiveHint=true and idempotentHint=true, but the description goes well beyond them: a cancel releases reserved stock back to available and frees machines, the preview surfaces the status change, released stock and open pick lists, and calls without a previewReceipt are refused. It also states the permission requirement (Write + manufacturing.execute on an unpinned operator credential) and the confirm-card behavior for in-app assistants.

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?

Front-loaded with the action table, then eligibility, then alternatives, then preconditions — a logical order with no filler. It is a dense single paragraph, so the permission and confirm-card details take slightly more reading effort than ideal, but nothing is redundant.

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?

An output schema exists, so return values need no explanation; the description still covers the side effects, the two-step write requirement, credential/permission constraints and the one case where the tool must not be used. For a destructive, multi-action transition tool that is everything an agent needs to invoke it safely.

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 preview/previewReceipt/idempotencyKey are already well documented and the baseline is 3. The description adds genuine meaning beyond the schema by mapping each action string to concrete state transitions, which the schema's "approve, mark_ready, hold or cancel" does not convey; it only lightly reinforces the preview-then-commit sequencing.

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?

Opens with a specific verb+resource ("Move one work order to a new status") and then enumerates every action with its exact source and target states (approve: waitingApproval→readyForProduction; hold: open→onHold). An agent can distinguish this from execute_manufacturing_step and cancel_manufacturing_order purely from the text.

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?

Explicit routing rules: MO-generated work orders must be cancelled via cancel_manufacturing_order, and starting/completing production belongs to execute_manufacturing_step. Cancel eligibility is bounded ("any work order not started, completed or cancelled") and the description mandates previewing first.

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