Raise a replenishment order
korral_raise_replenishment_orderRaise a replenishment order for a SKU with a dry-run preview showing stock on-hand, sales velocity, and stockout projection. Confirm to execute after reviewing the justification.
Instructions
Raise a replenishment order for a SKU at a store. Defaults to a dry run: the response is a preview containing the exact order plus the on-hand, sales velocity, and stockout projection that justify it, a duplicate-order warning, and a quantity-sanity check — enough for a human to approve or reject without another tool call. Set confirm=true to execute, which also requires the deployment to have ALLOW_WRITES enabled. confirm=true reflects this agent's own judgment, not a recorded human approval — treat it accordingly.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sku | Yes | SKU code to order. | |
| reason | Yes | Why this order is being raised — required so the audit log carries intent, not just the payload. | |
| confirm | No | Set true to execute. Default false returns a dry-run preview only. | |
| store_id | No | Which store. Optional if this deployment is authorized for exactly one store; required otherwise. | |
| quantity_units | Yes | Units to order. | |
| idempotency_key | No | Optional caller-supplied key to avoid double-submission on retry. Auto-generated if omitted. |