Create Run Quote
create_run_quoteIssue a run quote — a FROZEN unit-cost + total-cost snapshot with a validity window (default 30 days, max 3650) that later grid changes flag Stale. Two mutually exclusive forms: (a) itemSku — quotes the item's DEFAULT sourcing profile (book + stored spec, provenance recorded); refused when the profile has drifted from the book's schema. (b) bookId + spec — quotes an explicit grid (Manual mode, no provenance). Fails when no grid matches the spec. Set preview=true for the governed two-step protocol (the priced quote a commit would freeze 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": {
"quantity": "<quantity>"
},
"name": "create_run_quote"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| spec | No | Explicit form: concrete cost-driver attribute values keyed by the book's schema. | |
| bookId | No | Explicit form: the price book id (GUID). Requires spec. | |
| itemSku | No | Item form: an item SKU, quoted via its default sourcing profile — the profile names the book, and the quoted spec is derived from the item's current custom-field values at issue time. Mutually exclusive with bookId/spec. | |
| preview | No | Step 1 of the required two-step write: set true to validate and receive the priced quote plus a single-use previewReceipt. Nothing is issued until the commit call. | |
| quantity | Yes | Quantity to quote (must be greater than zero). | |
| validityDays | No | Validity window in days (1–3650). Omitted = 30. | |
| 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 | ||
| quote | No | ||
| preview | No | ||
| warnings | No | ||
| expiresAt | No | ||
| actionItemId | No | ||
| confirmation | No | ||
| correlationId | No | ||
| approvalResult | No | ||
| idempotencyKey | No | ||
| previewReceipt | No | ||
| idempotentReplay | No |