Get Low Stock Alerts
get_low_stock_alertsScan inventory to flag products at or below a stock threshold, marking under 3 units critical, sorting urgent first, and optionally filtering by category.
Instructions
Scans inventory and returns InventoryAlert objects for every product at or below a stock threshold. Products under 3 units are flagged 'critical'; everything else at or under the threshold is flagged 'low'. Results are sorted by current stock ascending (most urgent first). An optional category restricts the scan to one category; the echoed 'filters' block reports the category actually applied.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| category | No | Restrict to a single category, e.g. 'tech', 'apparel', or 'home'. Case-insensitive. Omit to cover the whole catalog. | |
| threshold | No | Stock level at or below which a product triggers an alert. Defaults to 5 if omitted. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| alerts | Yes | ||
| filters | Yes | ||
| alertCount | Yes | ||
| criticalCount | Yes | ||
| thresholdUsed | Yes |