Create Vendor Price Book
create_supplier_price_bookCreate a vendor price book (rate card): name, optional per-tenant-unique code, currency, active window, interpolation mode, supported run quantities (runQuantityLimits), and either the spec attribute schema that keys its quantity-break grid, kind "ItemPriced" for a flat per-SKU list, or kind "ComponentPriced" for a sum-of-components cost model. The book is created EMPTY and DRAFT (it cannot price anything until activate_price_book publishes it) — load a spec grid with append_price_book_breaks, an item-priced list with append_item_priced_rows, or component-priced rate components with append_rate_components. Always creates a shared house book; requires an operator (unpinned) org token (client-pinned tokens are refused, matching the web app where clients cannot author books).
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": {
"input": "<input>"
},
"name": "create_supplier_price_book"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| input | Yes | The book to create (supplierId + name required). | |
| 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. | |
| 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 | ||
| book | No | ||
| preview | No | ||
| expiresAt | No | ||
| nextAction | No | ||
| actionItemId | No | ||
| confirmation | No | ||
| appliedUpdate | No | ||
| correlationId | No | ||
| approvalResult | No | ||
| idempotencyKey | No | ||
| previewReceipt | No | ||
| maxRowsPerChunk | No | ||
| idempotentReplay | No | ||
| recommendedNextTool | No |