Skip to main content
Glama

Edwin by theButler.network

Find alternative products

find_alternatives
Read-only

Find comparable products to a given product in the same market, optionally within a budget or with specific attribute changes. Use when the user asks for alternatives, cheaper equivalents, or "something like X but Y".

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

Input Schema

NameRequiredDescriptionDefault
pidYesProduct id exactly as returned by a previous Edwin tool result. Never invent one — call search_products first if you do not have a pid.
limitNoHow many alternatives to return.
marketYesISO 3166-1 alpha-2 country code of the user's shopping market, e.g. DE, AT, NL, FR, GB, US. Infer from the user's context.
directionNoWhich way to look: 'cheaper' for lower-priced equivalents, 'better' for higher-priced ones, 'similar' for the same price class.similar
must_haveNoAttribute words the alternative must carry in its name, e.g. ["oled"] for "like this one but OLED". Matched against product title and brand.
budget_maxNoUpper price limit in the market currency, if the user states one.

Output Schema

NameRequiredDescriptionDefault
noteNoPlain-language explanation for the user. Set whenever the result is empty, and also when something about a non-empty result needs saying — for example that the ranking did not run and the order is the raw catalog order.
itemsYes
marketYes
directionYes
referenceYes
empty_reasonNoMachine-readable reason for an empty result. restricted_category: matches existed but fall into a product category this connector does not serve. no_match_in_market: nothing matched in this market. no_offers_for_product: the product has no merchant offer here at all. no_fresh_offers_for_product: the product has offers, but none is confirmed by the most recent import of its source, so there is no up-to-date price — do not quote an older one. query_too_short: the query carried no searchable terms. market_not_covered: no offers in this market at all. unknown_pid: no product with that id — call search_products for a real one. no_substantial_match: products matched, but none had a recognizable brand or publisher and the fields required for the product type — say so; the user can explicitly ask for unbranded or self-published items.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • removedOutput schema / properties / items / items / properties / best_offer / properties / source_updated_at
      Removed value: -{
      -  "deprecated": true,
      -  "description": "DEPRECATED — alias of source_imported_at with the identical value, kept only for existing clients and removed 30 days after this server version went live. Read source_imported_at instead.",
      -  "type": [
      -    "string",
      -    "null"
      -  ]
      -}
    • changedOutput schema / properties / items / items / properties / best_offer / required
      Previous value: -[
      -  "pid",
      -  "merchant",
      -  "source_type",
      -  "source_network",
      -  "source_imported_at",
      -  "source_updated_at",
      -  "market",
      -  "price",
      -  "currency",
      -  "shipping",
      -  "stock_status",
      -  "match_tier",
      -  "url"
      -]New value: +[
      +  "pid",
      +  "merchant",
      +  "source_type",
      +  "source_network",
      +  "source_imported_at",
      +  "market",
      +  "price",
      +  "currency",
      +  "shipping",
      +  "stock_status",
      +  "match_tier",
      +  "url"
      +]
    • removedOutput schema / properties / items / items / properties / source_updated_at
      Removed value: -{
      -  "deprecated": true,
      -  "description": "DEPRECATED — alias of source_imported_at with the identical value, kept only for existing clients and removed 30 days after this server version went live. Read source_imported_at instead.",
      -  "type": [
      -    "string",
      -    "null"
      -  ]
      -}
  2. First observed

TDQS

A3.8/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, destructiveHint=false and closed-world scope, so the safety profile is covered. The description adds the market-locality constraint and that results are constrained by budget/attributes, but says nothing about how candidates are ranked, how loosely must_have matches, or what happens when nothing qualifies. With a rich schema and full annotations, that is adequate but not rich.

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?

Two sentences: the first defines the operation and its scope, the second routes the agent on trigger conditions. No filler, and the core purpose is front-loaded ahead of the usage hint.

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?

An output schema exists, so return values need no explanation, and annotations plus full parameter coverage leave little for prose to carry. The one real gap is sibling disambiguation — the description never positions this against compare_products or recommend_product, which matters for a six-parameter discovery tool.

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 coverage is 100%, so every parameter is already documented with format, defaults, bounds and enum values. The description only restates these conceptually (budget, attribute changes) without adding syntax or matching semantics beyond the schema. Baseline 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource — "Find comparable products to a given product" — and pins the scope with "in the same market" plus the optional budget/attribute narrowing. It does not differentiate itself from siblings like compare_products or recommend_product, which an agent could plausibly confuse with an alternatives search.

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 concrete trigger phrases: alternatives, cheaper equivalents, and the "something like X but Y" pattern, which directly maps to the direction and must_have parameters. It stops short of exclusions — it never says when to prefer compare_products or search_products instead, so the boundary with siblings is left implicit.

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.