Skip to main content
Glama

Quote the cart

order_get_quote
Idempotent

Price the session cart, returning each line's offers (price + days).

Prices every line that changed since its last quote; pass a line_id to re-price just one. Each line's translated configuration + offers are snapshotted so the payment link re-sends the priced line and binds an offer by offer_id. A line with a pricing_error was refused by RendReal: on invalid_configuration re-run catalog_configure_product for that line_id using the reason, then quote again; on unparseable_response RendReal's response was unusable — retry later. The other lines still priced. A line with an empty offers list and no pricing_error didn't price — relay that, don't treat it as an error. Returns offers for the whole cart. List the offers in your reply as short plain text, never as a markdown table. When the quote card is displayed, it shows each offer with a "Choose this" button, so a short summary is enough.

The widget's picker commits an ordinal reference with price and production days attached for disambiguation (e.g. "Nr 2 - £58.00 (3-day production), please.") rather than an id — 1-indexed against that same line's offers list from this call, in order. Map the number back to that list position's offer_id; don't match on price or production days alone (two offers can coincide on either).

Returns a job — poll until SUCCEEDED. On failure the job error is EmptyCartError (nothing configured yet), LineNotFoundError (bad line_id), ProductNotFoundError (catalog entry gone), RendrealNotConfiguredError, a ConfigurationMismatchError / UnmappableComponentError, or a Rendreal*Error.

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": {
      "session_id": "<session_id>"
    },
    "name": "order_get_quote"
  }
}

Input Schema

NameRequiredDescriptionDefault
line_idNo
session_idYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Annotations only say this is a non-read-only, idempotent, closed-world call; the description adds that it returns a job requiring polling, that lines are snapshotted for the payment link, and that `offer_id` binds downstream. It enumerates the failure surface (`EmptyCartError`, `LineNotFoundError`, `ProductNotFoundError`, `ConfigurationMismatchError`, `Rendreal*Error`) and distinguishes a silent non-priced line from a genuine error — context far beyond the annotations.

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?

Purpose and scope are front-loaded, then errors and the ordinal-offer mapping follow in a logical order. It is long, and the reply-formatting instructions (plain text, no markdown table) sit somewhat outside pricing semantics, but the length is justified by the async and error-handling complexity.

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?

With an output schema already present, the description need not document return fields, yet it still covers job polling, snapshotting, per-line pricing states, and the full error taxonomy. It also resolves the non-obvious picker contract (1-indexed ordinal mapped back to `offers[position].offer_id`, not matched on price or days), which an agent could not infer from structured fields.

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 0%, so the description must carry the parameter burden; it explains `line_id` precisely (re-price only that line, `LineNotFoundError` if bad) and implies `session_id` through "session cart." It does not state where `session_id` comes from, leaving a small gap given the absent schema docs.

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

Purpose5/5

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

Opening sentence states a specific verb and resource ("Price the session cart") and names the return payload (each line's offers: price + days). The scope distinction between whole-cart pricing and single-line re-pricing via `line_id` lets an agent separate it from cart-viewing siblings without reading the schema.

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 a clear trigger rule ("prices every line that changed since its last quote") and the narrowing condition ("pass a `line_id` to re-price just one"). It also prescribes the recovery path on `invalid_configuration` (re-run `catalog_configure_product`, then quote again), though it does not explicitly contrast with other quote-producing siblings.

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