Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault

No arguments

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

Reads the user's Amazon order history, invoices, package tracking, transactions, Gift Card balance and activity, and Prime membership payments. The links from get_invoices change on every call and may only open in a browser signed in to the user's Amazon account, so give them to the user right away rather than keeping them. To find an order by what was bought, its number, or who it went to, use search_orders rather than paging through get_orders. For an account in an Amazon Household, get_orders returns the whole household's orders by default, and its household_members lists the members, like linked Teen accounts: pass a member's id as family_member_id for only their orders, or self for only the user's own. Each Amazon site, like amazon.com or amazon.de, has its own orders and its own sign-in. Tools read the user's default site unless given another as site, so pass the site an order was placed on, and check_session says which sites the user is signed in to. The user may also have signed in to someone else's own Amazon account, like a partner's. Tools read the user's default account unless given another as account, so pass one only when the user asks about that person, and check_session lists the accounts. For what the user spent, use get_transactions, the charges and refunds as they posted, rather than adding up order totals. Each site's amounts are in its own currency, so total each site separately. To find what a card or bank charge was, use find_charge with its amount and date. For what's arriving, get recent orders (time_filter last30) and read each shipment's delivery_status; get_tracking gives a shipment's carrier and tracking number. Answer with what the user asked for, summarized, and repeat addresses or payment details only when they ask. Every tool but sign_in and update_config is read-only. If a tool says the user isn't signed in, offer to sign them in with sign_in, and call it only once they agree. If that can't work, they can run uvx amazon-orders login --browser in a terminal instead.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": false
}
prompts
{
  "listChanged": false
}
resources
{
  "subscribe": false,
  "listChanged": false
}

Tools

Functions exposed to the LLM to take actions

NameDescription
find_chargeA

Find the Amazon Transactions behind a card or bank charge, by its amount and date, each with its Order and the Items in it. A Transaction matches when its amount equals amount and it completed within window_days of charge_date, since Amazon can complete a charge on a different day than a statement shows it.

sign_inA

Sign the user in to Amazon, when they ask you to or after a tool says they aren't signed in. Opens a browser window on the user's computer, where they sign in on Amazon's own page, so their credentials are never seen. Wait for them to finish, which they have 120 seconds to do. If it says there's no browser to sign in with, ask the user which to use, then call this again with browser.

get_ordersA

Get a batch of the Amazon Order history for a given time period, with the Amazon Household members whose Orders the account can view and a cursor to fetch the next batch.

search_ordersA

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.

get_orderB

Get the full details for a given Amazon Order ID.

get_trackingB

Get the carrier and tracking number of a Shipment from its package tracking page.

get_invoicesA

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

get_transactionsA

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.

get_gift_cardsA

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.

get_prime_paymentsC

Get every charge in the Prime membership payment history.

check_sessionA

Check with Amazon whether the user's saved sessions still work: on site, or else on their default site and every other Amazon site they have a saved session for. Also says which site is the default, and lists the user's accounts.

get_configA

Get the settings that can be changed with update_config, and their values. What each one does: https://amazon-orders.readthedocs.io/api.html#amazonorders.conf.AmazonOrdersConfig

update_configA

Change a setting. Change a preference, like the Amazon site (domain) or the browser to sign in with (browser), only when the user asks. You may change a tuning setting yourself when calls keep failing (e.g. a longer request_timeout after timeouts, or a smaller thread_pool_size when Amazon throttles requests), and tell the user what you changed. warn_on_missing_required_field returns partial data instead of an error, so say so if you change it. A preference is saved, and tuning lasts until the server restarts unless save is true, which you can offer if a change keeps helping. domain is the default site, which tools read when they aren't given site, so to read another site once, pass it as site instead. After changing domain, check with check_session, since the user may need to sign in to the new default site. account is the default account the same way, one from check_session. What each setting does: https://amazon-orders.readthedocs.io/api.html#amazonorders.conf.AmazonOrdersConfig

Prompts

Interactive templates invoked by user choice

NameDescription
review_spendingReview what you've spent on Amazon over a period, grouped by what it was for.
find_returnsFind the Items in your recent Amazon orders you can still return.
track_deliveriesSee what you have arriving from Amazon, and when.
explain_chargeWork out what an Amazon charge on your card or bank statement was.

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

A3.7/5.0

Scored across 13 tools

Disambiguation4/5

Most tools target clearly different resources (orders, transactions, invoices, tracking, gift cards, Prime, session/config). However, get_order, get_orders, and search_orders all return orders and differ mainly by retrieval mode (single, batch-by-date, keyword search), and get_orders vs get_transactions both return dated batches of history, which could cause initial misselection even though the descriptions eventually clarify.

Naming Consistency5/5

Every tool follows a consistent snake_case verb_noun pattern (get_order, find_charge, search_orders, check_session, update_config). The plural/singular contrast between get_order and get_orders is a deliberate and readable distinction rather than a convention break.

Tool Count5/5

13 tools is well within the sweet spot for this scope, and each one maps to a distinct Amazon data surface (orders, transactions, invoices, tracking, gift cards, Prime payments, auth/session, config). Two config tools is a minimal, justified overhead.

Completeness4/5

The read-oriented lifecycle is well covered: discovery (search/history), detail (order, invoice, tracking), financial reconciliation (transactions, find_charge, Prime, gift cards), and auth/config management. The notable gap is returns/refunds/cancellations, which are a core part of an orders domain and have no tool at all.

Maintenance

ActivityActive
ResponsivenessLimited data