{"at":"2026-11-23T01:37:10.265Z","dir":"sent","era":"server_discover","message":{"id":1,"jsonrpc":"2.0","method":"server/discover","params":{"_meta":{"io.modelcontextprotocol/clientCapabilities":{},"io.modelcontextprotocol/clientInfo":{"name":"didrun-lab","version":"0.1.0"},"io.modelcontextprotocol/protocolVersion":"2026-07-28"}}}}
{"at":"2026-11-23T01:37:11.383Z","dir":"received","era":"server_discover","message":{"id":1,"jsonrpc":"2.0","result":{"_meta":{"io.modelcontextprotocol/serverInfo":{"icons":[{"mimeType":"image/png","sizes":["512x512"],"src":"https://raw.githubusercontent.com/alexdlaird/amazon-orders-mcp/main/mcpb/icon.png"}],"name":"amazon-orders","version":"3.0.0"}},"cacheScope":"private","capabilities":{"prompts":{"listChanged":true},"resources":{"listChanged":true,"subscribe":true},"tools":{"listChanged":true}},"instructions":"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.","resultType":"complete","supportedVersions":["2026-07-28"],"ttlMs":0}}}
{"at":"2026-11-23T01:37:11.384Z","dir":"sent","era":"server_discover","message":{"id":2,"jsonrpc":"2.0","method":"tools/list","params":{"_meta":{"io.modelcontextprotocol/clientCapabilities":{},"io.modelcontextprotocol/protocolVersion":"2026-07-28"}}}}
{"at":"2026-11-23T01:37:11.386Z","dir":"received","era":"server_discover","message":{"id":2,"jsonrpc":"2.0","result":{"_meta":{"io.modelcontextprotocol/serverInfo":{"icons":[{"mimeType":"image/png","sizes":["512x512"],"src":"https://raw.githubusercontent.com/alexdlaird/amazon-orders-mcp/main/mcpb/icon.png"}],"name":"amazon-orders","version":"3.0.0"}},"cacheScope":"private","resultType":"complete","tools":[{"annotations":{"openWorldHint":true,"readOnlyHint":true},"description":"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.","inputSchema":{"properties":{"account":{"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`)."},"amount":{"description":"The charge or refund's amount, e.g. `12.99`. Its sign is ignored, since statements and Amazon show charges and refunds with different signs.","type":"number"},"charge_date":{"description":"The date the charge shows, e.g. `2026-11-10`.","format":"date","type":"string"},"last_four":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"description":"The last four digits of the card it was charged to, to match only that card's Transactions."},"site":{"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`)."},"window_days":{"default":3,"description":"How many days either side of `charge_date` a Transaction can have completed.","type":"integer"}},"required":["amount","charge_date"],"title":"find_chargeArguments","type":"object"},"name":"find_charge","outputSchema":{"additionalProperties":true,"description":"The Transactions that match the charge, each with its Order.","properties":{"items":{"description":"The matching Transactions.","items":{"additionalProperties":true,"description":"An Amazon Transaction.","properties":{"completed_date":{"description":"The Transaction completed date.","format":"date","type":"string"},"grand_total":{"description":"The Transaction grand total, negative for a charge and positive for a refund.","type":"number"},"is_refund":{"description":"The Transaction was a refund or not.","type":"boolean"},"order":{"additionalProperties":true,"description":"The Transaction's Order, as `get_order` returns it, with its Items. Absent when the Transaction has no Order number.","type":"object"},"order_details_link":{"description":"The Transaction Order details link.","type":"string"},"order_number":{"description":"The Transaction Order number, or `None` when the row carries no Order number.","type":"string"},"payment_method":{"description":"The Transaction payment method.","type":"string"},"payment_method_last_4":{"description":"The Transaction payment method's last digits, parsed from `payment_method`. `None` if no masked digits.","type":"string"},"seller":{"description":"The Transaction seller name, or `None` when the row carries none.","type":"string"}},"type":"object"},"type":"array"},"note":{"description":"Why nothing matched, when nothing did.","type":"string"}},"type":"object"}},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":true,"readOnlyHint":false},"description":"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`.","inputSchema":{"properties":{"account":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"description":"The Amazon account to sign in to, by a name for it, e.g. `spouse`, to add someone else's own account, like a partner's. By default, the user's default account."},"browser":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"description":"Only when there's no browser to sign in with: the one the user chose, either one offered to download for them or a browser they already have installed. It's saved, so they're only asked once."},"site":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"description":"The Amazon site to sign in to, e.g. `amazon.de`, since each site has its own sign-in. By default, the user's default site."}},"title":"sign_inArguments","type":"object"},"name":"sign_in","outputSchema":{"description":"The user's Amazon session status, returned by the ``check_session`` and ``sign_in`` tools: for the site asked\nabout, or else the default site, and for every site checked.","properties":{"account":{"description":"The Amazon account checked, as `account` accepts it.","type":"string"},"accounts":{"description":"Every Amazon account with a saved session, the default one first.","items":{"type":"string"},"type":"array"},"default":{"description":"Whether it's the user's default site, which tools read when they aren't given `site`.","type":"boolean"},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"description":"Why the session couldn't be checked, if it couldn't. `signed_in` is null then."},"sign_in":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"description":"What to do to sign in, if the user isn't."},"signed_in":{"anyOf":[{"type":"boolean"},{"type":"null"}],"description":"Whether Amazon still accepts the user's saved session for the site. If Amazon answers the check with an error page, a saved session is assumed to still work. Null if the session couldn't be checked at all."},"site":{"description":"The Amazon site, as `site` accepts it.","type":"string"},"sites":{"description":"Every site checked: the one asked about, or else the default site and every other site with a saved session.","items":{"description":"The user's session status on an Amazon site.","properties":{"default":{"description":"Whether it's the user's default site, which tools read when they aren't given `site`.","type":"boolean"},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"description":"Why the session couldn't be checked, if it couldn't. `signed_in` is null then."},"sign_in":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"description":"What to do to sign in, if the user isn't."},"signed_in":{"anyOf":[{"type":"boolean"},{"type":"null"}],"description":"Whether Amazon still accepts the user's saved session for the site. If Amazon answers the check with an error page, a saved session is assumed to still work. Null if the session couldn't be checked at all."},"site":{"description":"The Amazon site, as `site` accepts it.","type":"string"}},"required":["signed_in","site","default"],"title":"SiteSessionStatus","type":"object"},"type":"array"}},"required":["signed_in","site","default","sites","account","accounts"],"title":"SessionStatus","type":"object"}},{"annotations":{"openWorldHint":true,"readOnlyHint":true},"description":"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.","inputSchema":{"properties":{"account":{"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`)."},"cursor":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"default":null,"description":"The `cursor` of the previous batch, to fetch the next one. The filters it was fetched with carry over."},"family_member_id":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"description":"The ID of an Amazon Household member whose Orders to get, such as a linked Teen account, from `household_members`. An account in an Amazon Household gets the whole household's Orders by default; pass `\"self\"` for only its own."},"full_details":{"default":false,"description":"Get the full details for each Order in the batch. This will execute an additional request per Order.","type":"boolean"},"limit":{"anyOf":[{"type":"integer"},{"type":"null"}],"default":10,"description":"Stop fetching history pages once at least this many Orders are collected. Whole pages are fetched, so the batch can hold up to a page more than `limit`. `None` fetches every page."},"order_filter":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"description":"The order type filter to use, e.g. `\"digital\"` for Kindle and other digital purchases, which the default history doesn't include. If provided, appended alongside the time filter."},"site":{"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`)."},"start_index":{"anyOf":[{"type":"integer"},{"type":"null"}],"default":null,"description":"The index of the Order from which to start fetching in the history. Ignored if `cursor` is provided."},"time_filter":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"description":"The time filter to use. Supported values are `\"last30\"` (last 30 days), `\"months-3\"` (past 3 months), or `\"year-YYYY\"` (specific year). Only one of `year` or `time_filter` may be given."},"year":{"anyOf":[{"type":"integer"},{"type":"null"}],"default":null,"description":"The year for which to get history. Only one of `year` or `time_filter` may be given, and it's ignored if `cursor` is provided. Defaults to the current year if neither `year` nor `time_filter` is specified."}},"title":"get_ordersArguments","type":"object"},"name":"get_orders","outputSchema":{"additionalProperties":true,"description":"The batch of Orders, the Amazon Household members, and the cursor for the next one.","properties":{"cursor":{"description":"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.","type":["object","null"]},"has_more":{"description":"`True` if there are more results to fetch with `cursor`.","type":"boolean"},"household_members":{"description":"The Amazon Household members whose Orders the account can view, such as linked Teen accounts, from the Order history's member filter. Pass a member's `id` as `family_member_id` to get their Orders. Empty if the account has none.","items":{"additionalProperties":true,"description":"A member of the Amazon Household whose Orders the account can view, such as a linked Teen account. Pass its `id` as `family_member_id` to `get_orders` to get their Orders.","properties":{"id":{"description":"The FamilyMember ID, to pass as `family_member_id` to `get_orders`.","type":"string"},"name":{"description":"The FamilyMember name.","type":"string"}},"type":"object"},"type":"array"},"items":{"description":"The results in this batch.","items":{"additionalProperties":true,"description":"An Amazon Order. If desired fields are populated as `None`, ensure `full_details` is `True` when retrieving the Order (for instance, with `get_orders`), since by default it is `False` (enabling slows down querying).","properties":{"amazon_discount":{"description":"The Amazon discount, as a negative amount. Only populated when `full_details` is `True`.","type":"number"},"cancelled":{"description":"`True` if the Order was cancelled. When `True`, fields like `grand_total` and the totals on the details page may be `None` because Amazon stops rendering them.","type":"boolean"},"coupon_savings":{"description":"The Order coupon savings, as a negative amount. Only populated when `full_details` is `True`.","type":"number"},"estimated_tax":{"description":"The Order estimated tax. Only populated when `full_details` is `True`. For Whole Foods Market orders this is the \"Tax and Fees\" total from the receipt.","type":"number"},"free_shipping":{"description":"The Order free shipping, as a negative amount. Only populated when `full_details` is `True`.","type":"number"},"full_details":{"description":"If the Orders full details were populated from its details page.","type":"boolean"},"gift_card":{"description":"The Gift Card total (rendered as \"Gift Card\" on digital order details pages), as a negative amount. Only populated when `full_details` is `True`.","type":"number"},"gift_wrap":{"description":"The Gift Wrap total. Only populated when `full_details` is `True`.","type":"number"},"grand_total":{"description":"The Order grand total.","type":"number"},"index":{"description":"Where the Order appeared in the history when it was queried. This will inevitably change (e.g. when a new Order is placed, all indexes will then be off by one), but is still captured as it may be applicable in various use-cases. Populated when the Order was fetched through `get_orders` (use `start_index` to correlate), or when the `clone` has its `index` set.","type":"integer"},"is_whole_foods":{"description":"`True` if this is a Whole Foods Market purchase (an in-store purchase or a Whole Foods receipt order). Unlike other unsupported order types, these expose a `grand_total` and (often) an `item_count` on the history page, so those fields are populated.","type":"boolean"},"item_count":{"description":"The number of items in the purchase, when Amazon summarizes the count instead of listing the items (e.g. Whole Foods Market orders show \"N items in this purchase\"). `None` when no such summary is shown.","type":"integer"},"items":{"description":"The Order Items.","items":{"additionalProperties":true,"description":"An Item in an Amazon `Order`. If desired fields are populated as `None`, ensure `full_details` is `True` when retrieving the Order (for instance, with `get_orders`), since by default it is `False` (it will slow down querying).","properties":{"asin":{"description":"The product ASIN, derived from `link`; `None` when the link is not a product page.","type":"string"},"condition":{"description":"The Item condition.","type":"string"},"image_link":{"description":"The Item image URL.","type":"string"},"link":{"description":"The Item link. `None` for items without an Amazon detail page (e.g. some Whole Foods Market line items).","type":"string"},"price":{"description":"The Item price.","type":"number"},"quantity":{"description":"The Item quantity. `None` when the page shows none, and for items sold by weight (e.g. Whole Foods), which have no whole-unit count.","type":"integer"},"return_eligible_date":{"description":"The Item return eligible date.","format":"date","type":"string"},"seller":{"additionalProperties":true,"description":"The Item Seller.","properties":{"link":{"description":"The Seller link.","type":"string"},"name":{"description":"The Seller name.","type":"string"}},"type":"object"},"subscription_frequency":{"description":"The Item's Subscribe & Save delivery frequency (e.g. \"Every 2 months\"), `None` if it isn't a subscription.","type":"string"},"title":{"description":"The Item title.","type":"string"}},"type":"object"},"type":"array"},"multibuy_discount":{"description":"The Multibuy discount, as a negative amount. Only populated when `full_details` is `True`.","type":"number"},"order_details_link":{"description":"The Order details link.","type":"string"},"order_number":{"description":"The Order number. May be `None` only when the Order is `cancelled` and Amazon stripped the order number from the details page (the `order_number` parameter is used as a fallback in that case).","type":"string"},"order_placed_date":{"description":"The Order placed date.","format":"date","type":"string"},"payment_method":{"description":"The Order payment method. Only populated when `full_details` is `True`. For Whole Foods Market orders this is the card brand of the first payment method on the receipt (e.g. \"Visa\").","type":"string"},"payment_method_last_4":{"description":"The Order payment method's last 4 digits, preserved verbatim so leading zeros are not lost. Only populated when `full_details` is `True`.","type":"string"},"promotion_applied":{"description":"The Order promotion applied, as a negative amount. Only populated when `full_details` is `True`.","type":"number"},"recipient":{"additionalProperties":true,"description":"The Order Recipients.","properties":{"address":{"description":"The Recipient address.","type":"string"},"name":{"description":"The Recipient name.","type":"string"}},"type":"object"},"refund_total":{"description":"The Order refund total. Only populated when `full_details` is `True`.","type":"number"},"reward_points":{"description":"The Order reward points, as a negative amount of currency (not a count of points). Only populated when `full_details` is `True`.","type":"number"},"shipments":{"description":"The Order Shipments.","items":{"additionalProperties":true,"description":"An Amazon Shipment, which should contain one or more `Item`'s.","properties":{"delivery_status":{"description":"The Shipment delivery status, or `None` once Amazon stops showing it, some weeks after delivery.","type":"string"},"items":{"description":"The Shipment Items.","items":{"additionalProperties":true,"description":"An Item in an Amazon `Order`. If desired fields are populated as `None`, ensure `full_details` is `True` when retrieving the Order (for instance, with `get_orders`), since by default it is `False` (it will slow down querying).","properties":{"asin":{"description":"The product ASIN, derived from `link`; `None` when the link is not a product page.","type":"string"},"condition":{"description":"The Item condition.","type":"string"},"image_link":{"description":"The Item image URL.","type":"string"},"link":{"description":"The Item link. `None` for items without an Amazon detail page (e.g. some Whole Foods Market line items).","type":"string"},"price":{"description":"The Item price.","type":"number"},"quantity":{"description":"The Item quantity. `None` when the page shows none, and for items sold by weight (e.g. Whole Foods), which have no whole-unit count.","type":"integer"},"return_eligible_date":{"description":"The Item return eligible date.","format":"date","type":"string"},"seller":{"additionalProperties":true,"description":"The Item Seller.","properties":{"link":{"description":"The Seller link.","type":"string"},"name":{"description":"The Seller name.","type":"string"}},"type":"object"},"subscription_frequency":{"description":"The Item's Subscribe & Save delivery frequency (e.g. \"Every 2 months\"), `None` if it isn't a subscription.","type":"string"},"title":{"description":"The Item title.","type":"string"}},"type":"object"},"type":"array"},"shipment_id":{"description":"Amazon's identifier for the Shipment, taken from `tracking_link`. `None` when there is no tracking link (Amazon stops showing it on older Orders), or the link carries no Shipment ID. Pass it to `get_tracking`.","type":"string"},"tracking_link":{"description":"The Shipment tracking link.","type":"string"}},"type":"object"},"type":"array"},"shipping_total":{"description":"The Order shipping total. Only populated when `full_details` is `True`.","type":"number"},"subscription_discount":{"description":"The Order Subscribe & Save discount, as a negative amount. Only populated when `full_details` is `True`.","type":"number"},"subtotal":{"description":"The Order subtotal. Only populated when `full_details` is `True`.","type":"number"},"total_before_tax":{"description":"The Order total before tax. Only populated when `full_details` is `True`.","type":"number"}},"type":"object"},"type":"array"}},"type":"object"}},{"annotations":{"openWorldHint":true,"readOnlyHint":true},"description":"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.","inputSchema":{"properties":{"account":{"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`)."},"cursor":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"default":null,"description":"The `cursor` of the previous batch, to fetch the next one."},"limit":{"anyOf":[{"type":"integer"},{"type":"null"}],"default":10,"description":"Stop fetching result pages once at least this many results are collected. Whole pages are fetched, so the batch can hold up to a page more than `limit`. `None` fetches every page."},"query":{"description":"What to search for: words from a product title, an Order number, or a name or address an Order was sent to.","type":"string"},"site":{"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`)."}},"required":["query"],"title":"search_ordersArguments","type":"object"},"name":"search_orders","outputSchema":{"additionalProperties":true,"description":"The OrderSearchResults, one per matching Item, or an empty list if nothing matched.","properties":{"cursor":{"description":"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.","type":["object","null"]},"has_more":{"description":"`True` if there are more results to fetch with `cursor`.","type":"boolean"},"items":{"description":"The results in this batch.","items":{"additionalProperties":true,"description":"An Item of an Order that matched an Order search. The Order search page lists each matching Item, with its Order's number and date, from every year of the Order history. The Order itself is fetched by `order_number` with `get_order`.","properties":{"item":{"additionalProperties":true,"description":"The matching Item, built with the config's `item_class`. The search page shows its title, link, image, and quantity (only when more than one was ordered), not its price or Seller.","properties":{"asin":{"description":"The product ASIN, derived from `link`; `None` when the link is not a product page.","type":"string"},"condition":{"description":"The Item condition.","type":"string"},"image_link":{"description":"The Item image URL.","type":"string"},"link":{"description":"The Item link. `None` for items without an Amazon detail page (e.g. some Whole Foods Market line items).","type":"string"},"price":{"description":"The Item price.","type":"number"},"quantity":{"description":"The Item quantity. `None` when the page shows none, and for items sold by weight (e.g. Whole Foods), which have no whole-unit count.","type":"integer"},"return_eligible_date":{"description":"The Item return eligible date.","format":"date","type":"string"},"seller":{"additionalProperties":true,"description":"The Item Seller.","properties":{"link":{"description":"The Seller link.","type":"string"},"name":{"description":"The Seller name.","type":"string"}},"type":"object"},"subscription_frequency":{"description":"The Item's Subscribe & Save delivery frequency (e.g. \"Every 2 months\"), `None` if it isn't a subscription.","type":"string"},"title":{"description":"The Item title.","type":"string"}},"type":"object"},"order_details_link":{"description":"The Order details link. `None` if the result has none.","type":"string"},"order_number":{"description":"The number of the Order the Item is in, from `order_details_link`.","type":"string"},"order_placed_date":{"description":"The date the Order was placed.","format":"date","type":"string"}},"type":"object"},"type":"array"}},"type":"object"}},{"annotations":{"openWorldHint":true,"readOnlyHint":true},"description":"Get the full details for a given Amazon Order ID.","inputSchema":{"properties":{"account":{"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`)."},"order_id":{"description":"The Amazon Order ID to lookup.","type":"string"},"site":{"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`)."}},"required":["order_id"],"title":"get_orderArguments","type":"object"},"name":"get_order","outputSchema":{"additionalProperties":true,"description":"The requested Order.","properties":{"amazon_discount":{"description":"The Amazon discount, as a negative amount. Only populated when `full_details` is `True`.","type":"number"},"cancelled":{"description":"`True` if the Order was cancelled. When `True`, fields like `grand_total` and the totals on the details page may be `None` because Amazon stops rendering them.","type":"boolean"},"coupon_savings":{"description":"The Order coupon savings, as a negative amount. Only populated when `full_details` is `True`.","type":"number"},"estimated_tax":{"description":"The Order estimated tax. Only populated when `full_details` is `True`. For Whole Foods Market orders this is the \"Tax and Fees\" total from the receipt.","type":"number"},"free_shipping":{"description":"The Order free shipping, as a negative amount. Only populated when `full_details` is `True`.","type":"number"},"full_details":{"description":"If the Orders full details were populated from its details page.","type":"boolean"},"gift_card":{"description":"The Gift Card total (rendered as \"Gift Card\" on digital order details pages), as a negative amount. Only populated when `full_details` is `True`.","type":"number"},"gift_wrap":{"description":"The Gift Wrap total. Only populated when `full_details` is `True`.","type":"number"},"grand_total":{"description":"The Order grand total.","type":"number"},"index":{"description":"Where the Order appeared in the history when it was queried. This will inevitably change (e.g. when a new Order is placed, all indexes will then be off by one), but is still captured as it may be applicable in various use-cases. Populated when the Order was fetched through `get_orders` (use `start_index` to correlate), or when the `clone` has its `index` set.","type":"integer"},"is_whole_foods":{"description":"`True` if this is a Whole Foods Market purchase (an in-store purchase or a Whole Foods receipt order). Unlike other unsupported order types, these expose a `grand_total` and (often) an `item_count` on the history page, so those fields are populated.","type":"boolean"},"item_count":{"description":"The number of items in the purchase, when Amazon summarizes the count instead of listing the items (e.g. Whole Foods Market orders show \"N items in this purchase\"). `None` when no such summary is shown.","type":"integer"},"items":{"description":"The Order Items.","items":{"additionalProperties":true,"description":"An Item in an Amazon `Order`. If desired fields are populated as `None`, ensure `full_details` is `True` when retrieving the Order (for instance, with `get_orders`), since by default it is `False` (it will slow down querying).","properties":{"asin":{"description":"The product ASIN, derived from `link`; `None` when the link is not a product page.","type":"string"},"condition":{"description":"The Item condition.","type":"string"},"image_link":{"description":"The Item image URL.","type":"string"},"link":{"description":"The Item link. `None` for items without an Amazon detail page (e.g. some Whole Foods Market line items).","type":"string"},"price":{"description":"The Item price.","type":"number"},"quantity":{"description":"The Item quantity. `None` when the page shows none, and for items sold by weight (e.g. Whole Foods), which have no whole-unit count.","type":"integer"},"return_eligible_date":{"description":"The Item return eligible date.","format":"date","type":"string"},"seller":{"additionalProperties":true,"description":"The Item Seller.","properties":{"link":{"description":"The Seller link.","type":"string"},"name":{"description":"The Seller name.","type":"string"}},"type":"object"},"subscription_frequency":{"description":"The Item's Subscribe & Save delivery frequency (e.g. \"Every 2 months\"), `None` if it isn't a subscription.","type":"string"},"title":{"description":"The Item title.","type":"string"}},"type":"object"},"type":"array"},"multibuy_discount":{"description":"The Multibuy discount, as a negative amount. Only populated when `full_details` is `True`.","type":"number"},"order_details_link":{"description":"The Order details link.","type":"string"},"order_number":{"description":"The Order number. May be `None` only when the Order is `cancelled` and Amazon stripped the order number from the details page (the `order_number` parameter is used as a fallback in that case).","type":"string"},"order_placed_date":{"description":"The Order placed date.","format":"date","type":"string"},"payment_method":{"description":"The Order payment method. Only populated when `full_details` is `True`. For Whole Foods Market orders this is the card brand of the first payment method on the receipt (e.g. \"Visa\").","type":"string"},"payment_method_last_4":{"description":"The Order payment method's last 4 digits, preserved verbatim so leading zeros are not lost. Only populated when `full_details` is `True`.","type":"string"},"promotion_applied":{"description":"The Order promotion applied, as a negative amount. Only populated when `full_details` is `True`.","type":"number"},"recipient":{"additionalProperties":true,"description":"The Order Recipients.","properties":{"address":{"description":"The Recipient address.","type":"string"},"name":{"description":"The Recipient name.","type":"string"}},"type":"object"},"refund_total":{"description":"The Order refund total. Only populated when `full_details` is `True`.","type":"number"},"reward_points":{"description":"The Order reward points, as a negative amount of currency (not a count of points). Only populated when `full_details` is `True`.","type":"number"},"shipments":{"description":"The Order Shipments.","items":{"additionalProperties":true,"description":"An Amazon Shipment, which should contain one or more `Item`'s.","properties":{"delivery_status":{"description":"The Shipment delivery status, or `None` once Amazon stops showing it, some weeks after delivery.","type":"string"},"items":{"description":"The Shipment Items.","items":{"additionalProperties":true,"description":"An Item in an Amazon `Order`. If desired fields are populated as `None`, ensure `full_details` is `True` when retrieving the Order (for instance, with `get_orders`), since by default it is `False` (it will slow down querying).","properties":{"asin":{"description":"The product ASIN, derived from `link`; `None` when the link is not a product page.","type":"string"},"condition":{"description":"The Item condition.","type":"string"},"image_link":{"description":"The Item image URL.","type":"string"},"link":{"description":"The Item link. `None` for items without an Amazon detail page (e.g. some Whole Foods Market line items).","type":"string"},"price":{"description":"The Item price.","type":"number"},"quantity":{"description":"The Item quantity. `None` when the page shows none, and for items sold by weight (e.g. Whole Foods), which have no whole-unit count.","type":"integer"},"return_eligible_date":{"description":"The Item return eligible date.","format":"date","type":"string"},"seller":{"additionalProperties":true,"description":"The Item Seller.","properties":{"link":{"description":"The Seller link.","type":"string"},"name":{"description":"The Seller name.","type":"string"}},"type":"object"},"subscription_frequency":{"description":"The Item's Subscribe & Save delivery frequency (e.g. \"Every 2 months\"), `None` if it isn't a subscription.","type":"string"},"title":{"description":"The Item title.","type":"string"}},"type":"object"},"type":"array"},"shipment_id":{"description":"Amazon's identifier for the Shipment, taken from `tracking_link`. `None` when there is no tracking link (Amazon stops showing it on older Orders), or the link carries no Shipment ID. Pass it to `get_tracking`.","type":"string"},"tracking_link":{"description":"The Shipment tracking link.","type":"string"}},"type":"object"},"type":"array"},"shipping_total":{"description":"The Order shipping total. Only populated when `full_details` is `True`.","type":"number"},"subscription_discount":{"description":"The Order Subscribe & Save discount, as a negative amount. Only populated when `full_details` is `True`.","type":"number"},"subtotal":{"description":"The Order subtotal. Only populated when `full_details` is `True`.","type":"number"},"total_before_tax":{"description":"The Order total before tax. Only populated when `full_details` is `True`.","type":"number"}},"type":"object"}},{"annotations":{"openWorldHint":true,"readOnlyHint":true},"description":"Get the carrier and tracking number of a Shipment from its package tracking page.","inputSchema":{"properties":{"account":{"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`)."},"order_id":{"description":"The Amazon Order ID of the Shipment.","type":"string"},"shipment_id":{"description":"The Shipment's `shipment_id`. Amazon stops showing the tracking link it comes from on older Orders.","type":"string"},"site":{"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`)."}},"required":["order_id","shipment_id"],"title":"get_trackingArguments","type":"object"},"name":"get_tracking","outputSchema":{"additionalProperties":true,"description":"The requested Tracking. Its fields are `None` when the page only shows the delivery milestones (no carrier tracking).","properties":{"carrier":{"description":"The carrier the page names, e.g. `UPS`, or `None` when it names none (the \"Delivery Info\" layout).","type":"string"},"tracking_number":{"description":"The carrier's tracking number, e.g. `1Z999AA10123456784` or `TBA000000000000`. Always a `str`, since many (e.g. USPS) are all digits and may have leading zeros.","type":"string"}},"type":"object"}},{"annotations":{"openWorldHint":true,"readOnlyHint":true},"description":"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).","inputSchema":{"properties":{"account":{"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`)."},"order_id":{"description":"The Amazon Order ID to lookup.","type":"string"},"site":{"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`)."}},"required":["order_id"],"title":"get_invoicesArguments","type":"object"},"name":"get_invoices","outputSchema":{"additionalProperties":true,"description":"The Order's Invoices, the Printable Order Summary first.","properties":{"items":{"description":"The Order's Invoices, the Printable Order Summary first.","items":{"additionalProperties":true,"description":"An invoice document of an Amazon `Order`, parsed from the Order's invoice list: the Printable Order Summary (an HTML page, on every site), or an invoice or credit note PDF (issued by sellers, mostly on EU sites). See `get_invoices`, and `download_invoice` for the document itself.","properties":{"format":{"description":"The document's format, `html` for the Printable Order Summary or `pdf` for an invoice or credit note.","type":"string"},"is_credit_note":{"description":"`True` if the document is a credit note (a refund) rather than an invoice.","type":"boolean"},"link":{"description":"The link to download the document. Amazon generates a new one on each request, so don't store it, get the Order's invoices again instead.","type":"string"},"name":{"description":"The document's name, as Amazon lists it, e.g. `Printable Order Summary`, `Invoice 2`, or `Credit note`.","type":"string"},"order_number":{"description":"The Order number the document belongs to.","type":"string"}},"type":"object"},"type":"array"}},"type":"object"}},{"annotations":{"openWorldHint":true,"readOnlyHint":true},"description":"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.","inputSchema":{"properties":{"account":{"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`)."},"cursor":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"default":null,"description":"The `cursor` of the previous batch, to fetch the next one. The `days` window or `order_id` it was fetched with carries over."},"days":{"default":365,"description":"The number of days worth of Transactions to get. Ignored when `order_id` or `cursor` is given.","type":"integer"},"limit":{"anyOf":[{"type":"integer"},{"type":"null"}],"default":10,"description":"Stop 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."},"order_id":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"description":"If given, only Transactions for this Amazon Order ID are returned, as in `get_transactions`. Ignored when `cursor` is given."},"site":{"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":"get_transactionsArguments","type":"object"},"name":"get_transactions","outputSchema":{"additionalProperties":true,"description":"The batch of Transactions, and the cursor for the next one.","properties":{"cursor":{"description":"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.","type":["object","null"]},"has_more":{"description":"`True` if there are more results to fetch with `cursor`.","type":"boolean"},"items":{"description":"The results in this batch.","items":{"additionalProperties":true,"description":"An Amazon Transaction.","properties":{"completed_date":{"description":"The Transaction completed date.","format":"date","type":"string"},"grand_total":{"description":"The Transaction grand total, negative for a charge and positive for a refund.","type":"number"},"is_refund":{"description":"The Transaction was a refund or not.","type":"boolean"},"order_details_link":{"description":"The Transaction Order details link.","type":"string"},"order_number":{"description":"The Transaction Order number, or `None` when the row carries no Order number.","type":"string"},"payment_method":{"description":"The Transaction payment method.","type":"string"},"payment_method_last_4":{"description":"The Transaction payment method's last digits, parsed from `payment_method`. `None` if no masked digits.","type":"string"},"seller":{"description":"The Transaction seller name, or `None` when the row carries none.","type":"string"}},"type":"object"},"type":"array"}},"type":"object"}},{"annotations":{"openWorldHint":true,"readOnlyHint":true},"description":"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.","inputSchema":{"properties":{"account":{"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`)."},"cursor":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"default":null,"description":"The `cursor` of the previous batch, to fetch the next one. The `days` window it was fetched with carries over."},"days":{"default":365,"description":"The number of days worth of Gift Card activity to get. Ignored when `cursor` is given.","type":"integer"},"limit":{"anyOf":[{"type":"integer"},{"type":"null"}],"default":10,"description":"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."},"site":{"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":"get_gift_cardsArguments","type":"object"},"name":"get_gift_cards","outputSchema":{"additionalProperties":true,"description":"The Gift Card balance, the batch of GiftCardActivity, and the cursor for the next one.","properties":{"balance":{"description":"The current Gift Card balance, or `None` if Amazon didn't show one.","type":"number"},"cursor":{"description":"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.","type":["object","null"]},"has_more":{"description":"`True` if there are more results to fetch with `cursor`.","type":"boolean"},"items":{"description":"The results in this batch.","items":{"additionalProperties":true,"description":"An entry in the Amazon Gift Card activity ledger, such as a Gift Card applied to an Order, a claim code redemption, a Reload, or a refund.","properties":{"activity_date":{"description":"The GiftCardActivity date.","format":"date","type":"string"},"amount":{"description":"The GiftCardActivity amount, negative when the balance was debited and positive when it was credited.","type":"number"},"closing_balance":{"description":"The Gift Card balance after this GiftCardActivity.","type":"number"},"description":{"description":"The GiftCardActivity description.","type":"string"},"is_credit":{"description":"The GiftCardActivity credited the balance or not.","type":"boolean"},"order_details_link":{"description":"The Order details link, or `None` when the row links no Order.","type":"string"},"order_number":{"description":"The Order number the GiftCardActivity references, or `None` when the row links no Order.","type":"string"}},"type":"object"},"type":"array"}},"type":"object"}},{"annotations":{"openWorldHint":true,"readOnlyHint":true},"description":"Get every charge in the Prime membership payment history.","inputSchema":{"properties":{"account":{"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`)."},"site":{"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":"get_prime_paymentsArguments","type":"object"},"name":"get_prime_payments","outputSchema":{"additionalProperties":true,"description":"A list of the PrimePayments, newest first.","properties":{"items":{"description":"A list of the PrimePayments, newest first.","items":{"additionalProperties":true,"description":"A charge in the Prime membership payment history: the membership fee Amazon billed on a sign-up or renewal date. Each charge is a digital Order (a `D01-` ID) that neither the Order history nor the Digital Orders tab lists, so this entity is the index to it. The Order itself is fetched by `order_number` with `get_order`, which renders the standard Order details layout for these IDs.","properties":{"grand_total":{"description":"The amount charged, tax included.","type":"number"},"order_details_link":{"description":"The Order details link. `None` when `order_number` is `None`.","type":"string"},"order_number":{"description":"The digital Order number (`D01-…`) of the charge.","type":"string"},"payment_date":{"description":"The date the membership fee was charged, not the start of the membership period it covers.","format":"date","type":"string"},"receipt_link":{"description":"The \"View Receipt\" link, the digital Order summary's print view. `None` when the card has none.","type":"string"}},"type":"object"},"type":"array"}},"type":"object"}},{"annotations":{"openWorldHint":true,"readOnlyHint":true},"description":"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.","inputSchema":{"properties":{"account":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"description":"The Amazon account to check, e.g. `spouse`. By default, the default account."},"site":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"description":"The Amazon site to check, e.g. `amazon.de`. By default, the default site and every other site with a saved session are checked."}},"title":"check_sessionArguments","type":"object"},"name":"check_session","outputSchema":{"description":"The user's Amazon session status, returned by the ``check_session`` and ``sign_in`` tools: for the site asked\nabout, or else the default site, and for every site checked.","properties":{"account":{"description":"The Amazon account checked, as `account` accepts it.","type":"string"},"accounts":{"description":"Every Amazon account with a saved session, the default one first.","items":{"type":"string"},"type":"array"},"default":{"description":"Whether it's the user's default site, which tools read when they aren't given `site`.","type":"boolean"},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"description":"Why the session couldn't be checked, if it couldn't. `signed_in` is null then."},"sign_in":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"description":"What to do to sign in, if the user isn't."},"signed_in":{"anyOf":[{"type":"boolean"},{"type":"null"}],"description":"Whether Amazon still accepts the user's saved session for the site. If Amazon answers the check with an error page, a saved session is assumed to still work. Null if the session couldn't be checked at all."},"site":{"description":"The Amazon site, as `site` accepts it.","type":"string"},"sites":{"description":"Every site checked: the one asked about, or else the default site and every other site with a saved session.","items":{"description":"The user's session status on an Amazon site.","properties":{"default":{"description":"Whether it's the user's default site, which tools read when they aren't given `site`.","type":"boolean"},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"description":"Why the session couldn't be checked, if it couldn't. `signed_in` is null then."},"sign_in":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"description":"What to do to sign in, if the user isn't."},"signed_in":{"anyOf":[{"type":"boolean"},{"type":"null"}],"description":"Whether Amazon still accepts the user's saved session for the site. If Amazon answers the check with an error page, a saved session is assumed to still work. Null if the session couldn't be checked at all."},"site":{"description":"The Amazon site, as `site` accepts it.","type":"string"}},"required":["signed_in","site","default"],"title":"SiteSessionStatus","type":"object"},"type":"array"}},"required":["signed_in","site","default","sites","account","accounts"],"title":"SessionStatus","type":"object"}},{"annotations":{"openWorldHint":true,"readOnlyHint":true},"description":"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","inputSchema":{"properties":{},"title":"get_configArguments","type":"object"},"name":"get_config","outputSchema":{"description":"The settings that can be changed, returned by the ``get_config`` tool.","properties":{"preferences":{"additionalProperties":true,"description":"The user's choices, changed only when they ask. A null value means the default.","type":"object"},"tuning":{"additionalProperties":true,"description":"Settings you may adjust yourself when calls keep failing. A null value means the default.","type":"object"}},"required":["preferences","tuning"],"title":"ConfigValues","type":"object"}},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":false},"description":"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","inputSchema":{"properties":{"key":{"description":"The setting, from `get_config`.","type":"string"},"save":{"anyOf":[{"type":"boolean"},{"type":"null"}],"default":null,"description":"Whether to save the change. By default, a preference is saved and tuning isn't."},"value":{"anyOf":[{"type":"string"},{"type":"integer"},{"type":"number"},{"type":"boolean"},{"type":"null"}],"description":"The new value. Null or an empty string sets it back to the default."}},"required":["key","value"],"title":"update_configArguments","type":"object"},"name":"update_config","outputSchema":{"description":"A setting's new value, returned by the ``update_config`` tool.","properties":{"key":{"description":"The setting.","type":"string"},"saved":{"description":"Whether the change was saved, or only made until the server restarts.","type":"boolean"},"value":{"default":null,"description":"The value now in effect. A null value means the default."}},"required":["key","saved"],"title":"ConfigValue","type":"object"}}],"ttlMs":0}}}
{"at":"2026-11-23T01:37:11.537Z","dir":"sent","era":"initialize","message":{"id":1,"jsonrpc":"2.0","method":"initialize","params":{"capabilities":{},"clientInfo":{"name":"didrun-lab","version":"0.1.0"},"protocolVersion":"2025-11-25"}}}
{"at":"2026-11-23T01:37:12.627Z","dir":"received","era":"initialize","message":{"id":1,"jsonrpc":"2.0","result":{"capabilities":{"prompts":{"listChanged":false},"resources":{"listChanged":false,"subscribe":false},"tools":{"listChanged":false}},"instructions":"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.","protocolVersion":"2025-11-25","serverInfo":{"icons":[{"mimeType":"image/png","sizes":["512x512"],"src":"https://raw.githubusercontent.com/alexdlaird/amazon-orders-mcp/main/mcpb/icon.png"}],"name":"amazon-orders","version":"3.0.0"}}}}
{"at":"2026-11-23T01:37:12.627Z","dir":"sent","era":"initialize","message":{"jsonrpc":"2.0","method":"notifications/initialized"}}
{"at":"2026-11-23T01:37:12.627Z","dir":"sent","era":"initialize","message":{"id":2,"jsonrpc":"2.0","method":"tools/list","params":{}}}
{"at":"2026-11-23T01:37:12.630Z","dir":"received","era":"initialize","message":{"id":2,"jsonrpc":"2.0","result":{"tools":[{"annotations":{"openWorldHint":true,"readOnlyHint":true},"description":"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.","inputSchema":{"properties":{"account":{"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`)."},"amount":{"description":"The charge or refund's amount, e.g. `12.99`. Its sign is ignored, since statements and Amazon show charges and refunds with different signs.","type":"number"},"charge_date":{"description":"The date the charge shows, e.g. `2026-11-10`.","format":"date","type":"string"},"last_four":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"description":"The last four digits of the card it was charged to, to match only that card's Transactions."},"site":{"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`)."},"window_days":{"default":3,"description":"How many days either side of `charge_date` a Transaction can have completed.","type":"integer"}},"required":["amount","charge_date"],"title":"find_chargeArguments","type":"object"},"name":"find_charge","outputSchema":{"additionalProperties":true,"description":"The Transactions that match the charge, each with its Order.","properties":{"items":{"description":"The matching Transactions.","items":{"additionalProperties":true,"description":"An Amazon Transaction.","properties":{"completed_date":{"description":"The Transaction completed date.","format":"date","type":"string"},"grand_total":{"description":"The Transaction grand total, negative for a charge and positive for a refund.","type":"number"},"is_refund":{"description":"The Transaction was a refund or not.","type":"boolean"},"order":{"additionalProperties":true,"description":"The Transaction's Order, as `get_order` returns it, with its Items. Absent when the Transaction has no Order number.","type":"object"},"order_details_link":{"description":"The Transaction Order details link.","type":"string"},"order_number":{"description":"The Transaction Order number, or `None` when the row carries no Order number.","type":"string"},"payment_method":{"description":"The Transaction payment method.","type":"string"},"payment_method_last_4":{"description":"The Transaction payment method's last digits, parsed from `payment_method`. `None` if no masked digits.","type":"string"},"seller":{"description":"The Transaction seller name, or `None` when the row carries none.","type":"string"}},"type":"object"},"type":"array"},"note":{"description":"Why nothing matched, when nothing did.","type":"string"}},"type":"object"}},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":true,"readOnlyHint":false},"description":"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`.","inputSchema":{"properties":{"account":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"description":"The Amazon account to sign in to, by a name for it, e.g. `spouse`, to add someone else's own account, like a partner's. By default, the user's default account."},"browser":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"description":"Only when there's no browser to sign in with: the one the user chose, either one offered to download for them or a browser they already have installed. It's saved, so they're only asked once."},"site":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"description":"The Amazon site to sign in to, e.g. `amazon.de`, since each site has its own sign-in. By default, the user's default site."}},"title":"sign_inArguments","type":"object"},"name":"sign_in","outputSchema":{"description":"The user's Amazon session status, returned by the ``check_session`` and ``sign_in`` tools: for the site asked\nabout, or else the default site, and for every site checked.","properties":{"account":{"description":"The Amazon account checked, as `account` accepts it.","type":"string"},"accounts":{"description":"Every Amazon account with a saved session, the default one first.","items":{"type":"string"},"type":"array"},"default":{"description":"Whether it's the user's default site, which tools read when they aren't given `site`.","type":"boolean"},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"description":"Why the session couldn't be checked, if it couldn't. `signed_in` is null then."},"sign_in":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"description":"What to do to sign in, if the user isn't."},"signed_in":{"anyOf":[{"type":"boolean"},{"type":"null"}],"description":"Whether Amazon still accepts the user's saved session for the site. If Amazon answers the check with an error page, a saved session is assumed to still work. Null if the session couldn't be checked at all."},"site":{"description":"The Amazon site, as `site` accepts it.","type":"string"},"sites":{"description":"Every site checked: the one asked about, or else the default site and every other site with a saved session.","items":{"description":"The user's session status on an Amazon site.","properties":{"default":{"description":"Whether it's the user's default site, which tools read when they aren't given `site`.","type":"boolean"},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"description":"Why the session couldn't be checked, if it couldn't. `signed_in` is null then."},"sign_in":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"description":"What to do to sign in, if the user isn't."},"signed_in":{"anyOf":[{"type":"boolean"},{"type":"null"}],"description":"Whether Amazon still accepts the user's saved session for the site. If Amazon answers the check with an error page, a saved session is assumed to still work. Null if the session couldn't be checked at all."},"site":{"description":"The Amazon site, as `site` accepts it.","type":"string"}},"required":["signed_in","site","default"],"title":"SiteSessionStatus","type":"object"},"type":"array"}},"required":["signed_in","site","default","sites","account","accounts"],"title":"SessionStatus","type":"object"}},{"annotations":{"openWorldHint":true,"readOnlyHint":true},"description":"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.","inputSchema":{"properties":{"account":{"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`)."},"cursor":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"default":null,"description":"The `cursor` of the previous batch, to fetch the next one. The filters it was fetched with carry over."},"family_member_id":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"description":"The ID of an Amazon Household member whose Orders to get, such as a linked Teen account, from `household_members`. An account in an Amazon Household gets the whole household's Orders by default; pass `\"self\"` for only its own."},"full_details":{"default":false,"description":"Get the full details for each Order in the batch. This will execute an additional request per Order.","type":"boolean"},"limit":{"anyOf":[{"type":"integer"},{"type":"null"}],"default":10,"description":"Stop fetching history pages once at least this many Orders are collected. Whole pages are fetched, so the batch can hold up to a page more than `limit`. `None` fetches every page."},"order_filter":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"description":"The order type filter to use, e.g. `\"digital\"` for Kindle and other digital purchases, which the default history doesn't include. If provided, appended alongside the time filter."},"site":{"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`)."},"start_index":{"anyOf":[{"type":"integer"},{"type":"null"}],"default":null,"description":"The index of the Order from which to start fetching in the history. Ignored if `cursor` is provided."},"time_filter":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"description":"The time filter to use. Supported values are `\"last30\"` (last 30 days), `\"months-3\"` (past 3 months), or `\"year-YYYY\"` (specific year). Only one of `year` or `time_filter` may be given."},"year":{"anyOf":[{"type":"integer"},{"type":"null"}],"default":null,"description":"The year for which to get history. Only one of `year` or `time_filter` may be given, and it's ignored if `cursor` is provided. Defaults to the current year if neither `year` nor `time_filter` is specified."}},"title":"get_ordersArguments","type":"object"},"name":"get_orders","outputSchema":{"additionalProperties":true,"description":"The batch of Orders, the Amazon Household members, and the cursor for the next one.","properties":{"cursor":{"description":"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.","type":["object","null"]},"has_more":{"description":"`True` if there are more results to fetch with `cursor`.","type":"boolean"},"household_members":{"description":"The Amazon Household members whose Orders the account can view, such as linked Teen accounts, from the Order history's member filter. Pass a member's `id` as `family_member_id` to get their Orders. Empty if the account has none.","items":{"additionalProperties":true,"description":"A member of the Amazon Household whose Orders the account can view, such as a linked Teen account. Pass its `id` as `family_member_id` to `get_orders` to get their Orders.","properties":{"id":{"description":"The FamilyMember ID, to pass as `family_member_id` to `get_orders`.","type":"string"},"name":{"description":"The FamilyMember name.","type":"string"}},"type":"object"},"type":"array"},"items":{"description":"The results in this batch.","items":{"additionalProperties":true,"description":"An Amazon Order. If desired fields are populated as `None`, ensure `full_details` is `True` when retrieving the Order (for instance, with `get_orders`), since by default it is `False` (enabling slows down querying).","properties":{"amazon_discount":{"description":"The Amazon discount, as a negative amount. Only populated when `full_details` is `True`.","type":"number"},"cancelled":{"description":"`True` if the Order was cancelled. When `True`, fields like `grand_total` and the totals on the details page may be `None` because Amazon stops rendering them.","type":"boolean"},"coupon_savings":{"description":"The Order coupon savings, as a negative amount. Only populated when `full_details` is `True`.","type":"number"},"estimated_tax":{"description":"The Order estimated tax. Only populated when `full_details` is `True`. For Whole Foods Market orders this is the \"Tax and Fees\" total from the receipt.","type":"number"},"free_shipping":{"description":"The Order free shipping, as a negative amount. Only populated when `full_details` is `True`.","type":"number"},"full_details":{"description":"If the Orders full details were populated from its details page.","type":"boolean"},"gift_card":{"description":"The Gift Card total (rendered as \"Gift Card\" on digital order details pages), as a negative amount. Only populated when `full_details` is `True`.","type":"number"},"gift_wrap":{"description":"The Gift Wrap total. Only populated when `full_details` is `True`.","type":"number"},"grand_total":{"description":"The Order grand total.","type":"number"},"index":{"description":"Where the Order appeared in the history when it was queried. This will inevitably change (e.g. when a new Order is placed, all indexes will then be off by one), but is still captured as it may be applicable in various use-cases. Populated when the Order was fetched through `get_orders` (use `start_index` to correlate), or when the `clone` has its `index` set.","type":"integer"},"is_whole_foods":{"description":"`True` if this is a Whole Foods Market purchase (an in-store purchase or a Whole Foods receipt order). Unlike other unsupported order types, these expose a `grand_total` and (often) an `item_count` on the history page, so those fields are populated.","type":"boolean"},"item_count":{"description":"The number of items in the purchase, when Amazon summarizes the count instead of listing the items (e.g. Whole Foods Market orders show \"N items in this purchase\"). `None` when no such summary is shown.","type":"integer"},"items":{"description":"The Order Items.","items":{"additionalProperties":true,"description":"An Item in an Amazon `Order`. If desired fields are populated as `None`, ensure `full_details` is `True` when retrieving the Order (for instance, with `get_orders`), since by default it is `False` (it will slow down querying).","properties":{"asin":{"description":"The product ASIN, derived from `link`; `None` when the link is not a product page.","type":"string"},"condition":{"description":"The Item condition.","type":"string"},"image_link":{"description":"The Item image URL.","type":"string"},"link":{"description":"The Item link. `None` for items without an Amazon detail page (e.g. some Whole Foods Market line items).","type":"string"},"price":{"description":"The Item price.","type":"number"},"quantity":{"description":"The Item quantity. `None` when the page shows none, and for items sold by weight (e.g. Whole Foods), which have no whole-unit count.","type":"integer"},"return_eligible_date":{"description":"The Item return eligible date.","format":"date","type":"string"},"seller":{"additionalProperties":true,"description":"The Item Seller.","properties":{"link":{"description":"The Seller link.","type":"string"},"name":{"description":"The Seller name.","type":"string"}},"type":"object"},"subscription_frequency":{"description":"The Item's Subscribe & Save delivery frequency (e.g. \"Every 2 months\"), `None` if it isn't a subscription.","type":"string"},"title":{"description":"The Item title.","type":"string"}},"type":"object"},"type":"array"},"multibuy_discount":{"description":"The Multibuy discount, as a negative amount. Only populated when `full_details` is `True`.","type":"number"},"order_details_link":{"description":"The Order details link.","type":"string"},"order_number":{"description":"The Order number. May be `None` only when the Order is `cancelled` and Amazon stripped the order number from the details page (the `order_number` parameter is used as a fallback in that case).","type":"string"},"order_placed_date":{"description":"The Order placed date.","format":"date","type":"string"},"payment_method":{"description":"The Order payment method. Only populated when `full_details` is `True`. For Whole Foods Market orders this is the card brand of the first payment method on the receipt (e.g. \"Visa\").","type":"string"},"payment_method_last_4":{"description":"The Order payment method's last 4 digits, preserved verbatim so leading zeros are not lost. Only populated when `full_details` is `True`.","type":"string"},"promotion_applied":{"description":"The Order promotion applied, as a negative amount. Only populated when `full_details` is `True`.","type":"number"},"recipient":{"additionalProperties":true,"description":"The Order Recipients.","properties":{"address":{"description":"The Recipient address.","type":"string"},"name":{"description":"The Recipient name.","type":"string"}},"type":"object"},"refund_total":{"description":"The Order refund total. Only populated when `full_details` is `True`.","type":"number"},"reward_points":{"description":"The Order reward points, as a negative amount of currency (not a count of points). Only populated when `full_details` is `True`.","type":"number"},"shipments":{"description":"The Order Shipments.","items":{"additionalProperties":true,"description":"An Amazon Shipment, which should contain one or more `Item`'s.","properties":{"delivery_status":{"description":"The Shipment delivery status, or `None` once Amazon stops showing it, some weeks after delivery.","type":"string"},"items":{"description":"The Shipment Items.","items":{"additionalProperties":true,"description":"An Item in an Amazon `Order`. If desired fields are populated as `None`, ensure `full_details` is `True` when retrieving the Order (for instance, with `get_orders`), since by default it is `False` (it will slow down querying).","properties":{"asin":{"description":"The product ASIN, derived from `link`; `None` when the link is not a product page.","type":"string"},"condition":{"description":"The Item condition.","type":"string"},"image_link":{"description":"The Item image URL.","type":"string"},"link":{"description":"The Item link. `None` for items without an Amazon detail page (e.g. some Whole Foods Market line items).","type":"string"},"price":{"description":"The Item price.","type":"number"},"quantity":{"description":"The Item quantity. `None` when the page shows none, and for items sold by weight (e.g. Whole Foods), which have no whole-unit count.","type":"integer"},"return_eligible_date":{"description":"The Item return eligible date.","format":"date","type":"string"},"seller":{"additionalProperties":true,"description":"The Item Seller.","properties":{"link":{"description":"The Seller link.","type":"string"},"name":{"description":"The Seller name.","type":"string"}},"type":"object"},"subscription_frequency":{"description":"The Item's Subscribe & Save delivery frequency (e.g. \"Every 2 months\"), `None` if it isn't a subscription.","type":"string"},"title":{"description":"The Item title.","type":"string"}},"type":"object"},"type":"array"},"shipment_id":{"description":"Amazon's identifier for the Shipment, taken from `tracking_link`. `None` when there is no tracking link (Amazon stops showing it on older Orders), or the link carries no Shipment ID. Pass it to `get_tracking`.","type":"string"},"tracking_link":{"description":"The Shipment tracking link.","type":"string"}},"type":"object"},"type":"array"},"shipping_total":{"description":"The Order shipping total. Only populated when `full_details` is `True`.","type":"number"},"subscription_discount":{"description":"The Order Subscribe & Save discount, as a negative amount. Only populated when `full_details` is `True`.","type":"number"},"subtotal":{"description":"The Order subtotal. Only populated when `full_details` is `True`.","type":"number"},"total_before_tax":{"description":"The Order total before tax. Only populated when `full_details` is `True`.","type":"number"}},"type":"object"},"type":"array"}},"type":"object"}},{"annotations":{"openWorldHint":true,"readOnlyHint":true},"description":"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.","inputSchema":{"properties":{"account":{"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`)."},"cursor":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"default":null,"description":"The `cursor` of the previous batch, to fetch the next one."},"limit":{"anyOf":[{"type":"integer"},{"type":"null"}],"default":10,"description":"Stop fetching result pages once at least this many results are collected. Whole pages are fetched, so the batch can hold up to a page more than `limit`. `None` fetches every page."},"query":{"description":"What to search for: words from a product title, an Order number, or a name or address an Order was sent to.","type":"string"},"site":{"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`)."}},"required":["query"],"title":"search_ordersArguments","type":"object"},"name":"search_orders","outputSchema":{"additionalProperties":true,"description":"The OrderSearchResults, one per matching Item, or an empty list if nothing matched.","properties":{"cursor":{"description":"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.","type":["object","null"]},"has_more":{"description":"`True` if there are more results to fetch with `cursor`.","type":"boolean"},"items":{"description":"The results in this batch.","items":{"additionalProperties":true,"description":"An Item of an Order that matched an Order search. The Order search page lists each matching Item, with its Order's number and date, from every year of the Order history. The Order itself is fetched by `order_number` with `get_order`.","properties":{"item":{"additionalProperties":true,"description":"The matching Item, built with the config's `item_class`. The search page shows its title, link, image, and quantity (only when more than one was ordered), not its price or Seller.","properties":{"asin":{"description":"The product ASIN, derived from `link`; `None` when the link is not a product page.","type":"string"},"condition":{"description":"The Item condition.","type":"string"},"image_link":{"description":"The Item image URL.","type":"string"},"link":{"description":"The Item link. `None` for items without an Amazon detail page (e.g. some Whole Foods Market line items).","type":"string"},"price":{"description":"The Item price.","type":"number"},"quantity":{"description":"The Item quantity. `None` when the page shows none, and for items sold by weight (e.g. Whole Foods), which have no whole-unit count.","type":"integer"},"return_eligible_date":{"description":"The Item return eligible date.","format":"date","type":"string"},"seller":{"additionalProperties":true,"description":"The Item Seller.","properties":{"link":{"description":"The Seller link.","type":"string"},"name":{"description":"The Seller name.","type":"string"}},"type":"object"},"subscription_frequency":{"description":"The Item's Subscribe & Save delivery frequency (e.g. \"Every 2 months\"), `None` if it isn't a subscription.","type":"string"},"title":{"description":"The Item title.","type":"string"}},"type":"object"},"order_details_link":{"description":"The Order details link. `None` if the result has none.","type":"string"},"order_number":{"description":"The number of the Order the Item is in, from `order_details_link`.","type":"string"},"order_placed_date":{"description":"The date the Order was placed.","format":"date","type":"string"}},"type":"object"},"type":"array"}},"type":"object"}},{"annotations":{"openWorldHint":true,"readOnlyHint":true},"description":"Get the full details for a given Amazon Order ID.","inputSchema":{"properties":{"account":{"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`)."},"order_id":{"description":"The Amazon Order ID to lookup.","type":"string"},"site":{"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`)."}},"required":["order_id"],"title":"get_orderArguments","type":"object"},"name":"get_order","outputSchema":{"additionalProperties":true,"description":"The requested Order.","properties":{"amazon_discount":{"description":"The Amazon discount, as a negative amount. Only populated when `full_details` is `True`.","type":"number"},"cancelled":{"description":"`True` if the Order was cancelled. When `True`, fields like `grand_total` and the totals on the details page may be `None` because Amazon stops rendering them.","type":"boolean"},"coupon_savings":{"description":"The Order coupon savings, as a negative amount. Only populated when `full_details` is `True`.","type":"number"},"estimated_tax":{"description":"The Order estimated tax. Only populated when `full_details` is `True`. For Whole Foods Market orders this is the \"Tax and Fees\" total from the receipt.","type":"number"},"free_shipping":{"description":"The Order free shipping, as a negative amount. Only populated when `full_details` is `True`.","type":"number"},"full_details":{"description":"If the Orders full details were populated from its details page.","type":"boolean"},"gift_card":{"description":"The Gift Card total (rendered as \"Gift Card\" on digital order details pages), as a negative amount. Only populated when `full_details` is `True`.","type":"number"},"gift_wrap":{"description":"The Gift Wrap total. Only populated when `full_details` is `True`.","type":"number"},"grand_total":{"description":"The Order grand total.","type":"number"},"index":{"description":"Where the Order appeared in the history when it was queried. This will inevitably change (e.g. when a new Order is placed, all indexes will then be off by one), but is still captured as it may be applicable in various use-cases. Populated when the Order was fetched through `get_orders` (use `start_index` to correlate), or when the `clone` has its `index` set.","type":"integer"},"is_whole_foods":{"description":"`True` if this is a Whole Foods Market purchase (an in-store purchase or a Whole Foods receipt order). Unlike other unsupported order types, these expose a `grand_total` and (often) an `item_count` on the history page, so those fields are populated.","type":"boolean"},"item_count":{"description":"The number of items in the purchase, when Amazon summarizes the count instead of listing the items (e.g. Whole Foods Market orders show \"N items in this purchase\"). `None` when no such summary is shown.","type":"integer"},"items":{"description":"The Order Items.","items":{"additionalProperties":true,"description":"An Item in an Amazon `Order`. If desired fields are populated as `None`, ensure `full_details` is `True` when retrieving the Order (for instance, with `get_orders`), since by default it is `False` (it will slow down querying).","properties":{"asin":{"description":"The product ASIN, derived from `link`; `None` when the link is not a product page.","type":"string"},"condition":{"description":"The Item condition.","type":"string"},"image_link":{"description":"The Item image URL.","type":"string"},"link":{"description":"The Item link. `None` for items without an Amazon detail page (e.g. some Whole Foods Market line items).","type":"string"},"price":{"description":"The Item price.","type":"number"},"quantity":{"description":"The Item quantity. `None` when the page shows none, and for items sold by weight (e.g. Whole Foods), which have no whole-unit count.","type":"integer"},"return_eligible_date":{"description":"The Item return eligible date.","format":"date","type":"string"},"seller":{"additionalProperties":true,"description":"The Item Seller.","properties":{"link":{"description":"The Seller link.","type":"string"},"name":{"description":"The Seller name.","type":"string"}},"type":"object"},"subscription_frequency":{"description":"The Item's Subscribe & Save delivery frequency (e.g. \"Every 2 months\"), `None` if it isn't a subscription.","type":"string"},"title":{"description":"The Item title.","type":"string"}},"type":"object"},"type":"array"},"multibuy_discount":{"description":"The Multibuy discount, as a negative amount. Only populated when `full_details` is `True`.","type":"number"},"order_details_link":{"description":"The Order details link.","type":"string"},"order_number":{"description":"The Order number. May be `None` only when the Order is `cancelled` and Amazon stripped the order number from the details page (the `order_number` parameter is used as a fallback in that case).","type":"string"},"order_placed_date":{"description":"The Order placed date.","format":"date","type":"string"},"payment_method":{"description":"The Order payment method. Only populated when `full_details` is `True`. For Whole Foods Market orders this is the card brand of the first payment method on the receipt (e.g. \"Visa\").","type":"string"},"payment_method_last_4":{"description":"The Order payment method's last 4 digits, preserved verbatim so leading zeros are not lost. Only populated when `full_details` is `True`.","type":"string"},"promotion_applied":{"description":"The Order promotion applied, as a negative amount. Only populated when `full_details` is `True`.","type":"number"},"recipient":{"additionalProperties":true,"description":"The Order Recipients.","properties":{"address":{"description":"The Recipient address.","type":"string"},"name":{"description":"The Recipient name.","type":"string"}},"type":"object"},"refund_total":{"description":"The Order refund total. Only populated when `full_details` is `True`.","type":"number"},"reward_points":{"description":"The Order reward points, as a negative amount of currency (not a count of points). Only populated when `full_details` is `True`.","type":"number"},"shipments":{"description":"The Order Shipments.","items":{"additionalProperties":true,"description":"An Amazon Shipment, which should contain one or more `Item`'s.","properties":{"delivery_status":{"description":"The Shipment delivery status, or `None` once Amazon stops showing it, some weeks after delivery.","type":"string"},"items":{"description":"The Shipment Items.","items":{"additionalProperties":true,"description":"An Item in an Amazon `Order`. If desired fields are populated as `None`, ensure `full_details` is `True` when retrieving the Order (for instance, with `get_orders`), since by default it is `False` (it will slow down querying).","properties":{"asin":{"description":"The product ASIN, derived from `link`; `None` when the link is not a product page.","type":"string"},"condition":{"description":"The Item condition.","type":"string"},"image_link":{"description":"The Item image URL.","type":"string"},"link":{"description":"The Item link. `None` for items without an Amazon detail page (e.g. some Whole Foods Market line items).","type":"string"},"price":{"description":"The Item price.","type":"number"},"quantity":{"description":"The Item quantity. `None` when the page shows none, and for items sold by weight (e.g. Whole Foods), which have no whole-unit count.","type":"integer"},"return_eligible_date":{"description":"The Item return eligible date.","format":"date","type":"string"},"seller":{"additionalProperties":true,"description":"The Item Seller.","properties":{"link":{"description":"The Seller link.","type":"string"},"name":{"description":"The Seller name.","type":"string"}},"type":"object"},"subscription_frequency":{"description":"The Item's Subscribe & Save delivery frequency (e.g. \"Every 2 months\"), `None` if it isn't a subscription.","type":"string"},"title":{"description":"The Item title.","type":"string"}},"type":"object"},"type":"array"},"shipment_id":{"description":"Amazon's identifier for the Shipment, taken from `tracking_link`. `None` when there is no tracking link (Amazon stops showing it on older Orders), or the link carries no Shipment ID. Pass it to `get_tracking`.","type":"string"},"tracking_link":{"description":"The Shipment tracking link.","type":"string"}},"type":"object"},"type":"array"},"shipping_total":{"description":"The Order shipping total. Only populated when `full_details` is `True`.","type":"number"},"subscription_discount":{"description":"The Order Subscribe & Save discount, as a negative amount. Only populated when `full_details` is `True`.","type":"number"},"subtotal":{"description":"The Order subtotal. Only populated when `full_details` is `True`.","type":"number"},"total_before_tax":{"description":"The Order total before tax. Only populated when `full_details` is `True`.","type":"number"}},"type":"object"}},{"annotations":{"openWorldHint":true,"readOnlyHint":true},"description":"Get the carrier and tracking number of a Shipment from its package tracking page.","inputSchema":{"properties":{"account":{"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`)."},"order_id":{"description":"The Amazon Order ID of the Shipment.","type":"string"},"shipment_id":{"description":"The Shipment's `shipment_id`. Amazon stops showing the tracking link it comes from on older Orders.","type":"string"},"site":{"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`)."}},"required":["order_id","shipment_id"],"title":"get_trackingArguments","type":"object"},"name":"get_tracking","outputSchema":{"additionalProperties":true,"description":"The requested Tracking. Its fields are `None` when the page only shows the delivery milestones (no carrier tracking).","properties":{"carrier":{"description":"The carrier the page names, e.g. `UPS`, or `None` when it names none (the \"Delivery Info\" layout).","type":"string"},"tracking_number":{"description":"The carrier's tracking number, e.g. `1Z999AA10123456784` or `TBA000000000000`. Always a `str`, since many (e.g. USPS) are all digits and may have leading zeros.","type":"string"}},"type":"object"}},{"annotations":{"openWorldHint":true,"readOnlyHint":true},"description":"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).","inputSchema":{"properties":{"account":{"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`)."},"order_id":{"description":"The Amazon Order ID to lookup.","type":"string"},"site":{"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`)."}},"required":["order_id"],"title":"get_invoicesArguments","type":"object"},"name":"get_invoices","outputSchema":{"additionalProperties":true,"description":"The Order's Invoices, the Printable Order Summary first.","properties":{"items":{"description":"The Order's Invoices, the Printable Order Summary first.","items":{"additionalProperties":true,"description":"An invoice document of an Amazon `Order`, parsed from the Order's invoice list: the Printable Order Summary (an HTML page, on every site), or an invoice or credit note PDF (issued by sellers, mostly on EU sites). See `get_invoices`, and `download_invoice` for the document itself.","properties":{"format":{"description":"The document's format, `html` for the Printable Order Summary or `pdf` for an invoice or credit note.","type":"string"},"is_credit_note":{"description":"`True` if the document is a credit note (a refund) rather than an invoice.","type":"boolean"},"link":{"description":"The link to download the document. Amazon generates a new one on each request, so don't store it, get the Order's invoices again instead.","type":"string"},"name":{"description":"The document's name, as Amazon lists it, e.g. `Printable Order Summary`, `Invoice 2`, or `Credit note`.","type":"string"},"order_number":{"description":"The Order number the document belongs to.","type":"string"}},"type":"object"},"type":"array"}},"type":"object"}},{"annotations":{"openWorldHint":true,"readOnlyHint":true},"description":"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.","inputSchema":{"properties":{"account":{"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`)."},"cursor":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"default":null,"description":"The `cursor` of the previous batch, to fetch the next one. The `days` window or `order_id` it was fetched with carries over."},"days":{"default":365,"description":"The number of days worth of Transactions to get. Ignored when `order_id` or `cursor` is given.","type":"integer"},"limit":{"anyOf":[{"type":"integer"},{"type":"null"}],"default":10,"description":"Stop 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."},"order_id":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"description":"If given, only Transactions for this Amazon Order ID are returned, as in `get_transactions`. Ignored when `cursor` is given."},"site":{"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":"get_transactionsArguments","type":"object"},"name":"get_transactions","outputSchema":{"additionalProperties":true,"description":"The batch of Transactions, and the cursor for the next one.","properties":{"cursor":{"description":"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.","type":["object","null"]},"has_more":{"description":"`True` if there are more results to fetch with `cursor`.","type":"boolean"},"items":{"description":"The results in this batch.","items":{"additionalProperties":true,"description":"An Amazon Transaction.","properties":{"completed_date":{"description":"The Transaction completed date.","format":"date","type":"string"},"grand_total":{"description":"The Transaction grand total, negative for a charge and positive for a refund.","type":"number"},"is_refund":{"description":"The Transaction was a refund or not.","type":"boolean"},"order_details_link":{"description":"The Transaction Order details link.","type":"string"},"order_number":{"description":"The Transaction Order number, or `None` when the row carries no Order number.","type":"string"},"payment_method":{"description":"The Transaction payment method.","type":"string"},"payment_method_last_4":{"description":"The Transaction payment method's last digits, parsed from `payment_method`. `None` if no masked digits.","type":"string"},"seller":{"description":"The Transaction seller name, or `None` when the row carries none.","type":"string"}},"type":"object"},"type":"array"}},"type":"object"}},{"annotations":{"openWorldHint":true,"readOnlyHint":true},"description":"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.","inputSchema":{"properties":{"account":{"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`)."},"cursor":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"default":null,"description":"The `cursor` of the previous batch, to fetch the next one. The `days` window it was fetched with carries over."},"days":{"default":365,"description":"The number of days worth of Gift Card activity to get. Ignored when `cursor` is given.","type":"integer"},"limit":{"anyOf":[{"type":"integer"},{"type":"null"}],"default":10,"description":"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."},"site":{"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":"get_gift_cardsArguments","type":"object"},"name":"get_gift_cards","outputSchema":{"additionalProperties":true,"description":"The Gift Card balance, the batch of GiftCardActivity, and the cursor for the next one.","properties":{"balance":{"description":"The current Gift Card balance, or `None` if Amazon didn't show one.","type":"number"},"cursor":{"description":"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.","type":["object","null"]},"has_more":{"description":"`True` if there are more results to fetch with `cursor`.","type":"boolean"},"items":{"description":"The results in this batch.","items":{"additionalProperties":true,"description":"An entry in the Amazon Gift Card activity ledger, such as a Gift Card applied to an Order, a claim code redemption, a Reload, or a refund.","properties":{"activity_date":{"description":"The GiftCardActivity date.","format":"date","type":"string"},"amount":{"description":"The GiftCardActivity amount, negative when the balance was debited and positive when it was credited.","type":"number"},"closing_balance":{"description":"The Gift Card balance after this GiftCardActivity.","type":"number"},"description":{"description":"The GiftCardActivity description.","type":"string"},"is_credit":{"description":"The GiftCardActivity credited the balance or not.","type":"boolean"},"order_details_link":{"description":"The Order details link, or `None` when the row links no Order.","type":"string"},"order_number":{"description":"The Order number the GiftCardActivity references, or `None` when the row links no Order.","type":"string"}},"type":"object"},"type":"array"}},"type":"object"}},{"annotations":{"openWorldHint":true,"readOnlyHint":true},"description":"Get every charge in the Prime membership payment history.","inputSchema":{"properties":{"account":{"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`)."},"site":{"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":"get_prime_paymentsArguments","type":"object"},"name":"get_prime_payments","outputSchema":{"additionalProperties":true,"description":"A list of the PrimePayments, newest first.","properties":{"items":{"description":"A list of the PrimePayments, newest first.","items":{"additionalProperties":true,"description":"A charge in the Prime membership payment history: the membership fee Amazon billed on a sign-up or renewal date. Each charge is a digital Order (a `D01-` ID) that neither the Order history nor the Digital Orders tab lists, so this entity is the index to it. The Order itself is fetched by `order_number` with `get_order`, which renders the standard Order details layout for these IDs.","properties":{"grand_total":{"description":"The amount charged, tax included.","type":"number"},"order_details_link":{"description":"The Order details link. `None` when `order_number` is `None`.","type":"string"},"order_number":{"description":"The digital Order number (`D01-…`) of the charge.","type":"string"},"payment_date":{"description":"The date the membership fee was charged, not the start of the membership period it covers.","format":"date","type":"string"},"receipt_link":{"description":"The \"View Receipt\" link, the digital Order summary's print view. `None` when the card has none.","type":"string"}},"type":"object"},"type":"array"}},"type":"object"}},{"annotations":{"openWorldHint":true,"readOnlyHint":true},"description":"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.","inputSchema":{"properties":{"account":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"description":"The Amazon account to check, e.g. `spouse`. By default, the default account."},"site":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"description":"The Amazon site to check, e.g. `amazon.de`. By default, the default site and every other site with a saved session are checked."}},"title":"check_sessionArguments","type":"object"},"name":"check_session","outputSchema":{"description":"The user's Amazon session status, returned by the ``check_session`` and ``sign_in`` tools: for the site asked\nabout, or else the default site, and for every site checked.","properties":{"account":{"description":"The Amazon account checked, as `account` accepts it.","type":"string"},"accounts":{"description":"Every Amazon account with a saved session, the default one first.","items":{"type":"string"},"type":"array"},"default":{"description":"Whether it's the user's default site, which tools read when they aren't given `site`.","type":"boolean"},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"description":"Why the session couldn't be checked, if it couldn't. `signed_in` is null then."},"sign_in":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"description":"What to do to sign in, if the user isn't."},"signed_in":{"anyOf":[{"type":"boolean"},{"type":"null"}],"description":"Whether Amazon still accepts the user's saved session for the site. If Amazon answers the check with an error page, a saved session is assumed to still work. Null if the session couldn't be checked at all."},"site":{"description":"The Amazon site, as `site` accepts it.","type":"string"},"sites":{"description":"Every site checked: the one asked about, or else the default site and every other site with a saved session.","items":{"description":"The user's session status on an Amazon site.","properties":{"default":{"description":"Whether it's the user's default site, which tools read when they aren't given `site`.","type":"boolean"},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"description":"Why the session couldn't be checked, if it couldn't. `signed_in` is null then."},"sign_in":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"description":"What to do to sign in, if the user isn't."},"signed_in":{"anyOf":[{"type":"boolean"},{"type":"null"}],"description":"Whether Amazon still accepts the user's saved session for the site. If Amazon answers the check with an error page, a saved session is assumed to still work. Null if the session couldn't be checked at all."},"site":{"description":"The Amazon site, as `site` accepts it.","type":"string"}},"required":["signed_in","site","default"],"title":"SiteSessionStatus","type":"object"},"type":"array"}},"required":["signed_in","site","default","sites","account","accounts"],"title":"SessionStatus","type":"object"}},{"annotations":{"openWorldHint":true,"readOnlyHint":true},"description":"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","inputSchema":{"properties":{},"title":"get_configArguments","type":"object"},"name":"get_config","outputSchema":{"description":"The settings that can be changed, returned by the ``get_config`` tool.","properties":{"preferences":{"additionalProperties":true,"description":"The user's choices, changed only when they ask. A null value means the default.","type":"object"},"tuning":{"additionalProperties":true,"description":"Settings you may adjust yourself when calls keep failing. A null value means the default.","type":"object"}},"required":["preferences","tuning"],"title":"ConfigValues","type":"object"}},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":false},"description":"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","inputSchema":{"properties":{"key":{"description":"The setting, from `get_config`.","type":"string"},"save":{"anyOf":[{"type":"boolean"},{"type":"null"}],"default":null,"description":"Whether to save the change. By default, a preference is saved and tuning isn't."},"value":{"anyOf":[{"type":"string"},{"type":"integer"},{"type":"number"},{"type":"boolean"},{"type":"null"}],"description":"The new value. Null or an empty string sets it back to the default."}},"required":["key","value"],"title":"update_configArguments","type":"object"},"name":"update_config","outputSchema":{"description":"A setting's new value, returned by the ``update_config`` tool.","properties":{"key":{"description":"The setting.","type":"string"},"saved":{"description":"Whether the change was saved, or only made until the server restarts.","type":"boolean"},"value":{"default":null,"description":"The value now in effect. A null value means the default."}},"required":["key","saved"],"title":"ConfigValue","type":"object"}}]}}}
