Get Low Stock Alerts
get_low_stock_alertsScan inventory for products at or below a stock threshold, flag critical items under 3 units, and return alerts sorted by urgency with optional category filtering.
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.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "get_low_stock_alerts"
}
}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 |