Explain Demand Change
explain_demand_changeWhy an item's demand moved: its last 4 complete weeks of units against the expectation set by the 12 weeks before (direction down / up / flat, or insufficient_data), the weekly series with the same weeks last year, and the reasons Spark's own data supports — each with a category (seasonality, evidence, calendar, price_change, anomaly, stockout), a claim with its numbers, its source and a confidence (high / medium / low). Sources are this workspace's sales history and seasonal shape, submitted demand evidence, demand-calendar events, US retail dates, list-price history, stock-outs and detected demand anomalies; no external market data. dataNotes says what the data could not support. Present only the reasons returned, with their confidence; never add a cause the response does not carry. Read-only.
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": "explain_demand_change"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| itemSku | Yes | Item SKU (exact match, case-insensitive). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | No | ||
| asOf | No | ||
| weeks | No | ||
| itemId | No | ||
| itemSku | No | ||
| reasons | No | ||
| itemName | No | ||
| dataNotes | No | ||
| direction | No | ||
| recentWeeks | No | ||
| baselineWeeks | No | ||
| changePercent | No | ||
| expectedBasis | No | ||
| recentActualUnits | No | ||
| recentExpectedUnits | No |