Find products at risk of stocking out
get_stockout_riskFind products at risk of stocking out within a given number of days. Compares current available inventory, plus open purchase orders and transfers that land before it runs out, against daily average consumption and supplier lead times. Use when users ask about stockout risk, low stock alerts, or which SKUs need reordering.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum number of products to return (default: 20) | |
| supplier_id | No | Optional supplier ID to filter products by | |
| warehouse_id | No | Optional warehouse ID to filter by | |
| days_threshold | No | Number of days to check stockout risk for (default: 14) |