Skip to main content
Glama

Search retailer products

search_retailer_products
Read-onlyIdempotent

Search and SAMPLE a retailer's catalog: text search, barcode lookups, price/discount filtering, and cursor pagination via 'after'. Returns compact items by default (~14 fields); use response_format="resale" for resale signals or "full" for everything. Per-call cap is 500 items. NOTE: this tool is for finding and sampling products, not bulk export. Paging an entire catalog one cursor at a time is slow and token-heavy. For full-catalog coverage, use exhaustive:true on find_flips with a single retailer_id on paid plans, or contact LemMeBuyIt about MCP Enterprise (admin@lemmebuyit.com). Links may be affiliate links; responses include an affiliate_disclosure.

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": {
      "retailer_id": "<retailer_id>"
    },
    "name": "search_retailer_products"
  }
}

Input Schema

NameRequiredDescriptionDefault
eanNoFilter by EAN barcode (exact match). Comma-separated for batch lookups.
mpnNoFilter by Manufacturer Part Number (exact match).
upcNoFilter by UPC barcode (exact match). Comma-separated for batch lookups.
asinNoFilter by Amazon ASIN (exact match). Comma-separated for batch lookups.
gtinNoFilter by GTIN code (exact match). Comma-separated for batch lookups.
sizeNoFilter by size (exact match).
afterNoSigned pagination cursor from the previous response (next_cursor). Omit for the first page.
brandNoFilter by brand name (exact match, e.g. "Nike").
colorNoFilter by color (exact match).
limitNoMax products per page (1-500, default 25). Use 25-100 for browsing; cannot exceed 500. Paginate via next_cursor for bulk traversal.
modelNoFilter by product model number (exact match).
on_saleNoIf true, only return products currently on sale (current_price < original_price).
sort_byNoSort order. Omit for relevance-based sorting when using search_query. Must be consistent across paginated requests.
categoryNoFilter by category path (exact match). Use ">" as separator (e.g. "Electronics>Computers & Tablets>Laptops"). Use get_retailer_categories to discover valid paths.
currencyNoFilter by currency code (e.g. "USD", "EUR", "CAD").
materialNoFilter by material (exact match).
conditionNoFilter by condition (e.g. "New", "Used", "Refurbished").
max_priceNoMaximum price filter.
min_priceNoMinimum price filter.
max_ratingNoMaximum average rating (0-5 scale).
max_weightNoMaximum product weight.
min_ratingNoMinimum average rating (0-5 scale).
min_weightNoMinimum product weight.
lookup_typeNoOverride auto-detection: "gtin" forces barcode lookup, "text" forces full-text search.
min_reviewsNoMinimum number of customer reviews.
retailer_idYesRetailer identifier (e.g. "walmart", "target"). Use list_retailers to get valid IDs.
subcategoryNoFilter by subcategory (exact match).
manufacturerNoFilter by manufacturer name (exact match).
max_shippingNoMaximum shipping cost. Use 0 for free shipping only.
search_queryNoSearch query. Auto-detects type: numeric 8-14 digits → GTIN barcode lookup; text → full-text search. Supports comma-separated GTINs for batch lookups.
created_sinceNoISO 8601 datetime. Only return products created after this date.
updated_sinceNoISO 8601 datetime. Only return products updated after this date.
max_sales_rankNoMaximum Amazon sales rank (BSR) — e.g. 1000000 to keep only items ranked under 1M. Lower = better. Paid plans only.
min_sales_rankNoMinimum Amazon sales rank (BSR). Lower rank = higher demand. Paid plans only.
response_formatNoResponse shape. "compact" (default) returns a ~14-field subset suitable for bulk listing; "resale" adds the Amazon resale signals (asins, amazon_price, profitability, and a trimmed amazon_marketplace with sales_rank/offer_count/buy_box/list_price) while dropping the long product_description — best for screening a whole catalog without exceeding the token cap; "full" returns complete product objects (verbose; a large page may exceed the response token cap).compact
unique_merchant_skuNoFilter by the retailer's own SKU (exact match). Comma-separated supported.
max_discount_percentNoMaximum discount percentage (0-100).
min_discount_percentNoMinimum discount percentage (0-100).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changed
    • addedInput schema / properties / max_sales_rank
      Added value: +{
      +  "description": "Maximum Amazon sales rank (BSR) — e.g. 1000000 to keep only items ranked under 1M. Lower = better. Paid plans only.",
      +  "maximum": 9007199254740991,
      +  "minimum": 0,
      +  "type": "integer"
      +}
    • addedInput schema / properties / min_sales_rank
      Added value: +{
      +  "description": "Minimum Amazon sales rank (BSR). Lower rank = higher demand. Paid plans only.",
      +  "maximum": 9007199254740991,
      +  "minimum": 0,
      +  "type": "integer"
      +}
    • changedInput schema / properties / response_format / description
      Previous value: -"Response shape. \"compact\" (default) returns a ~14-field subset suitable for bulk listing; \"full\" returns complete product objects with resale intelligence."New value: +"Response shape. \"compact\" (default) returns a ~14-field subset suitable for bulk listing; \"resale\" adds the Amazon resale signals (asins, amazon_price, profitability, and a trimmed amazon_marketplace with sales_rank/offer_count/buy_box/list_price) while dropping the long product_description — best for screening a whole catalog without exceeding the token cap; \"full\" returns complete product objects (verbose; a large page may exceed the response token cap)."
    • changedInput schema / properties / response_format / enum
      Previous value: -[
      -  "full",
      -  "compact"
      -]New value: +[
      +  "full",
      +  "compact",
      +  "resale"
      +]
  2. Changed10 schema fields changed
    • changedInput schema / properties / after / description
      Previous value: -"Cursor for the next page. Use the next_cursor value from the previous response. Omit for the first page."New value: +"Signed pagination cursor from the previous response (next_cursor). Omit for the first page."
    • removedInput schema / properties / in_stock
      Removed value: -{
      -  "description": "If true, only return in-stock products.",
      -  "type": "boolean"
      -}
    • changedInput schema / properties / limit / description
      Previous value: -"Max products per page (1-10000, default 25). Use 25-100 for browsing, up to 10000 for bulk operations."New value: +"Max products per page (1-500, default 25). Use 25-100 for browsing; cannot exceed 500. Paginate via next_cursor for bulk traversal."
    • changedInput schema / properties / limit / maximum
      Previous value: -10000New value: +500
    • removedInput schema / properties / max_sales_rank
      Removed value: -{
      -  "description": "Maximum Amazon sales rank (lower = better seller).",
      -  "maximum": 9007199254740991,
      -  "minimum": 0,
      -  "type": "integer"
      -}
    • removedInput schema / properties / min_sales_rank
      Removed value: -{
      -  "description": "Minimum Amazon sales rank.",
      -  "maximum": 9007199254740991,
      -  "minimum": 0,
      -  "type": "integer"
      -}
    • addedInput schema / properties / response_format / default
      Added value: +"compact"
    • changedInput schema / properties / response_format / description
      Previous value: -"Response shape. \"compact\" returns a smaller subset of fields for large result sets; \"full\" returns complete product objects."New value: +"Response shape. \"compact\" (default) returns a ~14-field subset suitable for bulk listing; \"full\" returns complete product objects with resale intelligence."
    • changedInput schema / properties / sort_by / enum
      Previous value: -[
      -  "price_asc",
      -  "price_desc",
      -  "discount_asc",
      -  "discount_desc",
      -  "top_seller_rank_asc",
      -  "updated_at_asc",
      -  "updated_at_desc",
      -  "created_at_asc",
      -  "created_at_desc"
      -]New value: +[
      +  "price_asc",
      +  "price_desc",
      +  "discount_asc",
      +  "discount_desc",
      +  "updated_at_asc",
      +  "updated_at_desc",
      +  "created_at_asc",
      +  "created_at_desc"
      +]
    • removedInput schema / properties / stock_availability
      Removed value: -{
      -  "description": "Filter by stock status string (e.g. \"In Stock\", \"Out of Stock\").",
      -  "type": "string"
      -}
  3. First observed

TDQS

A4.3/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, openWorldHint and destructiveHint=false, covering the safety profile. The description adds genuinely useful behavioral context the annotations cannot: the 500-item per-call cap, the ~14-field compact default, the affiliate-link disclosure, and the warning that full response_format risks the token cap. However, return shape is largely delegated to the response_format enum rather than described here, keeping this at a solid 3 rather than a standout.

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

Conciseness5/5

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

Front-loads purpose and capabilities, then narrows to the sampling-vs-export distinction and escalation. Every sentence carries information — no filler and no repetition of the title.

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 38-parameter, no-output-schema tool, the description supplies the strategic context an agent needs: what it returns by default, the size ceiling, pagination cost, affiliate disclosure, and when to abandon it for find_flips. Nothing needed to call it correctly appears to be missing.

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

Parameters3/5

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

Schema description coverage is 100%, so the schema already documents all 38 parameters, including after, limit, response_format and the barcode filters. The description reinforces 'after' pagination and the response_format tradeoff but adds no syntax or format detail the schema lacks, so the baseline 3 is appropriate.

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+resource ('Search and SAMPLE a retailer's catalog') and enumerates the distinct capabilities (text search, barcode lookup, price/discount filtering, cursor pagination). It explicitly positions itself against siblings by naming find_flips for full-catalog coverage, so an agent can distinguish it from get_retailer_product and find_flips without opening any schema.

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

Usage Guidelines5/5

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

Gives an explicit when-not ('not bulk export... paging an entire catalog one cursor at a time is slow and token-heavy') and names the alternative with the exact switch to use instead ('exhaustive:true on find_flips with a single retailer_id on paid plans'). This is a complete routing instruction with a fallback escalation path.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources