create_production_order
Create a new Draft manufacturing production order for a product with a valid BOM recipe. Supports confirm and idempotency validation.
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": {
"farmId": "<farmId>",
"sku": "<sku>",
"qty": "<qty>",
"idempotencyKey": "<idempotencyKey>"
},
"name": "create_production_order"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| qty | Yes | Quantity to produce (positive whole integer <= 100000) | |
| sku | Yes | SKU of the finished product with a valid BOM recipe | |
| notes | No | Optional notes | |
| farmId | Yes | The unique farm ID | |
| confirm | No | Set to true to commit, false for dry-run preview | |
| dueDate | No | Optional due date (YYYY-MM-DD) | |
| idempotencyKey | Yes | Unique request idempotency key (REQUIRED) |