Update Demand Curve Points
update_demand_curve_pointsReplace a demand curve's 12 monthly points (and optionally rename or re-describe it). Everything else — curve type, calendar start month, ownership — is preserved. The new points are normalized to mean 1.0, and the curve's version is bumped so every item carrying it picks up the new shape. A client-pinned credential can edit only its own client's curves, never the shared house curves.
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": {
"curveId": "<curveId>",
"points": "<points>"
},
"name": "update_demand_curve_points"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Optional new name. Omitted = keep the current name. | |
| points | Yes | Exactly 12 non-negative monthly weights, January first. Relative values — the server normalizes them to average 1.0. | |
| curveId | Yes | The demand curve id (GUID). | |
| 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. | |
| description | No | Optional new description. Omitted = keep the current description. | |
| 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 |