Skip to main content
Glama

get_transactions

Read-only

Retrieve Amazon transaction history by day range or order ID, returning batches with a cursor to page through additional transactions.

Instructions

Get a batch of Amazon Transaction history for a given number of days, or for a single Order, with 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_transactions"
  }
}

Input Schema

NameRequiredDescriptionDefault
daysNoThe number of days worth of Transactions to get. Ignored when `order_id` or `cursor` is given.
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 Transaction pages once at least this many Transactions 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 `days` window or `order_id` it was fetched with carries over.
accountNoAnother Amazon account to read, e.g. `spouse`, only when the user asks about that person (see `check_session`).
order_idNoIf given, only Transactions for this Amazon Order ID are returned, as in `get_transactions`. Ignored when `cursor` is given.

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. Changed5 schema fields changedv2.1.2
    • removedInput schema / properties / cursor / title
      Removed value: -"Cursor"
    • removedInput schema / properties / days / title
      Removed value: -"Days"
    • removedInput schema / properties / limit / title
      Removed value: -"Limit"
    • removedInput schema / properties / order_id / title
      Removed value: -"Order Id"
    • removedInput schema / properties / site / title
      Removed value: -"Site"
  4. 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"
      +}
  5. First observedv1.2.0

TDQS

A4/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: results arrive in batches, and a cursor continues to the next batch — useful for an agent planning iteration. It does not mention rate limits, auth/session requirements, or the per-site partitioning, which the schema carries instead.

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?

A single sentence that front-loads the core action and folds the two access modes and the pagination note into one compact clause. Nothing is wasted and nothing needs trimming.

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-value detail is unnecessary, and the rich parameter descriptions cover the mode interactions. The description is complete enough for an agent to choose and call the tool; the only shortfall is that site/account scoping nuances are left entirely to the schema and check_session.

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 coverage is 100%, so all six parameters are already documented with meaningful descriptions (days being ignored with order_id or cursor, limit fetching whole pages, cursor carrying over the window). The description restates the days/order_id/cursor relationship at a high level without adding syntax or format detail, so the baseline 3 applies.

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 a batch of Amazon Transaction history') plus the two modes of scope (a number of days, or a single Order) and the pagination mechanism. Transactions is a distinct resource from the siblings (orders, invoices, gift cards, prime payments), so an agent can route on resource alone.

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 description implies the two usage modes — a date-window scan or a single-order lookup — and mentions the cursor for continuing. It gives no explicit when-to-use guidance relative to alternatives (e.g. get_order for order-level detail) and no statement of when-not to use it; the mode exclusions live only in the schema descriptions.

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