Skip to main content
Glama

Edwin by theButler.network

Compare products side by side

compare_products
Read-only

Compare two to five products side by side: brand, category, price range across merchants, merchant count, and the lowest current offer for each. Use when the user is choosing between named products.

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

Input Schema

NameRequiredDescriptionDefault
pidsYesTwo to five product ids from previous Edwin tool results.
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.

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
productsYes
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. Changed2 schema fields changed
    • removedOutput schema / properties / products / 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 / products / 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"
      +]
  2. First observed

TDQS

A3.9/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, openWorldHint=false and destructiveHint=false, so the safety profile needs no restating. The description adds useful context about the shape of the comparison (aggregated price range across merchants, merchant count, lowest offer), but says nothing about how freshness or merchant coverage is determined, nor that the comparison is a snapshot. Behavioral credit is modest beyond the annotations.

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?

Two tight sentences: the payload (what is compared) is front-loaded, and the usage cue comes second. Nearly no waste, though the "two to five" count duplicates the schema constraint and could be dropped from prose.

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?

Output schema exists, so return values need no prose; annotations cover safety; the schema fully documents both parameters. The only residual gap is that the description never says the pids must come from prior tool results, which matters for correct invocation but is at least stated in the schema.

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%: both pids (2-5 ids from previous tool results) and market (ISO country code, infer from context) are fully documented in the schema. The description restates the 2-5 bound already encoded as minItems/maxItems and adds no new meaning to either parameter, so the baseline of 3 applies.

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?

Names a specific verb and resource ("Compare ... products side by side") and enumerates exactly what is compared: brand, category, price range across merchants, merchant count, lowest current offer. That field list, plus the 2-5 product bound, distinguishes it from search_products (discovery) and get_offers (single-product offers) without needing to name them.

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?

"Use when the user is choosing between named products" gives a clear selection condition and implicitly excludes open-ended discovery. It stops short of naming an alternative (e.g. search_products for unnamed products, find_alternatives when the user wants substitutes), so there is no explicit when-not guidance.

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.