Skip to main content
Glama

get_order

Read-only

Fetch full details for a specific Amazon order using its Order ID, optionally for a chosen Amazon site or account.

Instructions

Get the full details for a given Amazon Order ID.

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": {
      "order_id": "<order_id>"
    },
    "name": "get_order"
  }
}

Input Schema

NameRequiredDescriptionDefault
siteNoThe Amazon site to read, e.g. `amazon.de`, since each site has its own orders. By default, the user's default site (see `check_session`).
accountNoAnother Amazon account to read, e.g. `spouse`, only when the user asks about that person (see `check_session`).
order_idYesThe Amazon Order ID to lookup.

Output Schema

NameRequiredDescriptionDefault
indexNoWhere the Order appeared in the history when it was queried. This will inevitably change (e.g. when a new Order is placed, all indexes will then be off by one), but is still captured as it may be applicable in various use-cases. Populated when the Order was fetched through `get_orders` (use `start_index` to correlate), or when the `clone` has its `index` set.
itemsNoThe Order Items.
subtotalNoThe Order subtotal. Only populated when `full_details` is `True`.
cancelledNo`True` if the Order was cancelled. When `True`, fields like `grand_total` and the totals on the details page may be `None` because Amazon stops rendering them.
gift_cardNoThe Gift Card total (rendered as "Gift Card" on digital order details pages), as a negative amount. Only populated when `full_details` is `True`.
gift_wrapNoThe Gift Wrap total. Only populated when `full_details` is `True`.
recipientNoThe Order Recipients.
shipmentsNoThe Order Shipments.
item_countNoThe number of items in the purchase, when Amazon summarizes the count instead of listing the items (e.g. Whole Foods Market orders show "N items in this purchase"). `None` when no such summary is shown.
grand_totalNoThe Order grand total.
full_detailsNoIf the Orders full details were populated from its details page.
order_numberNoThe Order number. May be `None` only when the Order is `cancelled` and Amazon stripped the order number from the details page (the `order_number` parameter is used as a fallback in that case).
refund_totalNoThe Order refund total. Only populated when `full_details` is `True`.
estimated_taxNoThe Order estimated tax. Only populated when `full_details` is `True`. For Whole Foods Market orders this is the "Tax and Fees" total from the receipt.
free_shippingNoThe Order free shipping, as a negative amount. Only populated when `full_details` is `True`.
reward_pointsNoThe Order reward points, as a negative amount of currency (not a count of points). Only populated when `full_details` is `True`.
coupon_savingsNoThe Order coupon savings, as a negative amount. Only populated when `full_details` is `True`.
is_whole_foodsNo`True` if this is a Whole Foods Market purchase (an in-store purchase or a Whole Foods receipt order). Unlike other unsupported order types, these expose a `grand_total` and (often) an `item_count` on the history page, so those fields are populated.
payment_methodNoThe Order payment method. Only populated when `full_details` is `True`. For Whole Foods Market orders this is the card brand of the first payment method on the receipt (e.g. "Visa").
shipping_totalNoThe Order shipping total. Only populated when `full_details` is `True`.
amazon_discountNoThe Amazon discount, as a negative amount. Only populated when `full_details` is `True`.
total_before_taxNoThe Order total before tax. Only populated when `full_details` is `True`.
multibuy_discountNoThe Multibuy discount, as a negative amount. Only populated when `full_details` is `True`.
order_placed_dateNoThe Order placed date.
promotion_appliedNoThe Order promotion applied, as a negative amount. Only populated when `full_details` is `True`.
order_details_linkNoThe Order details link.
payment_method_last_4NoThe Order payment method's last 4 digits, preserved verbatim so leading zeros are not lost. Only populated when `full_details` is `True`.
subscription_discountNoThe Order Subscribe & Save discount, as a negative amount. Only populated when `full_details` is `True`.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv2.4.0
    • addedInput schema / properties / account
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "Another Amazon account to read, e.g. `spouse`, only when the user asks about that person (see `check_session`)."
      +}
  2. Changed5 schema fields changedv2.2.1
    • changedOutput schema / properties / is_whole_foods / description
      Previous value: -"`True` if this is a Whole Foods Market purchase (an in-store/FOPO purchase or a Whole Foods receipt order). Unlike other unsupported order types, these expose a `grand_total` and (often) an `item_count` on the history page, so those fields are populated."New value: +"`True` if this is a Whole Foods Market purchase (an in-store purchase or a Whole Foods receipt order). Unlike other unsupported order types, these expose a `grand_total` and (often) an `item_count` on the history page, so those fields are populated."
    • changedOutput schema / properties / items / items / properties / link / description
      Previous value: -"The Item link. `None` for items without an Amazon detail page (e.g. ASINLESS Whole Foods Market line items)."New value: +"The Item link. `None` for items without an Amazon detail page (e.g. some Whole Foods Market line items)."
    • addedOutput schema / properties / items / items / properties / subscription_frequency
      Added value: +{
      +  "description": "The Item's Subscribe & Save delivery frequency (e.g. \"Every 2 months\"), `None` if it isn't a subscription.",
      +  "type": "string"
      +}
    • changedOutput schema / properties / shipments / items / properties / items / items / properties / link / description
      Previous value: -"The Item link. `None` for items without an Amazon detail page (e.g. ASINLESS Whole Foods Market line items)."New value: +"The Item link. `None` for items without an Amazon detail page (e.g. some Whole Foods Market line items)."
    • addedOutput schema / properties / shipments / items / properties / items / items / properties / subscription_frequency
      Added value: +{
      +  "description": "The Item's Subscribe & Save delivery frequency (e.g. \"Every 2 months\"), `None` if it isn't a subscription.",
      +  "type": "string"
      +}
  3. Changed2 schema fields changedv2.1.2
    • removedInput schema / properties / order_id / title
      Removed value: -"Order Id"
    • removedInput schema / properties / site / title
      Removed value: -"Site"
  4. Changed4 schema fields changedv2.0.1
    • changedOutput schema / properties / index / description
      Previous value: -"Where the Order appeared in the history when it was queried. This will inevitably change (e.g. when a new Order is placed, all indexes will then be off by one), but is still captured as it may be applicable in various use-cases. Populated when the Order was fetched through `get_order_history` (use `start_index` to correlate), or when the `clone` has its `index` set."New value: +"Where the Order appeared in the history when it was queried. This will inevitably change (e.g. when a new Order is placed, all indexes will then be off by one), but is still captured as it may be applicable in various use-cases. Populated when the Order was fetched through `get_orders` (use `start_index` to correlate), or when the `clone` has its `index` set."
    • changedOutput schema / properties / items / items / description
      Previous value: -"An Item in an Amazon `Order`. If desired fields are populated as `None`, ensure `full_details` is `True` when retrieving the Order (for instance, with `get_order_history`), since by default it is `False` (it will slow down querying)."New value: +"An Item in an Amazon `Order`. If desired fields are populated as `None`, ensure `full_details` is `True` when retrieving the Order (for instance, with `get_orders`), since by default it is `False` (it will slow down querying)."
    • changedOutput schema / properties / shipments / items / properties / delivery_status / description
      Previous value: -"The Shipment delivery status."New value: +"The Shipment delivery status, or `None` once Amazon stops showing it, some weeks after delivery."
    • changedOutput schema / properties / shipments / items / properties / items / items / description
      Previous value: -"An Item in an Amazon `Order`. If desired fields are populated as `None`, ensure `full_details` is `True` when retrieving the Order (for instance, with `get_order_history`), since by default it is `False` (it will slow down querying)."New value: +"An Item in an Amazon `Order`. If desired fields are populated as `None`, ensure `full_details` is `True` when retrieving the Order (for instance, with `get_orders`), since by default it is `False` (it will slow down querying)."
  5. Changed1 schema field changedv1.4.2
    • addedInput schema / properties / site
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "The Amazon site to read, e.g. `amazon.de`, since each site has its own orders. By default, the user's default site (see `check_session`).",
      +  "title": "Site"
      +}
  6. First observedv1.2.0

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and openWorldHint=true, so the safety profile is covered. The description adds 'full details', implying a complete record rather than a partial view, but says nothing about behavior on an unknown/invalid Order ID, whether the result is scoped to the selected site/account, or any rate/authentication constraints.

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?

A single front-loaded sentence with no filler or redundancy. Its brevity is a virtue structurally, though it borders on under-specified rather than maximally informative.

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

Completeness3/5

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

An output schema exists, so return values need not be explained, and the fully-documented schema covers the three parameters. What remains missing is guidance on cross-site/account resolution of the Order ID and on routing between this tool and the plural/list siblings, which matters in a catalog this dense.

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

Parameters3/5

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

Schema description coverage is 100%, and the schema itself documents site, account, and order_id with defaults and examples, so the description need not restate them. It adds no extra meaning about parameter interaction (e.g., that site/account determine which order namespace the ID is resolved against), so the baseline of 3 applies.

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 (get / full details of an Amazon order) keyed to a required Order ID, which is clearly distinct from list-style siblings like get_orders. It does not name or contrast those siblings, so an agent must infer why to pick this one over search_orders or get_orders.

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

Usage Guidelines3/5

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

Usage is only implied: the phrase 'for a given Amazon Order ID' signals that a known order identifier is the precondition, which naturally distinguishes it from browsing orders. There is no explicit when-to-use/when-not statement and no named alternative for lookup-by-criteria versus lookup-by-ID.

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