Skip to main content
Glama

Metrinel

Run GA4 report

ga4_run_report
Read-only

Run a Google Analytics 4 report: metrics broken down by dimensions over a date range, with optional filters, sorting and a comparison period. total_rows is the full size of the result; page with offset.

Input Schema

NameRequiredDescriptionDefault
limitNo
offsetNo
metricsYesMetric API names, e.g. sessions, totalUsers.
end_dateNoYYYY-MM-DD, or today, yesterday, NdaysAgo.yesterday
order_bysNoFields to sort by; prefix with '-' for descending, e.g. -sessions.
dimensionsNoDimension API names, e.g. date, sessionDefaultChannelGroup.
start_dateNoYYYY-MM-DD, or today, yesterday, NdaysAgo.28daysAgo
property_idYesGA4 property id, numeric (e.g. 123456789). See ga4_list_properties.
metric_filterNoGA4 Data API FilterExpression as JSON, e.g. {"filter": {"fieldName": "country", "stringFilter": {"value": "Spain"}}} or {"andGroup": {"expressions": [...]}}.
compare_end_dateNoEnd of the optional comparison period.
dimension_filterNoGA4 Data API FilterExpression as JSON, e.g. {"filter": {"fieldName": "country", "stringFilter": {"value": "Spain"}}} or {"andGroup": {"expressions": [...]}}.
compare_start_dateNoStart of an optional comparison period. Adds a dateRange column.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, openWorldHint and destructiveHint=false, so the safety profile is covered. The description adds genuinely useful behaviour not in the annotations: that `total_rows` reflects the full result size and that paging is done with `offset`. It says nothing about quota limits, invalid metric/dimension error behaviour, or comparison-period output shape.

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

Conciseness5/5

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

Two sentences, front-loaded with the operation and its result shape, followed by the pagination caveat. No filler, no repetition of parameter names already in the schema.

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

Completeness3/5

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

With 12 parameters, an output schema and full annotations, the description covers the core call adequately. However, it omits two things an agent would benefit from: that metrics/dimensions must be valid GA4 API names discoverable via ga4_list_dimensions_and_metrics, and that property_id comes from ga4_list_properties (the schema mentions it, the description does not reinforce it).

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 description coverage is 83%, so the schema already documents dates, filters, order_bys and the comparison period in detail. The description only adds one piece of meaning beyond that: `total_rows` is the unpaged result size, which frames the offset parameter. Baseline 3 applies given the rich schema.

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?

Names a specific verb and resource ('Run a Google Analytics 4 report') and spells out the shape of the result (metrics broken down by dimensions over a date range, with filters, sorting and comparison). It does not explicitly contrast itself with ga4_run_realtime_report or ga4_list_dimensions_and_metrics, so sibling differentiation is left implicit through the date-range framing.

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 only implied: the date-range language hints this is the historical-report tool rather than the realtime one, and no prerequisites or exclusions are stated. Nothing tells the agent when to prefer this over ga4_run_realtime_report or get_data, and it does not point to ga4_list_dimensions_and_metrics for valid field names.

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