Commit Replenishment Plan
commit_replenishment_planPreview or atomically commit the current Inventory Mission Control revision into created purchase-order, transfer-order and manufacturing-order drafts with durable mission lineage. A manufacture line drafts a manufacturing order at its warehouse from the item's primary bill of materials, planned from the commit day plus the line's lead time; a manufacture line whose item has no bill of materials it can build from blocks the commit by SKU (defer the line or add the BOM). First call without previewReceipt/idempotencyKey; after reviewing the exact draft groups, repeat with both plus the returned artifact fingerprint. Both phases rebuild canonical evidence and fail with PLAN_SOURCE_CHANGED on any drift. Commit requires Write scope plus replenishment.prepare. It never issues a purchase order or manufacturing order, submits or reserves a transfer, receives inventory, or starts production. Client-pinned purchase drafts are supported; client-pinned transfers and manufacturing fail closed until those orders carry client ownership. The committed result lists every created draft with its id and type.
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": {
"planId": "<planId>",
"expectedRevision": "<expectedRevision>",
"expectedSourceFingerprint": "<expectedSourceFingerprint>"
},
"name": "commit_replenishment_plan"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| planId | Yes | Credential-owned replenishment plan id (GUID). | |
| idempotencyKey | No | Caller-generated idempotency key; required with previewReceipt. | |
| previewReceipt | No | Receipt returned by the preview call; omit on preview. | |
| expectedRevision | Yes | Expected current immutable revision. | |
| expectedSourceFingerprint | Yes | Exact sourceFingerprint returned by that revision. | |
| expectedArtifactFingerprint | No | Artifact fingerprint returned by preview; required for commit. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | No | ||
| result | No | ||
| effects | No | ||
| warnings | No | ||
| expiresAt | No | ||
| operation | No | ||
| actionItemId | No | ||
| confirmation | No | ||
| correlationId | No | ||
| approvalResult | No | ||
| idempotencyKey | No | ||
| previewReceipt | No | ||
| idempotentReplay | No | ||
| allowedNextActions | No |