Skip to main content
Glama

Create Run Quote

create_run_quote

Issue 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

NameRequiredDescriptionDefault
specNoExplicit form: concrete cost-driver attribute values keyed by the book's schema.
bookIdNoExplicit form: the price book id (GUID). Requires spec.
itemSkuNoItem 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.
previewNoStep 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.
quantityYesQuantity to quote (must be greater than zero).
validityDaysNoValidity window in days (1–3650). Omitted = 30.
idempotencyKeyNoCaller-generated idempotency key; required with previewReceipt to commit.
previewReceiptNoStep 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

NameRequiredDescriptionDefault
okNo
quoteNo
previewNo
warningsNo
expiresAtNo
actionItemIdNo
confirmationNo
correlationIdNo
approvalResultNo
idempotencyKeyNo
previewReceiptNo
idempotentReplayNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations only say it is a non-read-only, non-destructive, non-idempotent write; the description goes much further by disclosing the frozen-snapshot semantics, staleness behavior after later grid changes, the default 30 / max 3650 day window, and the governed two-step preview-to-commit protocol with a single-use previewReceipt and fresh idempotencyKey. It also states refusal conditions for drifted profiles and unmatched specs. This is the kind of mutation context annotations cannot carry.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded with the core definition, then the two forms, then the preview protocol — a logical order with no filler sentences. The sentences are dense and packed with parentheticals, which costs some readability but every clause carries information.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For an 8-parameter write tool with a two-step commit protocol and an output schema, the description covers the decision points an agent needs: which form to use, what happens on each failure mode, and how preview leads to commit. Return-value details are correctly left to the output schema.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3, but the description adds real meaning beyond it: it explains that itemSku and bookId/spec are mutually exclusive, that itemSku derives its spec from current custom-field values at issue time, and that previewReceipt plus a fresh idempotencyKey is what converts a preview into a commit. The quantity and validityDays ranges are already in the schema, so the marginal gain is limited to the form-selection and two-step semantics.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ('Issue a run quote') and immediately defines the artifact as a frozen unit-cost + total-cost snapshot with a validity window, which is far more than a restatement of the name. It also enumerates the two mutually exclusive input forms. The only gap is that it never distinguishes itself by name from plausible siblings such as create_quote or convert_quote.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives explicit selection rules between the two forms: itemSku quotes the default sourcing profile, while bookId + spec quotes an explicit grid in Manual mode. It also states the failure conditions (refused when the profile has drifted from the book's schema; fails when no grid matches the spec) and when to set preview=true. It stops short of naming which sibling tool to use for the non-run quote path.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources