Stock Health
get_stock_healthHow healthy is the inventory? Without itemSku: the tenant's composite health score (0-100, value-weighted) with its five factor averages (stock level, stockout, return rate, ABC, dead stock), excess/aged units and monthly excess carrying cost, plus a daily score trend — read from the nightly snapshot (computed fresh when none exists yet). With itemSku: that item's full score breakdown — factors, excess units, carrying-cost dollars, ABC class; daysOfSupply=null with stock on hand means dead stock.
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_stock_health"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| itemSku | No | Optional item SKU for a per-item deep dive instead of the tenant view. | |
| trendDays | No | Days of score trend to include in the tenant view (default 30, max 366). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | No | ||
| item | No | ||
| trend | No | ||
| tenant | No | ||
| warnings | No |