Skip to main content
Glama

Compare products

compare_products
Read-onlyIdempotent

Side-by-side table of the specifications of 2 to 4 products (by URL, model or name), with the rows aligned by label, plus each one's description and datasheet.

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

Input Schema

NameRequiredDescriptionDefault
langNoLanguage of the catalogue content. Default: es.
productsYesProduct URLs, models or names.

Output Schema

NameRequiredDescriptionDefault
rowsYes
productsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.6/5.0
Behavior3/5

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

The annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and closed-world scope, so the safety profile is fully covered. The description adds the useful structural detail that rows are aligned by label and that descriptions and datasheets are included, but says nothing about failure modes (e.g. an unresolvable product among the 2-4) or rate/limit 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?

A single sentence with no filler; the core scope (2 to 4 products) and accepted identifier forms are front-loaded, and the output shape follows. Nothing needs trimming.

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 read-only, two-parameter tool with a full output schema and complete annotation coverage, the description supplies enough to call it correctly. Minor gaps remain: the language parameter is unmentioned and behavior with invalid or duplicate products is unspecified.

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 both parameters carry descriptions, so the baseline is 3. The description only restates information already in the schema ("by URL, model or name" mirrors "Product URLs, models or names"; "2 to 4" mirrors minItems/maxItems) and never mentions the `lang` parameter or its default.

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?

"Side-by-side table of the specifications of 2 to 4 products" states a clear resource and a bounded scope, and the parenthetical "by URL, model or name" clarifies what identifiers are accepted. It is unambiguous, but it never names a sibling such as get_product or find_products to make the single-vs-multi distinction explicit; the 2-to-4 constraint does that only by implication.

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?

The 2-to-4 product bound implies the use case (multi-product comparison rather than single lookup), but there is no explicit when-to-use, when-not-to-use, or named alternative. An agent must infer that get_product is the right call for a single item and find_products for discovery.

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