Skip to main content
Glama

AI Builder Marketplace: software pricing dossiers

compare_products

Read-onlyIdempotent

Compare 2 to 6 products side by side. Every requested id is returned, found or not. With units, adds the cheapest fitting plan's cost where price rules exist.

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

Input Schema

NameRequiredDescriptionDefault
unitsNoTeam size or the product's own unit (companies, orders) to price at; leave empty to compare without a cost.
billingNoBilling term: 'monthly' or 'annual'.annual
product_idsYes2 to 6 product ids, each from the id field of a search_products result.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changed
    • addedInput schema / properties / billing / description
      Added value: +"Billing term: 'monthly' or 'annual'."
    • addedInput schema / properties / billing / enum
      Added value: +[
      +  "monthly",
      +  "annual"
      +]
    • addedInput schema / properties / product_ids / description
      Added value: +"2 to 6 product ids, each from the id field of a search_products result."
    • addedInput schema / properties / units / description
      Added value: +"Team size or the product's own unit (companies, orders) to price at; leave empty to compare without a cost."
  2. First observed

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already cover safety (readOnly, idempotent, closed-world), yet the description adds real behavioral detail beyond them: every requested id is returned whether found or not, which tells the agent to expect partial results rather than a failure. It also discloses conditional enrichment — costs appear only when units are supplied and price rules exist — which prevents the agent from misreading a missing cost as an error.

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?

Three short sentences, zero filler, with the core action and the id-count constraint front-loaded. Each sentence carries a distinct fact: what it does, the return guarantee, and the conditional cost behavior.

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 three-parameter, non-destructive read with no output schema, the description covers the essentials: input cardinality, the return guarantee for missing ids, and when cost data appears. It stops short of describing how the side-by-side comparison is structured or how billing interacts with the cost output, but nothing critical to correct invocation is absent.

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 100%, so all three parameters are already documented, including the units semantics and the 2-6 id range. The description largely restates those facts ('With units, adds ... cost') rather than adding syntax, format, or edge-case meaning, so the baseline of 3 is appropriate.

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?

States a specific verb and resource ('Compare ... products side by side') plus a concrete cardinality bound (2 to 6), so an agent immediately knows this is a fixed-set comparison rather than a search. It does not name or differentiate itself from the sibling compare_offer_costs, leaving the product-vs-offer distinction to be inferred.

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 implied: you need 2-6 known product ids, and the schema note about ids coming from search_products hints at the pipeline order. There is no explicit when-not-to-use statement and no mention of the related comparison tools, so the agent must infer that compare_offer_costs handles offers instead.

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