Skip to main content
Glama

compare_products

Read-only

All your products side by side; lifetime or windowed (today / 7d / 30d / 90d) unique visitors, views, revenue totals with refunds netted (carried per currency in revenue.balances; currencies are never summed across; quote balances, not the merged figure), average revenue per conversion, revenue per visitor, and scan scores, sorted by any of them. Windowed numbers are computed exactly the way the dashboard computes them (same events, same windows), so they match the product page; lifetime visitors are the leaderboard's HLL estimate (~1.6%) and lifetime revenue comes from the payments ledger. Products and scores are always included; visitor columns and windowed revenue need the website_analytics subscription facility, revenue columns need analytics_conversion; gated columns come back null with a note instead of failing the call.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "compare_products"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMax products returned. Default 50.
orderNoSort direction. Default: desc (biggest / newest first).
rangeNoMetric window. lifetime = all-time totals; the others are ROLLING windows over the last N UTC days ending today (each includes today so far); like the dashboard, they are not calendar-day buckets.
sortByNoColumn to sort by. Products missing the chosen metric sort last. Default: visitors.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / range / description
      Previous value: -"Metric window. lifetime = all-time totals; the others are ROLLING windows over the last N UTC days ending today (each includes today so far) — like the dashboard, they are not calendar-day buckets."New value: +"Metric window. lifetime = all-time totals; the others are ROLLING windows over the last N UTC days ending today (each includes today so far); like the dashboard, they are not calendar-day buckets."
  2. First observed

TDQS

A3.8/5.0
Behavior5/5

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

Annotations already declare read-only/non-destructive, but the description adds substantial context they do not carry: windowed metrics match dashboard computation, lifetime visitors are an HLL estimate with ~1.6% error, lifetime revenue comes from the payments ledger, currencies are never summed and balances should be quoted instead of a merged figure, and gated columns return null with a note rather than erroring. That is precisely the behavioral disclosure an agent needs before calling.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The lead clause is well front-loaded and nearly every sentence carries real information, but the body is a single dense run-on stitched together with semicolons and parentheticals ('carried per currency in revenue.balances; currencies are never summed across; quote balances, not the merged figure'), which makes it harder to parse than a short structured list would be.

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?

With no output schema, the description does the work of describing the returned fields (visitors, views, net revenue, avg revenue per conversion, revenue per visitor, scan scores, per-currency balances) and how gated fields appear. It is close to complete for a 4-param read tool; only exact field names/structure beyond revenue.balances remain 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 the schema itself already documents range semantics, sort direction, default sort column, and that missing-metric products sort last. The description only lightly reinforces this ('sorted by any of them') and its added detail (refunds netted, per-currency balances) concerns outputs rather than inputs, so baseline 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?

The opening clause 'All your products side by side' plus the enumerated metric columns and 'sorted by any of them' makes clear this is a comparative multi-product metric table, distinguishable from list_products/search_products/get_product. It stops short of explicitly naming which sibling to use for a single product or a plain list, so it is clear but not sibling-routing.

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 (reach for this when you need several products' metrics ranked against each other) and the gating rules tell the agent when columns will be null. However, there is no explicit statement of when NOT to use it versus list_products, search_products, or get_product, and no prerequisite/alternative routing.

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