get_low_stock_alerts
Find SKUs with low stock or out-of-stock, set a custom threshold, and view alerts sorted by quantity.
Instructions
取得低庫存或缺貨的 SKU 清單(變體層級),可自訂庫存門檻值。
掃描全店商品,列出每個 quantity <= threshold 的變體,依庫存由少到多排序。 要看整體庫存統計請用 get_inventory_overview;要看各倉庫分佈請用 get_stock_by_warehouse。
【回傳結構】 dict 含 threshold, total_alerts, out_of_stock(缺貨數), low_stock(低庫存數), alerts[]。 每筆 alert 含 product_title、sku、color、size、quantity、status(缺貨/低庫存)、brand。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| threshold | No | 庫存低於此值即警示 |