Skip to main content
Glama

get_orders

Read-only

Retrieve Amazon order history for a chosen period, including household members' orders, and return a cursor to fetch the next batch.

Instructions

Get a batch of the Amazon Order history for a given time period, with the Amazon Household members whose Orders the account can view and a cursor to fetch the next batch.

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": "get_orders"
  }
}

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`).
yearNoThe year for which to get history. Only one of `year` or `time_filter` may be given, and it's ignored if `cursor` is provided. Defaults to the current year if neither `year` nor `time_filter` is specified.
limitNoStop fetching history pages once at least this many Orders are collected. Whole pages are fetched, so the batch can hold up to a page more than `limit`. `None` fetches every page.
cursorNoThe `cursor` of the previous batch, to fetch the next one. The filters it was fetched with carry over.
accountNoAnother Amazon account to read, e.g. `spouse`, only when the user asks about that person (see `check_session`).
start_indexNoThe index of the Order from which to start fetching in the history. Ignored if `cursor` is provided.
time_filterNoThe time filter to use. Supported values are `"last30"` (last 30 days), `"months-3"` (past 3 months), or `"year-YYYY"` (specific year). Only one of `year` or `time_filter` may be given.
full_detailsNoGet the full details for each Order in the batch. This will execute an additional request per Order.
order_filterNoThe order type filter to use, e.g. `"digital"` for Kindle and other digital purchases, which the default history doesn't include. If provided, appended alongside the time filter.
family_member_idNoThe ID of an Amazon Household member whose Orders to get, such as a linked Teen account, from `household_members`. An account in an Amazon Household gets the whole household's Orders by default; pass `"self"` for only its own.

Output Schema

NameRequiredDescriptionDefault
itemsNoThe results in this batch.
cursorNoPass this back as `cursor` to the same call to fetch the next batch. A JSON-safe `dict` to keep as it is, not to build or change. `None` when there are no more results.
has_moreNo`True` if there are more results to fetch with `cursor`.
household_membersNoThe Amazon Household members whose Orders the account can view, such as linked Teen accounts, from the Order history's member filter. Pass a member's `id` as `family_member_id` to get their Orders. Empty if the account has none.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv3.0.0
    • changedInput schema / properties / order_filter / description
      Previous value: -"The order type filter to use, e.g. `\"digital-orders\"` for Kindle and other digital purchases, which the default history doesn't include. If provided, appended alongside the time filter."New value: +"The order type filter to use, e.g. `\"digital\"` for Kindle and other digital purchases, which the default history doesn't include. If provided, appended alongside the time filter."
  2. 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`)."
      +}
  3. Changed1 schema field changedv2.3.0
    • changedInput schema / properties / limit / default
      Previous value: -25New value: +10
  4. Changed8 schema fields changedv2.2.1
    • changedInput schema / properties / time_filter / description
      Previous value: -"The time filter to use. Supported values are `\"last30\"` (last 30 days), `\"months-3\"` (past 3 months), or `\"year-YYYY\"` (specific year). If provided, this takes precedence over the `year` parameter."New value: +"The time filter to use. Supported values are `\"last30\"` (last 30 days), `\"months-3\"` (past 3 months), or `\"year-YYYY\"` (specific year). Only one of `year` or `time_filter` may be given."
    • changedInput schema / properties / year / description
      Previous value: -"The year for which to get history. Ignored if `time_filter` or `cursor` is provided. Defaults to the current year if neither `year` nor `time_filter` is specified."New value: +"The year for which to get history. Only one of `year` or `time_filter` may be given, and it's ignored if `cursor` is provided. Defaults to the current year if neither `year` nor `time_filter` is specified."
    • changedOutput schema / properties / household_members / items / properties / id / description
      Previous value: -"The FamilyMember ID, the value Amazon's household member filter (`householdMembers`) takes."New value: +"The FamilyMember ID, to pass as `family_member_id` to `get_orders`."
    • changedOutput schema / properties / items / items / 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 / 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 / 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 / items / items / 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 / items / items / 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"
      +}
  5. Changed9 schema fields changedv2.1.2
    • removedInput schema / properties / cursor / title
      Removed value: -"Cursor"
    • removedInput schema / properties / family_member_id / title
      Removed value: -"Family Member Id"
    • removedInput schema / properties / full_details / title
      Removed value: -"Full Details"
    • removedInput schema / properties / limit / title
      Removed value: -"Limit"
    • removedInput schema / properties / order_filter / title
      Removed value: -"Order Filter"
    • removedInput schema / properties / site / title
      Removed value: -"Site"
    • removedInput schema / properties / start_index / title
      Removed value: -"Start Index"
    • removedInput schema / properties / time_filter / title
      Removed value: -"Time Filter"
    • removedInput schema / properties / year / title
      Removed value: -"Year"
  6. Changed3 schema fields changedv2.1.0
    • changedInput schema / properties / family_member_id / description
      Previous value: -"The ID of an Amazon Household member whose Orders to get, such as a linked Teen account, from `get_family_members`."New value: +"The ID of an Amazon Household member whose Orders to get, such as a linked Teen account, from `household_members`. An account in an Amazon Household gets the whole household's Orders by default; pass `\"self\"` for only its own."
    • changedOutput schema / description
      Previous value: -"The batch of Orders, and the cursor for the next one."New value: +"The batch of Orders, the Amazon Household members, and the cursor for the next one."
    • addedOutput schema / properties / household_members
      Added value: +{
      +  "description": "The Amazon Household members whose Orders the account can view, such as linked Teen accounts, from the Order history's member filter. Pass a member's `id` as `family_member_id` to get their Orders. Empty if the account has none.",
      +  "items": {
      +    "additionalProperties": true,
      +    "description": "A member of the Amazon Household whose Orders the account can view, such as a linked Teen account. Pass its `id` as `family_member_id` to `get_orders` to get their Orders.",
      +    "properties": {
      +      "id": {
      +        "description": "The FamilyMember ID, the value Amazon's household member filter (`householdMembers`) takes.",
      +        "type": "string"
      +      },
      +      "name": {
      +        "description": "The FamilyMember name.",
      +        "type": "string"
      +      }
      +    },
      +    "type": "object"
      +  },
      +  "type": "array"
      +}
  7. Addedv2.0.1

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare readOnlyHint and openWorldHint, but the description adds genuinely new behavioral context: results include Orders visible through Amazon Household members, and the return includes a cursor for the next batch. It stops short of noting auth/session requirements (deferred to check_session in the schema) or the cost of full_details, but the added scope disclosure is meaningful.

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?

It is a single front-loaded sentence that establishes the resource first, then scope and pagination. The trailing clause ('with the Amazon Household members whose Orders the account can view and a cursor...') is slightly tangled but still earns its place by conveying return-shape behavior.

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

Completeness4/5

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

With an output schema present, return values need no explanation, and all ten parameters are fully described in the schema. The description covers resource, time scope, household visibility, and pagination, leaving only the when-to-use-vs-search_orders question unaddressed.

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%, so all ten parameters are already well documented, including the year/time_filter exclusivity, cursor behavior, and household_member_id semantics. The description adds only the high-level notion of a time period, household visibility, and cursor continuation, which largely restates what the schema already provides.

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?

The description gives a specific verb and resource ('Get a batch of the Amazon Order history for a given time period') and signals the batch/pagination shape via 'a cursor to fetch the next batch'. It implicitly separates itself from the single-order sibling by emphasizing 'batch' and cursor-based paging, but it never names an alternative tool, so differentiation relies on inference.

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: an agent can infer this is for pulling paged order history over a time period, and that a cursor continues a prior batch. There is no explicit statement of when to prefer this over search_orders or get_order, and no exclusions or prerequisites are given in the description.

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