Skip to main content
Glama

Start Production Run

start_production_run
DestructiveIdempotent

Start a production run: send 1–100 production work orders to work together, as the production screen's Send to work does. Each moves from readyForProduction to started under one new run number. Every work order must be a production work order, ready for production, not already in a run, with its pick lists and the work orders it depends on completed; one that is not refuses the whole run. Find candidates with list_work_orders status=readyForProduction type=production. Preview first; the preview lists each work order and its output. 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": {
      "workOrderIds": "<workOrderIds>"
    },
    "name": "start_production_run"
  }
}

Input Schema

NameRequiredDescriptionDefault
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.
workOrderIdsYesWork order ids (GUIDs), from list_work_orders; 1–100, each once.
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
actionItemIdNo
confirmationNo
correlationIdNo
productionRunNo
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 and idempotentHint, and the description adds substantially beyond them: all-or-nothing atomicity ("one that is not refuses the whole run"), required write scopes (Write + manufacturing.execute), the unpinned-credential requirement, the two-step preview/commit flow, and the in-app confirm card. This is unusually rich behavioral disclosure for a mutation tool.

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 and scope, then preconditions, then discovery, then preview, then permissions — a sensible ordering with no filler. It is dense semicolon-chained prose, but given the amount of necessary constraint information the length is justified.

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 destructive, permissioned, two-step batch write, the definition covers preconditions, atomicity, permissions, credential constraints, discovery path, and the preview contract; the response shape is already covered by the output schema. Nothing an agent needs to call it correctly 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 value by explaining that preview is a required first step whose result enumerates each work order and its output, and by tying previewReceipt/idempotencyKey to the commit step. It stops short of documenting idempotency-key reuse semantics, which is why it is not 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?

States a specific verb and resource ("Start a production run"), the batch scope (1–100 work orders), and the exact state transition (readyForProduction → started under one new run number). It also anchors the behavior to a known UI action ("the production screen's Send to work") and names list_work_orders for candidate discovery, so it is clearly distinguishable from siblings.

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 (must be production work orders, ready for production, not already in a run, pick lists and dependencies completed), names the sibling to use for finding candidates with exact filter values, and mandates preview-before-commit. An agent knows both when to call it and how to prepare the call.

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