Skip to main content
Glama

Get product by SKU

get_retailer_product
Read-onlyIdempotent

Get details for a specific product by its retailer SKU/ID. Returns compact items by default (~14 fields); pass response_format="full" for complete product data including resale intelligence such as Amazon pricing, profitability, and catalog metrics. 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>",
      "product_id": "<product_id>"
    },
    "name": "get_retailer_product"
  }
}

Input Schema

NameRequiredDescriptionDefault
product_idYesThe product's unique SKU/ID within the retailer's catalog. Pass the 'product_id' field from search_retailer_products results (equivalently, its 'unique_merchant_sku'). Note: the search result's 'id' field is an internal cursor key and is NOT resolvable here.
retailer_idYesRetailer identifier (e.g. "walmart", "target"). Use list_retailers to get valid IDs.
response_formatNoResponse shape. "compact" (default) returns a ~14-field subset; "resale" adds the Amazon resale signals (asins, amazon_price, profitability, trimmed amazon_marketplace) without the long product_description; "full" returns complete product data with resale intelligence.compact

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / product_id / description
      Previous value: -"The product's unique SKU/ID within the retailer's catalog (the 'unique_merchant_sku' or 'id' field from search results)."New value: +"The product's unique SKU/ID within the retailer's catalog. Pass the 'product_id' field from search_retailer_products results (equivalently, its 'unique_merchant_sku'). Note: the search result's 'id' field is an internal cursor key and is NOT resolvable here."
  2. Changed2 schema fields changed
    • changedInput schema / properties / response_format / description
      Previous value: -"Response shape. \"compact\" (default) returns a ~14-field subset; \"full\" returns complete product data with resale intelligence."New value: +"Response shape. \"compact\" (default) returns a ~14-field subset; \"resale\" adds the Amazon resale signals (asins, amazon_price, profitability, trimmed amazon_marketplace) without the long product_description; \"full\" returns complete product data with resale intelligence."
    • changedInput schema / properties / response_format / enum
      Previous value: -[
      -  "full",
      -  "compact"
      -]New value: +[
      +  "full",
      +  "compact",
      +  "resale"
      +]
  3. Changed1 schema field changed
    • addedInput schema / properties / response_format
      Added value: +{
      +  "default": "compact",
      +  "description": "Response shape. \"compact\" (default) returns a ~14-field subset; \"full\" returns complete product data with resale intelligence.",
      +  "enum": [
      +    "full",
      +    "compact"
      +  ],
      +  "type": "string"
      +}
  4. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnlyHint/idempotentHint/destructiveHint=false, so the safety profile is covered. The description adds genuinely new behavioral context beyond the structured fields: the default response shape and field count, and the fact that links may be affiliate links with an accompanying affiliate_disclosure. It does not cover error/pagination behavior, keeping it from a 5.

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?

Three short sentences, each earning its place: purpose first, then the response-shape tradeoff, then the affiliate disclosure. Nothing is padded and the most important information is front-loaded.

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

Completeness4/5

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

With no output schema, the description carries the burden of explaining what comes back, and it does so via the compact/full distinction and the affiliate disclosure. It leaves minor gaps (pagination, error cases, exact link placement) that are low-risk for a read-only idempotent lookup.

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%, and each property already documents its role in detail, so the baseline is 3. The description's note about compact returning ~14 fields and full including resale intelligence largely restates what the response_format schema description already says, adding little beyond it.

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 ('Get details') and resource ('a specific product by its retailer SKU/ID'), which an agent can distinguish from the sibling search_retailer_products without opening either schema. The SKU-keyed singular lookup versus the plural search tool is clear from the phrasing.

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 conditional guidance for the default vs response_format="full" case ('Returns compact items by default; pass ... for complete product data'), and the schema reinforces the workflow by pointing at search_retailer_products for product_id and list_retailers for retailer_id. It stops short of explicitly naming when NOT to use this tool, so it is clear context without exclusions.

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