Evaluate & Replenish Low Stock
evaluate_replenishmentCompare on-hand stock against last 24 hours of POS sales for a SKU across stores, compute shortfall, and automatically raise replenishment orders when gap exceeds threshold. Supports dry run for evaluation.
Instructions
For a single SKU across one or more stores, compare on-hand stock against the last 24 hours of POS sales, compute the shortfall gap (units sold in last 24h minus units on hand), and automatically raise a replenishment order at every store whose gap exceeds a threshold (default 6 units). Returns the per-store evaluation plus any orders created. Set dryRun=true to evaluate without placing orders.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sku | Yes | Product SKU to evaluate, e.g. '8847291'. | |
| dryRun | No | If true, evaluate and recommend but do not place orders. | |
| storeIds | Yes | Stores to check, e.g. ['47', '102']. | |
| gapThreshold | No | Raise an order only when (last24h sales - on-hand) exceeds this. Default 6. |