Skip to main content
Glama

Execute Manufacturing Workflow Step

execute_manufacturing_step
DestructiveIdempotent

Perform one manufacturing step using preview=true first, then repeat the identical request with sourceVersion from the preview, previewReceipt and a fresh idempotencyKey after review. Read get_manufacturing_order first: its productionMode says which steps the order takes. Actions: create_draft (warehouseId and 1–50 lines; optional plannedStartAt and plannedCompletionAt as YYYY-MM-DD dates), issue (manufacturingOrderId). quick_build orders (an account with Quick Build but not full Manufacturing, as the screen's Build and Build All): build_line (MO + lineId; completedQuantity builds part of what is left, omitted all of it) and build_all (MO; everything left on every line, all or nothing) consume the components from the order's warehouse and receive the finished goods there in one step, with no work orders or pick lists; issuing such an order does not check stock, the build does. work_orders orders (full Manufacturing): start_pick/collect/complete_pick (MO + pickListId; collect also needs pickListItemId and actual collection), start_work/complete_work (MO + workOrderId). issue refuses an order with material shortages unless issueDespiteShortages=true, which the user must decide, as the screen's Issue Anyway. start_work needs the work order's picking complete. complete_work requires the actual completed quantity: the full planned output, or on an account with work order QA, the units QA accepted after record_work_order_qa finished the inspection; use the work-order UI for other partial output. Lot- or expiry-tracked output needs trackingLot / trackingExpiry (build_all: lineTracking per line); serials are generated. Each step uses canonical production/picking services. 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": {
      "request": "<request>"
    },
    "name": "execute_manufacturing_step"
  }
}

Input Schema

NameRequiredDescriptionDefault
previewNo
requestYes
sourceVersionNo
idempotencyKeyNo
previewReceiptNo

Output Schema

NameRequiredDescriptionDefault
detailsNo
previewNo
nextStepNo
expiresAtNo
issuePlanNo
actionItemIdNo
confirmationNo
correlationIdNo
approvalResultNo
idempotencyKeyNo
previewReceiptNo
idempotentReplayNo
manufacturingOrderIdNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.7/5.0
Behavior5/5

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

Adds substantial behavior beyond the annotations: the preview/receipt contract, that issuing a quick_build order skips stock checks while the build does not, that build_all is all-or-nothing, that start_work requires completed picking, that serials are auto-generated, and that permissions (Write + manufacturing.execute, unpinned operator credential) and an in-app confirm card apply. This is consistent with destructiveHint=true and idempotentHint=true rather than contradicting them.

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-loads the non-negotiable preview workflow before the action catalog, and nearly every clause carries operational weight. The action enumeration is dense, semicolon-chained prose that takes effort to parse, but no sentence is redundant filler.

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

Completeness4/5

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

For a polymorphic nine-action mutation tool this is close to complete: an output schema exists so return values need no explanation, and mode-dependent behavior, tracking requirements, and auth are all covered. What remains unstated is failure behavior beyond material shortages (e.g., whether a rejected multi-step call is atomic, what a preview receipt expires against).

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?

The top-level schema parameters (preview, sourceVersion, previewReceipt, idempotencyKey) are undocumented and action has no enum, so the description carries the load: it supplies the valid action values and maps required parameters per action (warehouseId + 1–50 lines for create_draft, lineId for build_line, pickListId + pickListItemId + collection for collect, and so on). It leaves some nested fields (content, billOfMaterialsId, collection.locationId) unexplained, which the schema's own descriptions only partially cover.

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 and resource ("Perform one manufacturing step") and then enumerates the eight concrete actions the tool accepts. It explicitly separates itself from get_manufacturing_order, which the agent must read first to learn the productionMode. The agent can identify the tool and its scope 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?

Mandates the preview-then-commit flow (preview=true, then identical request with sourceVersion, previewReceipt and a fresh idempotencyKey) and points to get_manufacturing_order as the prerequisite. It routes by order mode: quick_build uses build_line/build_all, work_orders uses the pick and work-order actions, and it names the exclusion case — partial output outside QA should use the work-order UI instead. issueDespiteShortages is gated on an explicit user decision.

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