Replace Price Book Breaks
replace_price_book_breaksREPLACE a price book's entire quantity-break grid (full-replace semantics: the supplied list becomes the whole grid; prior breaks are removed). Price changes automatically flag affected live quotes Stale and alert the operator. Empty lists are refused — clearing a grid is an operator action. A client-pinned token can only modify its own client's books, never the shared house books. Max 500 breaks per call. Set dryRun=true to VALIDATE the new grid and preview the diff (wouldRemove = current breaks, wouldAdd = new breaks) without removing, inserting, or flagging any quote Stale — the book is left unchanged. Alternatively set preview=true for the governed two-step protocol (a validated diff plus a single-use previewReceipt); repeat with that receipt and a fresh idempotencyKey to commit.
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": {
"bookId": "<bookId>",
"breaks": "<breaks>"
},
"name": "replace_price_book_breaks"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bookId | Yes | The price book id (GUID). | |
| breaks | Yes | The complete new grid: specKey (cost-driver attribute values, e.g. {"trim": "6x9"}), minimumQuantity, unitCost, setupCost, isActive. | |
| dryRun | No | Preview only (legacy dry-run): validate the new grid and report the diff (wouldRemove/wouldAdd) without changing the book. The response has DryRun=true and ReplacedCount=0. Short-circuits the governed protocol below. | |
| preview | No | Step 1 of the required two-step write: set true to validate and receive a structured old→new grid diff plus a single-use previewReceipt. Nothing is changed until the commit call. | |
| 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 | ||
| breaks | No | ||
| dryRun | No | ||
| preview | No | ||
| wouldAdd | No | ||
| expiresAt | No | ||
| wouldRemove | No | ||
| actionItemId | No | ||
| confirmation | No | ||
| correlationId | No | ||
| replacedCount | No | ||
| approvalResult | No | ||
| idempotencyKey | No | ||
| previewReceipt | No | ||
| idempotentReplay | No |