Check stock risk
korral_check_stock_riskAssess stock-out risk for a SKU at a store: predicts if inventory will run out before closing and whether a replenishment order can arrive in time, using sales velocity and lead time.
Instructions
Assess whether a SKU at a store will run out before closing today, and whether a replenishment order would arrive in time. Combines current on-hand, recent sales velocity, and supplier lead time into one deterministic projection with an explicit confidence level and any data-quality caveats — the evidence used is included so the projection can be checked without another call. Use korral_list_recent_sales if you need the individual transactions behind the velocity figure (e.g. to check whether a single bulk sale skewed it).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sku | Yes | SKU code to check. | |
| store_id | No | Which store to check. Optional only if this deployment is authorized for exactly one store, in which case it defaults to that store. Required otherwise — call korral_list_authorized_stores to see the options. | |
| lookback_days | No | Days of POS history to use. Hard cap 28. |