Skip to main content
Glama

webaz_quote_order

Read-only

Server-authoritative buyer QUOTE (safe scope price_quote; OAuth grant). Integer line items + a single-use time-limited quote_token bound to your account. QUOTE ONLY: no order, no payment, no funds locked, no stock reserved (availability re-checked at real order creation). Uses your SAVED default address server-side (never returned); no default → DEFAULT_ADDRESS_REQUIRED (never paste an address into chat). Amounts are INTEGER base-units (exp 6) — never sum lines yourself. payment_rail: direct_p2p (live; you pay the seller directly, WebAZ holds no funds) | usdc_escrow (on-chain escrow, channel-gated). The compatibility-only escrow input is rejected. Ineligible rails FAIL — never auto-switched. payment_options = price per method; pick lowest payable_units: direct_p2p → account_id as direct_receive_account_id; usdc_escrow → payment_rail. Variants: if the product has variants and the user has not chosen one, show the options with prices and ask first; never pick one yourself. quote_token: 10-min single-use, bound to you+product+quantity+address+rail+amounts. Next: webaz_order_draft → webaz_submit_order_request → the human approves on webaz.xyz.

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": {
      "product_id": "<product_id>"
    },
    "name": "webaz_quote_order"
  }
}

Input Schema

NameRequiredDescriptionDefault
itemsNoGame currency: materials held (combo uses one)
optionsNoInstead of variant_id: {dimension: value} per variant_dimensions
offer_idNoRFC-032 negotiated offer (off_…) for your human: prices the quote at min(offer, listing), answers price_basis:"offer" + list_price_units_at_offer + offer_expires_at, expires no later than the offer, and carries it through draft → approval → order. Consumes nothing. See place_order's offer_id for the full rule.
quantityNoPositive safe integer (default 1). Strings/decimals rejected — no implicit conversion.
product_idYesActive listing id (server re-reads product + seller state)
variant_idNoRequired when the product has variants
donation_bpsNoInteger basis points (0/0.5%/1%/2%/5%), charged IN ADDITION to total. Never auto-set.
payment_railNodirect_p2p (live) | usdc_escrow (on-chain, channel-gated). The compatibility-only escrow input is rejected. Ineligible rails fail — never auto-switched.
address_sourceNoOnly 'default' in v1 — your saved default address, resolved server-side, never shown.
idempotency_keyNoOptional client key: same subject+key+payload within TTL returns the SAME quote; same key with a different payload → IDEMPOTENCY_CONFLICT.
anonymous_recipientNoEscrow only (direct_p2p v1 rejects it).
direct_receive_account_idNodirect_p2p only: a known ACTIVE receiving account of this seller (no free-text payment instructions).

Output Schema

NameRequiredDescriptionDefault
typeNo
errorNopresent ONLY on failure (with error_code + structured recovery fields)
priceNoproduct price: amount_minor / currency USDC / display (display line only; fx table gives display-only local conversions)
statusNov2 status {code,label,label_en}; code canonical (never from label)
amountsNominor breakdown {item,shipping,other,payment_discount?}
optionsNoVARIANT_REQUIRED only: bounded active in-stock SKU choices {variant_id,sku?,options,price,stock_status}; choose explicitly, never guess
productNo{id, title}
quantityNopositive integer, or null when invalid (see quantity_valid); display-only (amount=price.amount_minor)
quote_idNo
shippingNo
rail_noteNoper-rail honesty note: escrow(WAZ)=simulated; usdc_escrow=real USDC in the Base contract; direct_p2p=no principal held
error_codeNo
expires_atNo
destinationNoregion tag + masked summary only
disclosuresNo
quote_tokenNosingle-use, 10-min TTL — pass to webaz_order_draft
return_daysNo
payment_railNo
fiat_estimateNodisplay-only ≈local-fiat {currency,display,rate,as_of,stale}; never a settlement amount; omitted when unavailable
warranty_daysNo
quantity_errorNoinvalid-quantity code: missing|empty|zero|negative|not_integer|overflow|non_numeric
quantity_validNofalse only when quantity is invalid data (card shows 数量数据异常, buttons disabled)
schema_versionNo
stock_reservedNo
payment_optionsNo[{rail,account_id?,method_label,payable_units,discount_units,protection,buyer_last_paid?}]; usdc_escrow last
available_actionsNo
selection_requiredNoVARIANT_REQUIRED only: the buyer must choose a variant before retrying
variant_options_totalNoVARIANT_REQUIRED only: total active in-stock SKU choices
economic_action_executedNo
variant_options_truncatedNoVARIANT_REQUIRED only: true when the bounded options array omits additional choices

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedOutput schema / properties / payment_options / description
      Previous value: -"[{rail,account_id?,method_label,payable_units,discount_units,protection}]; usdc_escrow last"New value: +"[{rail,account_id?,method_label,payable_units,discount_units,protection,buyer_last_paid?}]; usdc_escrow last"
  2. Changed1 schema field changed
    • addedInput schema / properties / items
      Added value: +{
      +  "description": "Game currency: materials held (combo uses one)",
      +  "items": {
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
  3. First observed

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and destructiveHint=false, and the description reinforces this with concrete non-effects (no funds locked, no stock reserved, availability re-checked at order creation). It also discloses behavior annotations cannot: a 10-minute single-use quote_token bound to account+product+quantity+address+rail+amounts, server-side default-address resolution that is never returned, and DEFAULT_ADDRESS_REQUIRED. The only shortfall is that the ephemeral token creation is never reconciled with the readOnly framing.

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 quote-only constraint and the token contract, then rail semantics, then next steps — a sensible priority order. It is dense and telegraphic, and the rail/variant caveats restate schema descriptions almost verbatim, which is mild redundancy rather than wasted space.

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 a 12-parameter tool with nested objects, an output schema, and full annotations, the description covers the remaining unknowns: next-step chaining, the compatibility-only escrow rejection, fail-never-auto-switch rail behavior, and the variant disambiguation rule. Nothing an agent needs to invoke it correctly is missing.

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 cross-parameter meaning the schema cannot: payment_options is a per-method price map where you pick the lowest payable_units, and direct_p2p requires mapping account_id into direct_receive_account_id while usdc_escrow uses payment_rail. It also warns that amounts are INTEGER base-units (exp 6) and must never be summed by the caller.

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?

"Server-authoritative buyer QUOTE" states a specific verb and resource, and the description immediately bounds it with "QUOTE ONLY: no order, no payment, no funds locked, no stock reserved." That contrast distinguishes it cleanly from siblings like webaz_order_draft and webaz_place_order without requiring the agent to open either schema.

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

Usage Guidelines5/5

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

It names the explicit downstream path (webaz_order_draft → webaz_submit_order_request → human approval on webaz.xyz) and states a concrete when-not rule for variants: show options with prices and ask, never pick one yourself. Rail selection guidance ("pick lowest payable_units") is actionable rather than implied.

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