Skip to main content
Glama

Search products

search_products
Read-only

Find products for sale for a keyword on the shop you choose (site). Pick the shop yourself: the one the user names, else the one that best fits their country and the product. Searching across shops (site "any") costs 25 credits instead of about 5, so use it only when the user wants results from many shops. Returns title, price, original price, shop, rating, review count, image, availability and a product_id for each. products holds organic results only; ads the shop or search marks as sponsored come back separately in sponsored (at most 5, each with sponsored: true). Costs credits (call check_site for a shop's price, or with site "any" for the price across shops); failed searches are free, and so is one on a named shop (site) that finds nothing; one across shops that finds nothing still costs credits. Tell the user when prices were read (meta.as_of). Needs sign-in.

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": {
      "query": "<query>",
      "site": "<site>"
    },
    "name": "search_products"
  }
}

Input Schema

NameRequiredDescriptionDefault
siteYesThe shop to search, as a domain (allbirds.com, amazon.de) or a name (allbirds). "any" searches across shops for 25 credits.
limitNo
queryYesWhat to look for, e.g. "running shoes".
formatNostructured: common product fields. raw: also the shop's own JSON, unchanged (not every shop has it).structured
countryNoTwo-letter market code, e.g. US, GB, DE. Picks the shop's market when site is a name. Leave out to use the market of a site like amazon.co.jp (JP); otherwise US.
max_creditsNoOptional budget. If the request could cost more, nothing runs and nothing is charged.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • changedInput schema / properties / site / description
      Previous value: -"Optional shop to search, as a domain (allbirds.com, amazon.de) or a name (allbirds). Leave out to search across shops."New value: +"The shop to search, as a domain (allbirds.com, amazon.de) or a name (allbirds). \"any\" searches across shops for 25 credits."
    • addedInput schema / properties / site / minLength
      Added value: +2
    • changedInput schema / required
      Previous value: -[
      -  "query"
      -]New value: +[
      +  "query",
      +  "site"
      +]
  2. Changed1 schema field changed
    • changedInput schema / properties / country / description
      Previous value: -"Two-letter market code, e.g. US, ID, DE. Picks the shop's market when site is a name. Leave out to use the market of a site like amazon.co.jp (JP); otherwise US."New value: +"Two-letter market code, e.g. US, GB, DE. Picks the shop's market when site is a name. Leave out to use the market of a site like amazon.co.jp (JP); otherwise US."
  3. Changed2 schema fields changed
    • removedInput schema / properties / country / default
      Removed value: -"US"
    • changedInput schema / properties / country / description
      Previous value: -"Two-letter market code, e.g. US, ID, DE. Picks the shop's market when site is a name."New value: +"Two-letter market code, e.g. US, ID, DE. Picks the shop's market when site is a name. Leave out to use the market of a site like amazon.co.jp (JP); otherwise US."
  4. Changed6 schema fields changed
    • changedInput schema / properties / country / description
      Previous value: -"Two-letter market code, e.g. US, ID, MY, SG."New value: +"Two-letter market code, e.g. US, ID, DE. Picks the shop's market when site is a name."
    • addedInput schema / properties / format
      Added value: +{
      +  "default": "structured",
      +  "description": "structured: common product fields. raw: also the shop's own JSON, unchanged (not every shop has it).",
      +  "enum": [
      +    "structured",
      +    "raw"
      +  ],
      +  "type": "string"
      +}
    • addedInput schema / properties / max_credits
      Added value: +{
      +  "description": "Optional budget. If the request could cost more, nothing runs and nothing is charged.",
      +  "minimum": 0,
      +  "type": "integer"
      +}
    • changedInput schema / properties / query / description
      Previous value: -"What to look for, e.g. \"Sony WH-1000XM5\"."New value: +"What to look for, e.g. \"running shoes\"."
    • addedInput schema / properties / site
      Added value: +{
      +  "description": "Optional shop to search, as a domain (allbirds.com, amazon.de) or a name (allbirds). Leave out to search across shops.",
      +  "maxLength": 253,
      +  "type": "string"
      +}
    • removedInput schema / properties / sites
      Removed value: -{
      -  "default": [],
      -  "description": "Optional shop domains to restrict the search to, e.g. [\"amazon.com\", \"shopee.co.id\"]. Amazon domains (amazon.com, amazon.co.uk, ...) search Amazon directly. Other shops: shopping listings from those shops come first; when there are none, results are direct pages on those shops, where prices, ratings and images are often missing (meta.source is web_search).",
      -  "items": {
      -    "type": "string"
      -  },
      -  "maxItems": 5,
      -  "type": "array"
      -}
  5. First observed

TDQS

A4.6/5.0
Behavior4/5

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

Beyond the readOnly/openWorld annotations it discloses credit pricing, the asymmetric refund policy (failed searches free, empty named-shop searches free, empty cross-shop searches still charged), the need to sign in, the cap of 5 sponsored items flagged with sponsored: true, and the meta.as_of timestamp the agent should relay. The only modest gap is that it does not describe pagination or how limit interacts with sponsored slots.

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

Conciseness4/5

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

It is front-loaded with purpose and shop selection, then layers return fields, ad separation, and cost rules in short clauses with no filler. It is dense and longish for a search tool, and the parenthetical pointing to check_site interrupts the cost sentence slightly, but nearly every sentence carries actionable information.

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?

With no output schema, the description enumerates the returned fields (title, price, original price, shop, rating, review count, image, availability, product_id) and explains the sponsored array, plus auth, cost, and timestamp behavior. An agent can call this correctly and set user expectations without opening any other source.

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 already 83%, so the schema carries most parameter meaning, but the description adds real policy beyond it: how to choose 'site' (named shop, else best fit for country and product) and the credit consequence of 'any'. The max_credits budget semantics are left to the schema, which is acceptable given its coverage.

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?

The description opens with a specific verb and resource ('Find products for sale for a keyword') and immediately scopes it by shop selection, making clear this is a cross-shop product search rather than a single-item lookup like get_product. It further separates organic results in 'products' from sponsored results, so the agent knows exactly what class of output to expect.

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?

It gives an explicit shop-selection policy ('the one the user names, else the one that best fits their country and the product') and an explicit when-not for the expensive mode: use site 'any' only when the user wants results from many shops, because it costs 25 credits instead of about 5. That is a complete use/avoid decision rule with the cost tradeoff stated.

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.