ONLY for a huge sales file — get the script
demand_forecaster_get_engineCall this INSTEAD of demand_forecaster only when the file is huge (more than about 2500 rows or 200 products). It gives a script. Save it exactly and run it. Do not guess the numbers. For a normal question or a small file, call demand_forecaster.
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": "demand_forecaster_get_engine"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| as_of | No | ||
| period | No | W | |
| horizon | No | ||
| meta_path | No | Optional path to a per-product file with lead_time_days. | |
| min_periods | No | ||
| history_path | No | Path to the sales history file (CSV/TSV/JSON/JSONL) inside your sandbox. May also carry a lead-time column. | |
| seasonal_periods | No | ||
| interval_confidence | No | ||
| default_lead_time_days | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| notes | No | ||
| period | No | ||
| script | Yes | ||
| horizon | No | ||
| language | No | ||
| requires | No | ||
| writes_file | No | ||
| instructions | Yes | ||
| code_integrity | Yes | ||
| engine_version | Yes | ||
| meta_path_used | No | ||
| data_requirements | No | ||
| history_path_used | No | ||
| network_access_required | No |