Create Demand Curve
create_demand_curveCreate a demand curve from 12 monthly weights (January-first). The server normalizes the points to mean 1.0 before persisting, so attaching the curve can never change an item's annual forecast volume by itself. curveType: Seasonal (repeats every year, calendar-anchored) or Lifecycle (plays once from each item's launch/anchor date — launch ramps, promos, end-of-life). Creating only adds a reusable shape; nothing is forecast-affecting until the curve is applied with apply_demand_curve_to_items.
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": {
"name": "<name>",
"curveType": "<curveType>",
"points": "<points>"
},
"name": "create_demand_curve"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Curve name, e.g. "Summer peak". | |
| points | Yes | Exactly 12 non-negative monthly weights, January first. Relative values — the server normalizes them to average 1.0. | |
| preview | No | Step 1 of the required two-step write: set true to validate and receive a structured preview plus a single-use previewReceipt. Nothing is created until the commit call. | |
| curveType | Yes | Seasonal (repeats annually) or Lifecycle (one-shot from an anchor date). | |
| description | No | Optional description of when to use this curve. | |
| idempotencyKey | No | Caller-generated idempotency key; required with previewReceipt to commit. | |
| previewReceipt | No | Step 2 of the required two-step write: the receipt returned by the preview call. Supply together with a fresh idempotencyKey to commit; calls without it are refused. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | No | ||
| curve | No | ||
| preview | No | ||
| expiresAt | No | ||
| actionItemId | No | ||
| confirmation | No | ||
| correlationId | No | ||
| approvalResult | No | ||
| idempotencyKey | No | ||
| previewReceipt | No | ||
| idempotentReplay | No |