Skip to main content
Glama

Compare products

compare_products
Read-only

Compare two to five products side by side, specification by specification: returns each product and, for every specification they state, the value of each one with its unit.

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

Input Schema

NameRequiredDescriptionDefault
idsYesIds of the products to compare side by side, as returned by search_components (2 to 5; any further ids are ignored).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedInput schema / properties / ids / description
      Added value: +"Ids of the products to compare side by side, as returned by search_components (2 to 5; any further ids are ignored)."
    • addedInput schema / properties / ids / items / description
      Added value: +"A product id, as returned by search_components."
  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 declare readOnlyHint=true and openWorldHint=false, so the safety profile is covered. The description adds real behavioral context beyond that: the result is per-specification, only specifications actually stated by a product are reported, and values carry units. It does not disclose failure behavior for invalid or unknown ids.

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, using a colon to separate the action from the return contract. The clause 'the value of each one with its unit' is slightly convoluted but still parses on first read.

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 one-parameter read-only tool, the description covers action, cardinality, and the shape of the result, which compensates for the absent output schema. Edge cases such as unknown ids or products with disjoint specification sets are only partially addressed by 'they state'.

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% and there is only one parameter, so the schema already documents ids, the 2–5 bounds, and the item format. The description's 'two to five products' merely restates the schema constraints without adding format or sourcing detail beyond the mention of search_components.

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?

States a specific verb and resource (compare products) with explicit scope (two to five, side by side, specification by specification) and even summarizes the return shape. It is clearly distinguishable from get_product, which returns a single product.

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?

Implicitly routes the agent by naming search_components as the source of ids, and the 'two to five' bound tells the agent the minimum viable call. However, it never states when to prefer this over repeated get_product calls or what happens when an id is unknown.

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