Skip to main content
Glama
apiguru-amazon-data

apiguru-amazon-data

Live offers and inventory for up to 10 ASINs

offers_stock
Read-onlyIdempotent

Compare sellers' current offers per ASIN, identify the buy-box winner, and optionally check purchasable stock quantity via a cart check.

Instructions

Use to compare sellers' current offers and see who holds the buy box, and, with check_inventory, how many units a buyer can add to the cart now. The stock number is not a sales estimate. Not for the listing's own details (product_details). Returns the current offer list per ASIN (seller, price, condition, buy-box winner) and, optionally, the actual purchasable stock quantity. The whole offer list comes by default; page returns it ten offers at a time. Price: $0.0045 per item (max 10). On an account, a call is billed per page of the offer list it delivers, plus the cart checks of check_inventory. Amazon lists ten offers a page, so an ASIN with up to ten offers is one request and each further page of its list is one more (a listing with 35 offers: 4). page (1, 2, ...) returns that page alone for one request per ASIN -- page 1 is the buy-box offer and the first ten of the list -- and each row then carries page and total_pages. A page past the end is answered like a not-found item: code page_out_of_range, billed, with total_pages and offers_total in the row; total_pages on any page says how far to go, so there is no need to ask. Without page the whole list comes, up to 10 pages (100 offers and the buy-box offer); a longer list says so in coverage_note, and page=11 onward reaches the rest. offers_total is Amazon's own count of the offers under the condition filter, not the number returned; when fewer are returned, coverage_note says why (a page that could not be read this time, the 10-page limit, or offers that cannot be added to a cart). A condition filter covers the buy-box offer too: it is in the answer only when its own condition was asked for. offers_count=winner returns only the offer flagged is_buybox_winner (offers_total keeps the full count); it used to scope only the inventory check and return every offer. /scrape is a legacy alias for the same handler. When Amazon will not return the offer list for an ASIN, the result carries source=product_page: the featured (buy-box) offer read from the product page, offers_on_amazon (how many offers Amazon says exist) and a note; other sellers' offers and stock are then not included. With check_inventory, a cart check that cannot read a quantity is retried once on another session; one that still fails says so on the offer, inventory_response {"error": "cart check failed", "code": "cart_check_failed", "retryable": true}, is not billed, and never reads as a quantity of 0. An offer whose price Amazon shows only in the cart ("Add to cart to see product details") has price null and price_hidden true; it used to read as price 0. Each offer carries ships_from (the "Ships from" name: Amazon for FBA, else the seller), delivery_message (the offer's own delivery promise, e.g. "FREE delivery Friday, October 16 on orders shipped by Amazon over $35") and delivery_message_secondary (the "Or fastest delivery ..." line), null when the offer shows none. delivery is the same value as ships_from, kept for existing integrations; it never held delivery information. A row for an ASIN that could not be answered carries error, code, http_status, billed, retryable and next_step, like a top-level error: upstream_unavailable (not billed, retry that ASIN), no_offers ("No offers found": the offer list holds no offer that can be bought as is -- customizable listings have none; billed like a 404) or asin_redirected (Amazon answers the ASIN with another listing's offers; billed like a 404). On agent.apiguru.app the answer also carries success and _links (self, and details_url per row); billable_requests_count is there on your own key only. Each offer carries merchant_id and sold_by_amazon. Amazon lists its own offers (Amazon.com, Amazon Resale and their local names) without a seller link, so on those rows seller_id repeats the seller's name; merchant_id is the id to use: the linked seller's id, or for Amazon's own offers the merchant id the product page states (null when it states none). sold_by_amazon is true for Amazon's own offers, false for a linked seller and null when the row does not say. Amazon itself has no seller profile to look up.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "asins": "<asins>"
    },
    "name": "offers_stock"
  }
}

Input Schema

NameRequiredDescriptionDefault
geoNoMarketplace country code.US
pageNoOne page of each ASIN's offer list instead of the whole list. Amazon lists ten offers a page, in its own order (it starts from the lowest price with delivery); page 1 also carries the buy-box offer. One request per ASIN whatever the listing's size, and each row then says `page` and `total_pages`. Omit for the whole list, which is one request per page of ten.
asinsYesComma-separated ASIN list, maximum 10. Each must be 10 uppercase alphanumeric characters; malformed entries are rejected with 400. An Amazon product URL (…/dp/ASIN) works too, in place of an ASIN; lower case is fine. A URL's domain sets the marketplace unless geo says otherwise.
conditionNoComma-separated condition filter: ALL, NEW, USED_LIKE_NEW, USED_VERY_GOOD, USED_GOOD, USED_ACCEPTABLE (case-insensitive). Omit for every offer. The filter covers the buy-box offer too: it is in the answer only when its own condition is among those asked for. An unknown value is a free 400 listing the allowed ones; it used to be silently treated as ALL.
offers_countNo'all' for every offer (default), 'winner' for the buy-box offer only, or a specific alphanumeric Offer ID. Every offer carries is_buybox_winner; with 'winner' the per-ASIN data holds that one offer and offers_total says how many exist. An ASIN with no featured offer answers an empty list with an explanatory error. The response echoes filters_applied.all
check_inventoryNoAdd each offer's purchasable stock quantity (`inventory_response`), read with a cart check. Slower, and each check that reads a quantity is billed, so leave off unless you need the number.

Output Schema

NameRequiredDescriptionDefault
resultsNo
request_idNo
country_codeNo
response_timeNo
filters_appliedNo
amazon_request_countNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv1.1.65
    • changedInput schema / properties / condition / description
      Previous value: -"Comma-separated condition filter: ALL, NEW, USED_LIKE_NEW, USED_VERY_GOOD, USED_GOOD, USED_ACCEPTABLE (case-insensitive). Omit for every offer. An unknown value is a free 400 listing the allowed ones; it used to be silently treated as ALL."New value: +"Comma-separated condition filter: ALL, NEW, USED_LIKE_NEW, USED_VERY_GOOD, USED_GOOD, USED_ACCEPTABLE (case-insensitive). Omit for every offer. The filter covers the buy-box offer too: it is in the answer only when its own condition is among those asked for. An unknown value is a free 400 listing the allowed ones; it used to be silently treated as ALL."
    • addedInput schema / properties / page
      Added value: +{
      +  "anyOf": [
      +    {
      +      "maximum": 100,
      +      "minimum": 1,
      +      "type": "integer"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "One page of each ASIN's offer list instead of the whole list. Amazon lists ten offers a page, in its own order (it starts from the lowest price with delivery); page 1 also carries the buy-box offer. One request per ASIN whatever the listing's size, and each row then says `page` and `total_pages`. Omit for the whole list, which is one request per page of ten.",
      +  "title": "Page"
      +}
  2. Changed1 schema field changedv1.1.54
    • changedInput schema / properties / check_inventory / description
      Previous value: -"Resolve the true purchasable stock quantity. Slower and bills more lookups, so leave off unless you need the number."New value: +"Add each offer's purchasable stock quantity (`inventory_response`), read with a cart check. Slower, and each check that reads a quantity is billed, so leave off unless you need the number."
  3. Changed4 schema fields changedv1.1.50
    • changedInput schema / properties / asins / description
      Previous value: -"Comma-separated ASIN list, maximum 10. Each must be 10 uppercase alphanumeric characters; malformed entries are rejected with 400."New value: +"Comma-separated ASIN list, maximum 10. Each must be 10 uppercase alphanumeric characters; malformed entries are rejected with 400. An Amazon product URL (…/dp/ASIN) works too, in place of an ASIN; lower case is fine. A URL's domain sets the marketplace unless geo says otherwise."
    • removedInput schema / properties / asins / pattern
      Removed value: -"^[A-Z0-9]{10}(,[A-Z0-9]{10})*$"
    • changedInput schema / properties / check_inventory / description
      Previous value: -"Resolve the true purchasable stock quantity. Slower and bills more upstream requests, so leave off unless you need the number."New value: +"Resolve the true purchasable stock quantity. Slower and bills more lookups, so leave off unless you need the number."
    • changedInput schema / properties / geo / enum
      Previous value: -[
      -  "US",
      -  "CA",
      -  "DE",
      -  "MX",
      -  "UK",
      -  "FR",
      -  "IT",
      -  "ES",
      -  "AU",
      -  "BR",
      -  "IN",
      -  "JP",
      -  "NL",
      -  "AE",
      -  "PL",
      -  "SA",
      -  "SG",
      -  "SE",
      -  "TR",
      -  "BE"
      -]New value: +[
      +  "US",
      +  "CA",
      +  "DE",
      +  "MX",
      +  "UK",
      +  "FR",
      +  "IT",
      +  "ES",
      +  "AU",
      +  "BR",
      +  "IN",
      +  "JP",
      +  "NL",
      +  "AE",
      +  "PL",
      +  "SA",
      +  "SG",
      +  "SE",
      +  "TR",
      +  "BE",
      +  "IE",
      +  "ZA",
      +  "EG"
      +]
  4. First observedv0.1.0

TDQS

A4/5.0
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already declare readOnly, idempotent, non-destructive, open-world, so the safety profile is covered. The description goes far beyond them on behavior: per-page billing model, the 10-page default limit and coverage_note, page_out_of_range billing, retry-once cart checks that are not billed, source=product_page fallback, and price_hidden instead of price 0. That is unusually strong disclosure; the only deduction is that the cart-check side effect deserves a clearer statement that it does not place an order.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness2/5

Is the description appropriately sized, front-loaded, and free of redundancy?

A single dense block of run-on sentences, roughly three times longer than needed. It front-loads purpose well, but carries changelog noise that does not earn its place ('it used to scope only the inventory check', 'it used to read as price 0', 'it used to be silently treated as ALL') and re-explains return fields the output schema already documents.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a complex 6-parameter, high-cost, paginated tool, nothing an agent needs is missing: billing, limits, error codes, fallback path, and null-field semantics are all present. The over-completeness is a conciseness problem, not a completeness one.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so baseline is 3. The description still adds meaning the schema does not fully carry: how `page` is billed per ASIN, that page 1 contains the buy-box offer, that a past-the-end page returns code page_out_of_range with total_pages, and that condition filtering also removes the buy-box offer.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource set: 'compare sellers' current offers and see who holds the buy box', plus an optional mode ('with check_inventory, how many units a buyer can add to the cart now'). It explicitly disambiguates from product_details and even flags /scrape as a legacy alias of the same handler.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives clear when-to-use ('Use to compare sellers' current offers') and an explicit exclusion ('Not for the listing's own details (product_details)'), plus guidance on the optional mode ('leave off unless you need the number' because it is slower and billed). No guidance on choosing between this and other siblings such as seller_products, so it falls short of a full 5.

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