Items by Days of Supply
get_items_by_days_of_supplyWhich items are about to run out? Ranks items ascending by daysOnHand (current available ÷ the planning rate — the stockout-urgency signal), so the most urgent are first. Filters (all optional): minDays / maxDays bound daysOnHand; includeNoConsumption (default false) excludes items with no demand signal (null daysOnHand) unless set true. Each row also carries aggregatedInventoryDays (including inbound POs + buildable capacity — the procurement-planning view) and a velocity-confidence tier. Available is live stock before units committed to open orders, the figure the days-on-hand math uses: the planning rate already counts those orders as demand. For available net of committed units, as the Inventory page and Shopify show it, use list_items or get_item_stock_outlook. Paged by limit (default 50, max 200); TotalMatching is the pre-paging count. A client-pinned token sees only its own client's items.
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_items_by_days_of_supply"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Max items to return (default 50, max 200). | |
| maxDays | No | Only items with daysOnHand on/below this value. | |
| minDays | No | Only items with daysOnHand on/above this value. | |
| includeNoConsumption | No | Include items with no demand signal (null daysOnHand); default false excludes them. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | No | ||
| items | No | ||
| maxDays | No | ||
| minDays | No | ||
| returned | No | ||
| totalMatching | No | ||
| includeNoConsumption | No |