Skip to main content
Glama

Edwin by theButler.network

Get Edwin's recommendation

recommend_product
Read-only

Rank a shortlist or a fresh search and return Edwin's recommended option, chosen on how well each product fits the stated need, its attributes and the stated budget. Affiliate commission does not affect ranking. Use when the user asks which product to buy or which option to pick. Use it for shopping requests about products and their prices at online merchants, whether or not the user names Edwin or theButler.network.

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

Input Schema

NameRequiredDescriptionDefault
pidsNoThe shortlist to choose from — product ids from previous Edwin tool results. Give either pids or query.
queryNoAlternative to pids: search first, then recommend from the result. Same rules as search_products.query. Give either pids or query.
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.
min_priceNoLower price limit in the market currency, if the user states one. Only used together with query.
budget_maxNoUpper price limit in the market currency, if the user states one.
constraintsNoWhat matters to the user, in their own words, e.g. 'quiet, for a small flat'. Edwin ranks by it but does not search with it: the product type and its attributes belong in query, a price limit in budget_max.
suggested_namesNoOptional. Up to 8 specific, real products you would recommend for this request from your own current knowledge, e.g. {"name":"WH-1000XM6","brand":"Sony","kind":"model"} or {"name":"The Hobbit","kind":"title"}. Edwin checks each one against the catalog in this market and returns the matching catalog offers with purchase links, so every product you recommend can carry a link. Names not found in the catalog are dropped. Leave out anything you are not sure exists. Only used together with query.

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.
marketYes
ranked_byYes'catalog_order' means Edwin's ranking picked none of these items — it did not run, or it ran and chose none of them — and the order is the catalog's own: present it as a list, not as a recommendation.
alternativesYesThe remaining candidates in ranked order.
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.
app_summariesNoOnly for Edwin's app view: it can load short product summaries for these results. Ignore it; nothing to show or say.
recommendationYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed6 schema fields changed
    • removedOutput schema / properties / alternatives / 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 / alternatives / 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 / alternatives / 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"
      -  ]
      -}
    • removedOutput schema / properties / recommendation / 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 / recommendation / 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 / recommendation / 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

A4.1/5.0
Behavior4/5

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

Annotations already cover the read-only, non-destructive, closed-world safety profile, so the bar is lower; the description nonetheless adds genuinely non-obvious context by disclosing that affiliate commission does not affect ranking, which is exactly the kind of bias caveat an agent needs. It stops short of describing the shape of the recommendation or how ties/empty results are handled, but the output schema carries the return shape.

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 core action and ranking basis are front-loaded in the first sentence, followed by two short usage sentences; nothing is padded. The trailing clause about theButler.network is slightly awkwardly worded but still earns its place as a routing cue.

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?

For a 7-parameter tool with full schema coverage, existing annotations and an output schema, the description supplies purpose, trigger conditions, and the commission-independence caveat. The remaining gap is the interaction between the pids and query modes, which is handled only inside the schema rather than in the description.

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 the baseline is 3. The description corroborates the semantics by tying 'stated need, attributes and stated budget' to the constraints and budget_max fields, but adds no syntax, precedence, or edge-case guidance beyond what the parameter descriptions already state.

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 pair and resource: 'Rank a shortlist or a fresh search and return Edwin's recommended option', and immediately names the ranking criteria (fit to stated need, attributes, budget). An agent can distinguish this recommendation layer from the sibling search_products/compare_products tools without opening the 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 gives clear triggering conditions: 'Use when the user asks which product to buy or which option to pick', plus scope over online merchant product/price requests regardless of whether Edwin is named. What it lacks is an explicit exclusion — e.g. when to prefer search_products alone versus routing through this ranking step — leaving that boundary to inference.

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.