forecast_item_demand
Predict future demand for an item using nine models, auto-selecting the best via backtesting. Get monthly forecasts, accuracy metrics, and a procurement suggestion including 20% safety stock.
Instructions
Predict future demand quantity for a specific item using all 9 models (SMA, WMA, EWMA, LinearTrend, Drift, Holt, Holt-Winters, SeasonalNaive, Median). Auto-selects best model via backtesting. Returns monthly forecasts per model, model accuracy (MAPE/MAE/RMSE), and a procurement suggestion (forecast qty + 20% safety stock).
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": {
"itemCode": "<itemCode>"
},
"name": "forecast_item_demand"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| itemCode | Yes | SAP B1 item code | |
| historyMonths | No | Months of history to train on (default 12, max 36) | |
| horizonMonths | No | Number of months to forecast ahead (default 3, max 12) |