Skip to main content
Glama

Get category comparison

get_comparison
Read-only

Get a curated, regularly refreshed price comparison for a popular category. Default sort is relevance; use sort=price_asc for cheapest first. Prices are USD. Give the user best.buy_url (a link we may earn a commission on; disclose that). as_of says how fresh each price is.

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": {
      "slug": "<slug>"
    },
    "name": "get_comparison"
  }
}

Input Schema

NameRequiredDescriptionDefault
pageNo
slugYes
sortNodefault relevance (discount for get_deals); discount needs a list price
brandNo
limitNo
on_saleNo
max_priceNoUSD
min_priceNoUSD
min_ratingNodrops products without a rating

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 and openWorldHint, and the description adds real context beyond them: prices are USD, results are curated and refreshed, and best.buy_url is an affiliate link requiring disclosure. It does not mention result shape, pagination limits, or what happens when filters exclude everything, which would matter for a 9-param filtered list.

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?

Four short sentences, front-loaded with purpose then sort, currency, and output handling; nothing is padded. The affiliate-disclosure sentence is long but carries a genuine instruction rather than filler.

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?

With no output schema, the description usefully names two return fields (best.buy_url, as_of) and their meaning, which is good. However, for a tool with 9 parameters and under-half schema description coverage, several filters remain undefined in every source, leaving the definition short of what this tool's complexity warrants.

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 only 44%, so the description should be compensating, but it only touches sort (default relevance, price_asc meaning) and the USD currency for price fields. The remaining parameters — page, limit, brand, on_sale, min_price, min_rating — get no added meaning here and only partial documentation in the schema.

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?

"Get a curated, regularly refreshed price comparison for a popular category" gives a specific verb and resource with the scope (category-level, curated) made explicit. It stops short of naming a sibling, so an agent comparing it with get_deals or get_product must infer the boundary from 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 Guidelines2/5

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

The only usage direction is a sort hint ("use sort=price_asc for cheapest first"), which is parameter advice rather than when-to-use guidance. There is no statement about when to choose this versus get_deals or search_products, and no exclusions or prerequisites.

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.