Skip to main content
Glama

get_gift_cards

Read-only

Retrieve an Amazon Gift Card balance and recent activity for a chosen number of days, with pagination cursors to fetch additional batches and options for another site or account.

Instructions

Get the Amazon Gift Card balance, and a batch of its activity for a given number of days, 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_gift_cards"
  }
}

Input Schema

NameRequiredDescriptionDefault
daysNoThe number of days worth of Gift Card activity to get. Ignored when `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 activity pages once at least this many GiftCardActivity entries 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 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`).

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.
balanceNoThe current Gift Card balance, or `None` if Amazon didn't show one.
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. Changed4 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 / site / title
      Removed value: -"Site"
  4. Addedv2.0.1

TDQS

A3.5/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 known. The description adds that results come in batches with a cursor for the next batch, but the schema's cursor parameter already states the days window carries over, so the added behavioral value is modest.

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 that names the resource, the return content and the paging mechanism with no filler. It is dense but every clause carries information.

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?

The tool is a moderately simple read with a full output schema and read-only annotations, so the description need not explain return values or safety. It covers the core behavior and paging model adequately; only session/account prerequisites are left to the schema.

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 five parameters are already documented, including days, limit, site, account and cursor. The description reinforces the days window and cursor paging but adds no syntax or semantics 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?

States a specific verb and resource set: reads gift card balance plus a batch of activity, paged by cursor. The resource (Amazon Gift Cards) is naturally distinct from siblings like get_invoices or get_orders, but the description never explicitly distinguishes itself from those nearby read tools.

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 by the resource name — an agent can infer this is for gift card balance/activity questions. There is no explicit when-to-use or when-not-to-use guidance, and no mention of prerequisites such as an active session (only the schema mentions check_session).

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