Skip to main content
Glama

search_orders

Read-only

Search all years of Amazon order history by product title, order number, address, or recipient to find matching items with their order number and date.

Instructions

Search every year of the Order history for Orders by product title, Order number, address, or recipient, as the search box on Your Orders does, getting each matching Item with its Order's number and date.

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": {
      "query": "<query>"
    },
    "name": "search_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`).
limitNoStop fetching result pages once at least this many results are collected. Whole pages are fetched, so the batch can hold up to a page more than `limit`. `None` fetches every page.
queryYesWhat to search for: words from a product title, an Order number, or a name or address an Order was sent to.
cursorNoThe `cursor` of the previous batch, to fetch the next one.
accountNoAnother Amazon account to read, e.g. `spouse`, only when the user asks about that person (see `check_session`).

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`.

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. Changed1 schema field changedv2.3.0
    • changedInput schema / properties / limit / default
      Previous value: -25New value: +10
  3. Changed2 schema fields changedv2.2.1
    • changedOutput schema / properties / items / items / properties / item / 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 / item / 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"
      +}
  4. Changed4 schema fields changedv2.1.2
    • removedInput schema / properties / cursor / title
      Removed value: -"Cursor"
    • removedInput schema / properties / limit / title
      Removed value: -"Limit"
    • removedInput schema / properties / query / title
      Removed value: -"Query"
    • removedInput schema / properties / site / title
      Removed value: -"Site"
  5. Addedv2.0.1

TDQS

A3.5/5.0
Behavior3/5

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

The annotations already declare readOnlyHint and openWorldHint, so safety and network scope are covered. The description adds the meaningful scope fact that the search spans every year of history and is scoped per site (in schema), but it says nothing about rate limits, result ordering, or page-fetching side effects beyond what the schema states.

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 compact sentence with the action front-loaded and no filler. It is dense but every clause (history scope, field list, search-box analogy, returned item/order/date) carries information; slightly awkward parsing of the trailing participle is the only cost.

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 100% schema coverage, full annotations, and an output schema, the description only needs to convey purpose and search behavior, which it does. Multi-site and multi-account scoping live in the schema, so nothing an agent needs to call it correctly is missing, though a pointer to the listing siblings would improve routing.

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 cursor/limit/site/account semantics are fully documented in the properties. The description only restates the accepted query inputs, mirroring the query parameter's own description, so it adds no meaning beyond the schema. Baseline 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?

The description states a specific verb and resource ('search every year of the Order history for Orders') and enumerates the searchable fields the way the Your Orders search box does. It is clearly a keyword search rather than a retrieval-by-id or full listing, though it never names get_orders or get_order as the contrasting operations.

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?

The 'as the search box on Your Orders does' analogy implies the use case: free-text lookup of orders by product, order number, address, or recipient. There is no explicit when-not guidance and no routing to the sibling list endpoint, so the agent must infer that known order numbers or full listings belong elsewhere.

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