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.

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": {
      "property_id": "<property_id>",
      "metrics": "<metrics>"
    },
    "name": "ga4_run_report"
  }
}

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.7/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false and openWorldHint=true, so the safety profile is covered and the bar for the description is lower. The description does add genuine behavioral context by explaining that `total_rows` is the full result size and that results are paged via `offset`, which is not derivable from annotations or the bare schema. It says nothing about quota/rate-limit behavior or dimension-limit constraints, which matter for a 12-param analytics query tool.

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 tight sentences with no filler; the core report definition is front-loaded and the pagination note follows as a compact operational addendum. Every clause carries information an agent needs.

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 reporting tool with an output schema and read-only annotations, the description covers the essential mental model: metrics × dimensions × date range, plus optional filters, ordering and comparison, plus pagination. Remaining gaps — max dimensions/metrics per request, how the comparison columns appear in results beyond the schema's own note, and rate limits — are minor because the output schema and per-parameter descriptions carry much of the detail.

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 83%, so the baseline would be 3, but the description earns more by explaining the pagination contract around `offset` and `total_rows` — neither `offset` nor `limit` carries a schema description. It also names the optional comparison period, tying compare_start_date/compare_end_date to the concept of a second date range. It does not explain the shape of limit interactions (e.g. the 1000 default vs 10000 max) or the filter expression objects.

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 gives a specific verb and resource ("Run a Google Analytics 4 report") and enumerates the report's shape: metrics broken down by dimensions over a date range with filters, sorting and comparison. It distinguishes the tool implicitly from ga4_run_realtime_report by framing it as a standard date-range report, but it never names or rules out that sibling, so it stops short of full differentiation.

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 aggregated GA4 metrics over historical date ranges. There is no explicit guidance on when to prefer ga4_run_realtime_report, on how to discover valid metric/dimension names via ga4_list_dimensions_and_metrics, or on preconditions such as property access — the property_id hint lives only in the schema.

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