Skip to main content
Glama

Analytics report

ga4_report
Read-onlyIdempotent

Any GA4 report (the Data API's runReport): pick dimensions and metrics, filters, date ranges and an optional comparison period. Examples: dimensions ["newVsReturning"] with metrics ["totalUsers", "sessions", "engagementRate"] for new vs returning; ["searchTerm"] with ["eventCount"] for on-site search terms; ["sessionSourceMedium"]; ["deviceCategory"], ["country"], ["contentGroup"]; ["date"] or ["isoYearIsoWeek"] for trends; ["eventName"] with ["keyEvents"] for conversions; ["itemName"] with ["itemRevenue", "itemsPurchased"] for e-commerce. Common metrics: sessions, totalUsers, newUsers, activeUsers, engagedSessions, engagementRate, bounceRate, averageSessionDuration, screenPageViews, keyEvents, totalRevenue, purchaseRevenue, transactions, eventCount.

Input Schema

NameRequiredDescriptionDefault
limitNoDefault 100, max 1000.
filtersNoDimension filters, all must match. Like {"field": "sessionDefaultChannelGroup", "match": "exact", "value": "Organic Search"} or {"field": "landingPage", "match": "begins_with", "value": "/blog/"}.
metricsYes1 to 10 GA4 metric API names.
end_dateNoYYYY-MM-DD. Default: yesterday.
order_byNoA metric or dimension to sort by, descending. Default: the first metric.
propertyNoGA4 property: its id (properties/123456 or 123456) or its name. Optional when one property is picked.
dimensionsNoUp to 9 GA4 dimension API names.
start_dateNoYYYY-MM-DD. Default: 28 days before end_date.
compare_end_dateNo
compare_start_dateNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, openWorldHint and destructiveHint=false, so the safety profile is fully covered. The description adds that it maps to the Data API's runReport and mentions an optional comparison period, but says nothing about rate limits, quota, auth/property requirements, or result shape, which is a modest addition over structured data.

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?

Front-loads the core purpose ("Any GA4 report... pick dimensions and metrics") before the examples, and every example carries actionable dimension/metric pairings rather than filler. It is dense and lengthy in a single block, but for a flexible pass-through reporting tool the examples earn their space.

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 10-parameter, flexible tool with no output schema, the description thoroughly covers the input surface (dimensions, metrics, filters, dates, comparison). The main gap is that it never hints at the returned row/column structure, which an agent must infer, but everything needed to invoke it correctly is present.

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 already 80%, so baseline would be 3, but the description adds real value beyond the schema by enumerating common metric names (sessions, totalUsers, engagementRate, keyEvents, transaction...) and example dimension sets, which the schema does not provide. It clarifies the compare_* pair semantically as a comparison period.

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 resource and scope: "Any GA4 report (the Data API's runReport)", with a concrete verb-action of picking dimensions, metrics, filters and dates. The many examples make the tool's identity unmistakable, though it never explicitly names the sibling preset reports (ga4_overview, ga4_landing_pages, ga4_realtime) it contrasts with, leaving differentiation implicit.

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?

Rich usage context via worked examples (newVsReturning, searchTerm, sessionSourceMedium, trends, conversions, e-commerce), which effectively shows when to reach for this generic report. It stops short of explicit when-not/alternative guidance, e.g. not telling the agent to prefer ga4_overview for standard dashboards, so 5 is not warranted.

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