Skip to main content
Glama

search_products

Discover and compare products by name across merchants, returning ranked results with brand, price, image, and direct link. Narrow by merchant; use checkout tools when ready to buy.

Instructions

PRODUCT DISCOVERY ONLY — for when the user is browsing, comparing, or exploring products and has not yet decided exactly what to buy. NOT for purchasing: if the user wants to buy / order named products from a specific merchant, do NOT call this tool — call create_search_checkout directly instead. Searches for products by name across merchants and returns ranked results each with name, brand, merchant, image, priceFrom, currency, and directUrl. Optionally narrow results to a specific merchant while still returning others. If the user later decides to order a result, pass its directUrl to create_checkout (or to get_product_details for variants).

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

Input Schema

NameRequiredDescriptionDefault
nameYesProduct name or search query
merchantNoOptional merchant name to prioritize results (e.g. 'amazon', "Macy's")

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.6

TDQS

A4.4/5.0
Behavior3/5

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

With no annotations, the description carries the full burden and does disclose useful behavior: results are ranked across merchants, the returned fields are enumerated (name, brand, merchant, image, priceFrom, currency, directUrl), and merchant narrowing is soft rather than exclusive. It omits operational traits such as pagination, result limits, auth or rate-limit requirements, and whether 'priceFrom' implies multi-offer aggregation.

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?

Front-loads the critical discovery-only constraint and the prohibited case before describing mechanics, which is the right ordering. Slightly redundant in naming checkout siblings twice, but every sentence still contributes routing or return-value 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?

For a simple two-parameter search tool with no output schema, the description covers purpose, exclusions, return fields, and downstream routing. Nothing an agent needs in order to invoke it correctly is missing.

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, but the description adds real meaning: 'merchant' is described as narrowing/prioritizing while 'still returning others', clarifying it is a soft filter rather than an exclusive one. That nuance is not present in the schema's 'prioritize results' phrasing.

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 ('Searches for products by name across merchants') and immediately scopes it as discovery-only, explicitly distinguishing it from create_search_checkout and create_checkout. An agent can pick this apart from purchasing siblings 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 explicit when-to-use ('browsing, comparing, or exploring' before deciding), when-not ('if the user wants to buy / order named products from a specific merchant'), and names the alternative to call instead. It even covers the follow-up path by pointing to create_checkout and get_product_details after a result is chosen.

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