Skip to main content
Glama

Compare products across stores

compare_products
Read-only

Compare prices, ratings, and merchants for a product query across available stores. Highlights the lowest-price and top-rated options.

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

Input Schema

NameRequiredDescriptionDefault
limitNoNumber of options to compare (2-15)
queryYesProduct or category to compare, e.g. 'Keychron V6 Max'
max_priceNoMaximum price in USD
min_ratingNoMinimum rating (0-5)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.7/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and openWorldHint=true, so the safety and external-reach profile is covered. The description adds that the result set is ranked/annotated with lowest-price and top-rated highlights, which is useful output context, but it says nothing about how many stores are queried, latency, or partial-failure behavior.

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, front-loaded with the core action and then the value-add (highlights), with no filler or redundant restatement of the name.

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 no output schema, the description does need to convey what comes back, and it does so at a high level (price/rating/merchant per option plus best-price and top-rated picks). Sufficient for an agent to call correctly, though thin on result shape and count semantics.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/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 goes slightly beyond by naming price and rating as comparison axes, which explains the intent behind max_price and min_rating rather than only their syntax. It still does not clarify how limit interacts with the highlight logic.

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?

Names a specific verb (compare) and the resources compared (prices, ratings, merchants) plus the scope (across available stores), which lets an agent distinguish it from a plain product search. It stops short of naming the sibling search_products as the alternative, so it is clear but not fully differentiated.

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

Usage Guidelines3/5

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

Usage is only implied by the phrase 'for a product query across available stores' – the agent can infer this is the aggregation/comparison step rather than a lookup, but there is no explicit when-to-use versus search_products or when-not to use (e.g., single-store lookups).

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