Skip to main content
Glama

webaz_buyer_orders

Read-only

Grant-wired buyer order read (safe scope buyer_orders_read_minimal; OAuth grant). Reads YOUR OWN orders — minimal projection only (order_id/status/next_actor/deadline/amount/item_ref/payment_rail/title/variant_label/unit_price/quantity/pay_method), NO address/recipient/contact/notes, no execution.

  • order_id → that order (+ tracking no. once shipped); omitted → your buyer order list (most recent first). payment_rail = funds semantics; amounts are read-only.

  • changed_since=ISO time → only orders changed since (shipped/delivered/returns/disputes); reply has as_of for next check.

  • Seller-side orders not here (use webaz_get_agent_order). No grant → GRANT_REQUIRED; missing scope → PERMISSION_REQUIRED (re-connect).

  • Cancel/return: webaz_buyer_action_request (owner approves); disputes & receipt: owner on webaz.xyz.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "webaz_buyer_orders"
  }
}

Input Schema

NameRequiredDescriptionDefault
fullNoWith order_id: return the FULL view (timeline/terms/logistics/deadlines/refunds/available_actions; needs buyer_orders_read)
limitNoList page size, default 10 (max 50). The list returns a whole-account summary + active orders first.
cursorNoPagination cursor from a previous next_cursor (older orders).
order_idNoOrder ID. Omit to list your buyer orders (minimal projection).
changed_sinceNoWithout order_id: orders changed since this ISO time.
updated_sinceNoWith full: incremental read — unchanged order returns a tiny up_to_date response; otherwise timeline contains only entries newer than this ISO timestamp.

Output Schema

NameRequiredDescriptionDefault
typeNoBUG-06 v2 discriminator on the full timeline form: "order_timeline" (absent on the minimal order_status list)
countNo
errorNopresent ONLY on failure (with error_code + structured recovery fields)
orderNosingle-order form (order_id arg): same minimal projection
ordersNominimal: order_id/status/next_actor/deadline/amount/item_ref/payment_rail/title/variant_label/unit_price/quantity/pay_method (null = unknown)
refundNorail-honest refund state: records[] {kind,responsible_party,executed,evidence}; ABSENT when there is no refund record
statusNotimeline (v2) form: {code, label, label_en} object; up_to_date (order_status v1) form: raw status code string
paymentNofull form: method, executor, order_url, payable {currency,amount,source}, estimate? (never the amount due), payment_verified, verification_source
summaryNoaccount counts: total/active/awaiting_you/disputed/completed/cancelled/other_terminal
quantityNopositive integer, or null when invalid (see quantity_valid); display-only (amount=price.amount_minor)
timelineNofull form: {seq,from,to_status,actor,at,by?} events in true step order (seq); status labels follow the payment method
error_codeNo
rail_badgeNo
up_to_dateNofull+updated_since: true = nothing changed
incrementalNofull+updated_since with changes: {since,timeline_new} (only newer)
next_cursorNoolder orders exist — pass back as cursor
total_countNo
order_outcomeNofull form: fulfilled and platform_settled as two separate facts; money_moved_by_webaz
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

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedOutput schema / properties / order / description
      Previous value: -"single-order form (order_id arg): same 7-key projection"New value: +"single-order form (order_id arg): same minimal projection"
    • changedOutput schema / properties / orders / description
      Previous value: -"minimal 7-key: order_id/status/next_actor/deadline/amount/item_ref/payment_rail"New value: +"minimal: order_id/status/next_actor/deadline/amount/item_ref/payment_rail/title/variant_label/unit_price/quantity/pay_method (null = unknown)"
  2. Changed4 schema fields changed
    • addedOutput schema / properties / order_outcome
      Added value: +{
      +  "description": "full form: fulfilled and platform_settled as two separate facts; money_moved_by_webaz",
      +  "type": "object"
      +}
    • addedOutput schema / properties / payment
      Added value: +{
      +  "description": "full form: method, executor, order_url, payable {currency,amount,source}, estimate? (never the amount due), payment_verified, verification_source",
      +  "type": "object"
      +}
    • changedOutput schema / properties / refund / description
      Previous value: -"rail-honest refund state; ABSENT when no return requests"New value: +"rail-honest refund state: records[] {kind,responsible_party,executed,evidence}; ABSENT when there is no refund record"
    • changedOutput schema / properties / timeline / description
      Previous value: -"full form: {from,to_status,actor,at} events"New value: +"full form: {seq,from,to_status,actor,at,by?} events in true step order (seq); status labels follow the payment method"
  3. First observed

TDQS

A4.9/5.0
Behavior5/5

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

Beyond the readOnlyHint and destructiveHint annotations, the description discloses the minimal projection, explicitly excludes address/recipient/contact/notes, states there is no execution, describes list ordering and the as_of checkpoint, and documents GRANT_REQUIRED and PERMISSION_REQUIRED failure modes. That is substantial operational context not carried by 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.

Conciseness5/5

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

The definition is front-loaded with the core purpose and scope, then uses compact bullets for order_id, changed_since, routing, and error handling. Despite being dense, every sentence adds actionable routing or behavioral detail, with no filler.

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 six-parameter read tool with an output schema and safety annotations, the description is complete: it covers purpose, projection limits, parameter branching, pagination context, alternative tools, and auth/scope failures. An agent has enough information to select and invoke it without guessing at missing context.

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 meaning for key parameters: it explains order_id omission as a buyer order list in most-recent-first order, notes tracking numbers appear once shipped, and ties changed_since to an as_of value for the next check. It does not elaborate on full, limit, cursor, or updated_since, but the schema already covers those.

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?

The description opens with a specific verb and resource: 'Grant-wired buyer order read', then narrows scope to 'Reads YOUR OWN orders'. It explicitly distinguishes seller-side orders by naming webaz_get_agent_order, so the agent can tell this apart from adjacent order tools without opening schemas.

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 gives explicit branching guidance: order_id fetches one order, omitting it lists buyer orders; changed_since filters changed orders; seller-side orders route to webaz_get_agent_order; cancel/return routes to webaz_buyer_action_request; disputes and receipt route to the owner on webaz.xyz. It also names the grant and scope error states, which helps the agent recover correctly.

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