Skip to main content
Glama

get_invoices

Read-only

Retrieve invoice documents for a given Amazon Order ID, including the printable order summary and any seller-issued invoice or credit note PDFs.

Instructions

Get the invoice documents of a given Amazon Order ID from its invoice list: the Printable Order Summary (an HTML page, on every site), then any invoice and credit note PDFs (issued by sellers, mostly on EU sites).

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_invoices"
  }
}

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
itemsNoThe Order's Invoices, the Printable Order Summary first.

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. Changed2 schema fields changedv2.1.2
    • removedInput schema / properties / order_id / title
      Removed value: -"Order Id"
    • removedInput schema / properties / site / title
      Removed value: -"Site"
  3. Addedv2.0.1

TDQS

A3.9/5.0
Behavior4/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 genuine behavioral context beyond that: the Printable Order Summary exists on every site while invoice/credit-note PDFs are seller-issued and mostly limited to EU sites, warning the agent that results vary by marketplace and may be partially or entirely absent.

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, and the key constraint (documents tied to an order ID) leads. The nested parentheticals are dense and take a second read, which keeps it just short of ideal.

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?

An output schema exists, so return structure need not be spelled out, yet the description still characterizes the returned artifacts usefully. For a low-complexity, three-parameter read tool it is nearly complete; only the empty-result case and any per-document ordering or size caveats are 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% and all three parameters (site, account, order_id) are documented in the schema, so the baseline is 3. The description only restates that the lookup is keyed by an Amazon Order ID and does not add format, validation, or fallback semantics for site/account selection.

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?

States a specific verb and resource ('Get the invoice documents of a given Amazon Order ID') and enumerates what is retrieved (Printable Order Summary HTML plus seller-issued invoice and credit note PDFs). That enumeration clearly separates it from siblings like get_order or get_transactions, which return order data rather than documents.

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 it should call this when the user wants invoices for a known order, and the phrase 'from its invoice list' hints the order must exist first. There is no explicit when-to-use/when-not guidance, no pointer to get_order for order details, and no note about what to do when a site issues no invoices.

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