Skip to main content
Glama

agentanalytics.sh: Analytics Your Agent Can Use

Compare

compare
Read-only

Use compare after a ship for a keep, revert, or extend verdict. Returns rates, lift, and the verdict. Compare is a free read and each successful call is one metered read. goal_event counts unique converters. Read on ship day + 8 so the last day is complete. Today UTC yields incomplete_current_day. Revert only when the interval lies entirely below zero; otherwise inconclusive. A drop by itself is not a revert. Page not found | grokbotpages.com. Optional metric sum(revenue) or p75(cwv_lcp). Hosted vitals are properties on page_view. Prefer web_vitals. metric_event defaults to goal_event. Use better=lower for Web Vitals. sum() is per_user. raw_lift is unnegated. With metric set, interval_method is none. A threshold hit without an interval is no_interval_for_metric. Compare stays a free read when metric is set.

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": {
      "project": "<project>",
      "goal_event": "<goal_event>"
    },
    "name": "compare"
  }
}

Input Schema

NameRequiredDescriptionDefault
ruleNoDecision thresholds. Values above 5 are rejected.
betterNohigher or lower. Use better=lower for cwv_lcp.
metricNoNumeric metric such as p75(cwv_lcp) or sum(revenue).
compareNoCompare window. Pass with baseline.
filtersNoOptional filters, same shape as query. Do not filter on event
projectYesProject name or ID
baselineNoBaseline window. Pass with compare.
ship_dateNoShip date (YYYY-MM-DD, UTC). The ship day is in neither window
goal_eventYesGoal event counted as unique converters.
window_daysNoDays per window, multiple of 7, from 1 to 90. Default 7.
metric_eventNoDefaults to goal_event. Use page_view for hosted vitals.
denominator_eventNoDenominator event. Defaults to page_view.
denominator_filtersNoDenominator-only filters. Max 10. Do not filter on event.

Output Schema

NameRequiredDescriptionDefault
dataNo
typeNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior5/5

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

Beyond readOnlyHint/destructiveHint=false it discloses cost behavior ("free read", "one metered read" per successful call, still free when metric is set), an error condition ("Today UTC yields incomplete_current_day", "no_interval_for_metric"), and output semantics ("raw_lift is unnegated", "sum() is per_user", "With metric set, interval_method is none"). These are traits an agent cannot get from annotations or schema.

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 sentence is well front-loaded, but the body degenerates into telegraphic fragments with no grouping, and it contains an obvious artifact, "Page not found | grokbotpages.com.", which is pure noise. Most remaining fragments carry information, so the density is justified even though the structure is poor.

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?

For a 13-parameter tool with an output schema, the description covers the operational essentials: timing of the read, metered cost, verdict rules, error states, and metric-mode caveats. The output schema carries return values, so omitting rate/lift formatting is acceptable.

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, but the description adds genuine meaning: "better=lower for Web Vitals", "metric_event defaults to goal_event", "Use page_view for hosted vitals", and "sum() is per_user". It does not clarify the relationship between window_days and explicit baseline/compare objects, which is the one parameter interaction left ambiguous.

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?

"Use compare after a ship for a keep, revert, or extend verdict" names the resource (post-ship comparison) and the output (verdict) with a concrete verb. It is distinguishable from siblings like web_vitals and analytics_breakdown, though the jumbled ordering of the remaining sentences dilutes the initial clarity.

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?

It gives real when-to-use guidance: "Use compare after a ship", "Read on ship day + 8 so the last day is complete", and "Prefer web_vitals" for hosted vitals, plus the decision rule "Revert only when the interval lies entirely below zero; otherwise inconclusive." It stops short of explicitly stating when not to use compare at all, and never explains how baseline/compare interact with window_days.

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