Skip to main content
Glama

Get details for several products at once

compare_products

Price the same product at several stores — up to 5 URLs in ONE call and ONE payment.

USE THIS WHENEVER YOU HAVE MORE THAN ONE URL. Comparing an item across stores, checking a short list, or refreshing a handful of tracked prices. It returns full details for each URL so YOU can compare them; it does not rank them or pick a winner. Through get_product_details that is one EIP-3009 signature, one settlement and one round trip PER URL; this is one of each for the whole set.

RETURNS one entry per URL in the order given, each with the same product and page objects get_product_details returns, plus ok/error so a single dead URL does not cost you the rest.

COST $0.04 flat for up to 5 URLs — cheaper per page than calling get_product_details 5 times.

BILLING, stated plainly: the price is flat, so a batch where only SOME URLs succeed is charged in full. A batch where NO url succeeds returns an error and is not charged. If you have one URL and are unsure it is live, get_product_details is the cheaper bet.

Duplicate URLs are removed and not billed twice.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
urlsYesUp to 5 absolute https:// product page URLs. Duplicates are removed and not billed twice.
paymentNoBase64-encoded x402 payment payload. Omit on the first call to receive payment requirements.
allow_redirectNoApplies to every URL. See get_product_details for what it does.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
failedYes
statusYes
billingYesThe billing rule, restated on every response rather than only in the docs.
resultsYes
requestedYes
succeededYes
settlementYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedOutput schema / properties / results / items / properties / provenance
      Added value: +{
      +  "anyOf": [
      +    {
      +      "additionalProperties": false,
      +      "properties": {
      +        "declared": {
      +          "items": {
      +            "type": "string"
      +          },
      +          "type": "array"
      +        },
      +        "inferred": {
      +          "items": {
      +            "type": "string"
      +          },
      +          "type": "array"
      +        },
      +        "source": {
      +          "enum": [
      +            "json-ld",
      +            "meta",
      +            "json-ld+meta",
      +            "none"
      +          ],
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "source",
      +        "declared",
      +        "inferred"
      +      ],
      +      "type": "object"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "description": "Per-URL: which fields the merchant declared vs the model inferred."
      +}
    • changedOutput schema / properties / results / items / required
      Previous value: -[
      -  "url",
      -  "ok",
      -  "product",
      -  "page",
      -  "cached",
      -  "cache_age_seconds",
      -  "error",
      -  "message"
      -]New value: +[
      +  "url",
      +  "ok",
      +  "product",
      +  "page",
      +  "provenance",
      +  "cached",
      +  "cache_age_seconds",
      +  "error",
      +  "message"
      +]
  2. Added

TDQS

A4.8/5.0
Behavior5/5

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

No annotations, so the description carries the full burden and does so: flat $0.04 cost, partial-success batches billed in full, all-fail batches not charged, duplicates deduplicated and unbilled, and per-URL ok/error so one failure doesn't lose the rest. This is exactly the pricing and failure-mode detail an agent needs.

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?

The critical routing rule is front-loaded in caps, and the billing paragraph is deliberately explicit. Slightly long with emphasized fragments, but every sentence carries a distinct fact (cost, billing, dedupe, return shape) rather than padding.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given an output schema exists, the return explanation is a bonus rather than a necessity, and the description still covers cost, billing edge cases, and the sibling relationship. Nothing an agent needs to invoke this correctly is missing.

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 coverage is 100%, so the baseline is 3, and the description adds ordering semantics ('one entry per URL in the order given'), duplicate handling, and the allow_redirect scope ('Applies to every URL'). Marginal but real value beyond the schema.

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 ('Price the same product at several stores') with an explicit scope of up to 5 URLs in one call. It clearly distinguishes itself from get_product_details by contrasting the batching model against one-call-per-URL.

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

Usage Guidelines5/5

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

Gives an unconditional directive ('USE THIS WHENEVER YOU HAVE MORE THAN ONE URL'), lists scenarios (comparing across stores, checking a short list, refreshing tracked prices), names the alternative get_product_details, and even states when that alternative is better ('If you have one URL and are unsure it is live').

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.