Skip to main content
Glama

Side-by-Side Product Comparison Matrix

compare_products
Read-onlyIdempotent

Compare 2 to 5 UK products side-by-side on category-specific specifications, live UK prices, spreads, stock, and evidence-backed trade-offs.

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

Input Schema

NameRequiredDescriptionDefault
barcodesYes2 to 5 GTIN-13 barcodes or product_ids to compare side-by-side
intent_idNoOptional shopper use-case intent ID (e.g. creative_pro)
category_slugNoOptional category slug (e.g. laptops, monitors)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, openWorldHint, and destructiveHint=false, so the safety profile is covered. The description does add that prices/stock are 'live' (i.e., fetched fresh) and that outputs include 'evidence-backed trade-offs,' but it says nothing about what happens with invalid or out-of-range barcode counts, partial matches, or unavailable products.

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?

A single front-loaded sentence with no filler, and the cardinality and region constraints appear early. It is dense—'spreads' and 'evidence-backed trade-offs' are packed in without explanation—but nothing is redundant.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a read-only tool with no output schema, the description carries the burden of describing returns, and it only lists return categories in passing ('spreads' is unexplained jargon, and the structure of the trade-off output is not indicated). It is adequate to trigger a correct call but leaves the agent guessing about result shape and edge-case behavior.

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 barcodes, intent_id, and category_slug are already documented in the schema. The description reinforces the 2-to-5 barcode constraint but adds no meaning for intent_id or category_slug, so 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?

Specific verb ('Compare') plus resource ('products') with an explicit cardinality (2 to 5) and region (UK), and it enumerates the comparison dimensions: specifications, live prices, spreads, stock, and trade-offs. It does not, however, differentiate itself from siblings like compare_prices or compare_batch, so an agent cannot tell from this text alone which comparison tool to pick.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no statement of when to use this versus alternatives such as compare_prices or compare_batch, nor any prerequisite guidance beyond the implicit 2-5 item limit. The agent must infer selection from sibling names rather than from this definition.

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