Demand Forecast
get_demand_forecastForward-looking demand forecast for a single item by SKU: the auto-classified demand pattern, the statistical method chosen (by accuracy on the item's recent months where it has two seasons of history, otherwise from the pattern), forecast accuracy, current inventory, the projected stockout date (and days until), and the month-by-month demand forecast over the horizon. Runs the same forecasting engine as the item page's demand chart. Also flags customer concentration: the share of the trailing window's net demand (windowDays) its top customer placed, a risk flag beside the forecast, never an input to it. Read-only. Optionally override the method: ses (simple exponential smoothing), holt (double exponential / trend), holtWinters (triple exponential / seasonal), tsb (intermittent demand), crostonSba (intermittent demand, Croston SBA), or median (month-by-month median of the eligible models).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"itemSku": "<itemSku>"
},
"name": "get_demand_forecast"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| method | No | Optional method override: ses, holt, holtWinters, tsb, crostonSba, or median. Omit to auto-select (by accuracy on recent months where the seasonal model can be scored, otherwise from the demand pattern). | |
| itemSku | Yes | Item SKU to forecast (exact match). | |
| horizonDays | No | Forecast horizon in days (default 90, max 365). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | No | ||
| mae | No | ||
| mape | No | ||
| wape | No | ||
| itemId | No | ||
| method | No | ||
| itemSku | No | ||
| itemName | No | ||
| reasoning | No | ||
| horizonDays | No | ||
| demandPattern | No | ||
| accuracyPercent | No | ||
| monthlyForecast | No | ||
| currentInventory | No | ||
| daysUntilStockout | No | ||
| customerConcentration | No | ||
| projectedStockoutDate | No |