Toggle Demand Curve Assignment
set_demand_curve_assignment_enabledEnable or disable one demand-curve assignment — the reversible off-switch: a disabled assignment stops shaping the item's forecast but keeps its configuration and provenance, and can be re-enabled at any time. Deleting assignments (or curves) is deliberately not available over MCP; use the app for that. Assignment ids come from list_demand_curve_assignments.
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": {
"assignmentId": "<assignmentId>",
"enabled": "<enabled>"
},
"name": "set_demand_curve_assignment_enabled"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| enabled | Yes | true = the assignment shapes the forecast; false = it is inert. | |
| 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 changed until the commit call. | |
| assignmentId | Yes | The assignment id (GUID), from list_demand_curve_assignments. | |
| 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 | ||
| preview | No | ||
| expiresAt | No | ||
| assignment | No | ||
| actionItemId | No | ||
| confirmation | No | ||
| correlationId | No | ||
| approvalResult | No | ||
| idempotencyKey | No | ||
| previewReceipt | No | ||
| idempotentReplay | No |