Execute Manufacturing Workflow Step
execute_manufacturing_stepPerform 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
| Name | Required | Description | Default |
|---|---|---|---|
| preview | No | ||
| request | Yes | ||
| sourceVersion | No | ||
| idempotencyKey | No | ||
| previewReceipt | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| details | No | ||
| preview | No | ||
| nextStep | No | ||
| expiresAt | No | ||
| issuePlan | No | ||
| actionItemId | No | ||
| confirmation | No | ||
| correlationId | No | ||
| approvalResult | No | ||
| idempotencyKey | No | ||
| previewReceipt | No | ||
| idempotentReplay | No | ||
| manufacturingOrderId | No |