get_gift_cards
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
| Name | Required | Description | Default |
|---|---|---|---|
| days | No | The number of days worth of Gift Card activity to get. Ignored when `cursor` is given. | |
| site | No | 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`). | |
| limit | No | Stop 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. | |
| cursor | No | The `cursor` of the previous batch, to fetch the next one. The `days` window it was fetched with carries over. | |
| account | No | Another Amazon account to read, e.g. `spouse`, only when the user asks about that person (see `check_session`). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| items | No | The results in this batch. | |
| cursor | No | Pass 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. | |
| balance | No | The current Gift Card balance, or `None` if Amazon didn't show one. | |
| has_more | No | `True` if there are more results to fetch with `cursor`. |