Push Inventory Snapshot
push_inventory_snapshotPush a FULL inventory snapshot for an External (non-warehoused) warehouse. Set semantics: the list is the complete on-hand picture — items omitted from it are ZEROED. Empty snapshots, non-External warehouses, oversized lists (max 5000 items — a snapshot is full-replace so it can't be chunked), and negative/absurd quantities or costs are rejected. If the snapshot would zero a large number of currently-stocked items (a truncated push wiping the catalog), it is refused unless confirmZeroing is set. The response always reports wouldZero/zeroed counts. Set dryRun=true to PREVIEW the effect (matched/skipped/wouldZero) without writing anything — nothing is zeroed, no sync timestamp is stamped, and the mass-zeroing guard is not applied so you always see the full blast radius before committing.
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": {
"warehouseId": "<warehouseId>",
"items": "<items>"
},
"name": "push_inventory_snapshot"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| items | Yes | Complete on-hand list: identifier (SKU, transfer SKU, or purchase SKU — UPC is NOT matched here, unlike the sales-order tool) + quantity. | |
| dryRun | No | Preview only: resolve identifiers and compute wouldZero without changing any on-hand row or stamping the feed. The response has DryRun=true and Zeroed=0. Takes precedence over the governance parameters (preview/previewReceipt) — a dryRun call never issues or consumes a receipt. | |
| preview | No | Step 1 of the required two-step write: set true to validate and receive a structured matched/skipped/wouldZero preview plus a single-use previewReceipt. Nothing is written until the commit call. | |
| warehouseId | Yes | The External warehouse id (GUID). | |
| confirmZeroing | No | Set true ONLY to confirm a deliberate large delisting when the snapshot would zero more currently-stocked items than the safety threshold. Leave false for normal pushes — a false positive means the snapshot is probably truncated. | |
| idempotencyKey | No | Caller-generated idempotency key; required with previewReceipt to commit. | |
| previewReceipt | No | Step 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
| Name | Required | Description | Default |
|---|---|---|---|
| ok | No | ||
| data | No | ||
| preview | No | ||
| expiresAt | No | ||
| actionItemId | No | ||
| confirmation | No | ||
| correlationId | No | ||
| approvalResult | No | ||
| idempotencyKey | No | ||
| previewReceipt | No | ||
| idempotentReplay | No |