Skip to main content
Glama

Run GA4 report

run_report
Read-only

Run a GA4 report via the Data API. Dimensions × metrics over a date range, with optional dimensionFilter/metricFilter (GA4 FilterExpression objects), orderBys, offset pagination, and multiple dateRanges. Example: device usage by page = dimensions [pagePath, deviceCategory], metric [screenPageViews]. GA4 allows at most 4 dateRanges per run_report call - split more into separate calls and combine the results. GA4 counts dimensions referenced in dimensionFilter toward the 9-dimension nested-request limit, on top of the dimensions array - reduce the dimensions requested or simplify the filter. A numericFilter needs its comparison value wrapped as { int64Value: '10' } (string) or { doubleValue: 10.5 }, not a bare number - e.g. { fieldName: 'sessions', numericFilter: { operation: 'GREATER_THAN', value: { int64Value: '10' } } }. A bare value: 10 passes schema validation here but GA4 rejects it at request time with "value is missing from NumericFilter" since it never finds anything under int64Value/doubleValue.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNo
offsetNoRow offset for pagination.
endDateNotoday
metricsYese.g. ['screenPageViews','activeUsers']
orderBysNo
propertyNoGA property id, e.g. 'properties/123'. Defaults to the connection's.
startDateNo28daysAgo
dateRangesNoOverrides startDate/endDate; supports multiple ranges.
dimensionsYese.g. ['pagePath','deviceCategory']
metricFilterNoGA4 FilterExpression on metrics (pass-through).
keepEmptyRowsNo
dimensionFilterNoGA4 FilterExpression on dimensions (pass-through).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior5/5

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

Annotations only cover the safety profile (readOnly/openWorld/destructive), leaving behavioral disclosure to the text, which delivers strongly: GA4's 4-dateRange ceiling with instructions to split calls, the 9-dimension nested-request accounting for filter dimensions, and the specific trap that a bare numericFilter value validates locally but is rejected at request time. These are exactly the runtime constraints an agent cannot get from structured fields.

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-loaded with the purpose and a concrete example before the constraint list, and nearly every sentence carries actionable content. The numericFilter explanation runs long with a restated GA4 error string, which is slightly redundant but justified by the severity of the pitfall.

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 12-parameter read-only report tool with no output schema, the description covers the tricky behavioral edges (date-range limits, dimension accounting, filter value typing) that would otherwise cause failed calls. Return-shape details are unnecessary absent an output schema, and the remaining minor gap is response/pagination shape.

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 description coverage is only 58%, so the description must compensate, and it does for the complex parameters: it identifies dimensionFilter/metricFilter as GA4 FilterExpression objects, explains dateRanges override startDate/endDate and support multiple ranges, and gives a full worked numericFilter shape. It leaves the simpler fields (limit, keepEmptyRows, property) untouched, but the gap is minor.

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 description names a specific verb and resource ('Run a GA4 report via the Data API') and describes the core shape (dimensions × metrics over a date range) with a concrete example. It does not, however, explicitly differentiate itself from adjacent report siblings like run_realtime_report, run_funnel_report, or run_gaql_report, so an agent must infer the 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?

There is substantial 'how-to-use' guidance (4-dateRange cap, 9-dimension limit, filter pass-through types, pagination via offset), and the worked example implies usage context. But there is no explicit when-to-use vs when-not or any statement naming an alternative report tool, so usage guidance remains implied rather than stated.

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