Skip to main content
Glama

Find alternatives to a product

find_alternatives
Read-onlyIdempotent

Finds products like one found in a product search, from across the stores, leaving out that same product. It takes the product's id from a product search result, and an optional price ceiling. It returns products the same way a product search does, each with its price, whether it is in stock, an image and a link, and it collapses the same product sold by more than one store to one. For follow-up calls in this conversation, send the visitorId returned by a previous result unchanged. Omit it on the first call; do not invent one.

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

Input Schema

NameRequiredDescriptionDefault
idYesThe Nobi variant id from a search result; the same identity is named variantId.
limitNoHow many alternatives to return, from 1 to 10. The default is 5.
maxPriceNoThe most an alternative may cost, in the product's currency. Leave it out for no price limit.
visitorIdNoFor follow-up calls in this conversation, send the visitorId returned by a previous result unchanged. Omit it on the first call; do not invent one.

Output Schema

NameRequiredDescriptionDefault
messageNo
productsYes
visitorIdNoFor follow-up calls in this conversation, send the visitorId returned by a previous result unchanged. Omit it on the first call; do not invent one.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedOutput schema / properties / message
      Added value: +{
      +  "type": "string"
      +}
  2. Changed1 schema field changed
    • removedOutput schema / properties / message
      Removed value: -{
      -  "type": "string"
      -}
  3. Changed1 schema field changed
    • addedOutput schema / properties / message
      Added value: +{
      +  "type": "string"
      +}
  4. Changed2 schema fields changed
    • addedInput schema / properties / visitorId
      Added value: +{
      +  "description": "For follow-up calls in this conversation, send the visitorId returned by a previous result unchanged. Omit it on the first call; do not invent one.",
      +  "format": "uuid",
      +  "maxLength": 36,
      +  "minLength": 1,
      +  "type": "string"
      +}
    • addedOutput schema / properties / visitorId
      Added value: +{
      +  "description": "For follow-up calls in this conversation, send the visitorId returned by a previous result unchanged. Omit it on the first call; do not invent one.",
      +  "format": "uuid",
      +  "maxLength": 36,
      +  "minLength": 1,
      +  "type": "string"
      +}
  5. Changed8 schema fields changed
    • changedInput schema / properties / id / description
      Previous value: -"The id of the product, from a product search result."New value: +"The Nobi variant id from a search result; the same identity is named variantId."
    • addedOutput schema / properties / products / items / properties / id / description
      Added value: +"Legacy alias for the selected Nobi variantId; null for parent details. productId identifies the parent."
    • addedOutput schema / properties / products / items / properties / merchantId
      Added value: +{
      +  "type": [
      +    "string",
      +    "null"
      +  ]
      +}
    • addedOutput schema / properties / products / items / properties / productId
      Added value: +{
      +  "type": [
      +    "string",
      +    "null"
      +  ]
      +}
    • addedOutput schema / properties / products / items / properties / sourceProductId
      Added value: +{
      +  "type": [
      +    "string",
      +    "null"
      +  ]
      +}
    • addedOutput schema / properties / products / items / properties / sourceVariantId
      Added value: +{
      +  "type": [
      +    "string",
      +    "null"
      +  ]
      +}
    • addedOutput schema / properties / products / items / properties / variantId
      Added value: +{
      +  "type": "string"
      +}
    • changedOutput schema / properties / products / items / required
      Previous value: -[
      -  "id",
      -  "name",
      -  "store",
      -  "price",
      -  "currency",
      -  "inStock",
      -  "imageUrl",
      -  "url",
      -  "paidLink",
      -  "linkLabel"
      -]New value: +[
      +  "id",
      +  "name",
      +  "store",
      +  "price",
      +  "currency",
      +  "inStock",
      +  "imageUrl",
      +  "url",
      +  "paidLink",
      +  "linkLabel",
      +  "productId",
      +  "variantId",
      +  "merchantId",
      +  "sourceProductId",
      +  "sourceVariantId"
      +]
  6. Added

TDQS

A4.1/5.0
Behavior4/5

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

Beyond the readOnly/idempotent/non-destructive annotations, the description discloses meaningful behavior: results are shaped like search results with price, stock, image and link, and the same product sold by multiple stores is collapsed to one. It also documents the visitorId conversation protocol (omit on first call, pass unchanged on follow-ups, never invent), which is genuine operational context rather than annotation repetition.

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?

The purpose and the exclusion rule are front-loaded, then behavior, then the visitorId instruction. The visitorId sentence duplicates the schema wording verbatim, which is mild redundancy, but the rest is dense and waste-free.

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 a full output schema and rich annotations, the description only needs to explain the exclusion rule, cross-store deduplication, and the visitorId handshake, and it does all three. What it leaves out is how alternatives are ranked or ordered, which an agent might want to know when interpreting results.

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 all four parameters are already documented, and the description largely restates them (id from a search result, optional price ceiling, visitorId protocol) rather than adding new semantics. Baseline 3 applies since the schema does the heavy lifting.

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 ("Finds products like one found in a product search") and immediately distinguishes the output from a plain search by noting it excludes the source product and spans stores. An agent can tell this apart from search_products without opening either schema.

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?

"It takes the product's id from a product search result" establishes the prerequisite workflow: search first, then call this. It does not explicitly name search_products as the discovery step or state when to prefer compare_products or get_product_details instead, so exclusions are implied rather than spelled out.

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