Skip to main content
Glama

Site Insights by KKV Labs

GA4 report

run_ga4_report
Read-onlyIdempotent

GA4 Data API runReport with every option: any dimensions and metrics the property has (including custom ones), up to 4 date ranges, dimension and metric filters, order by, limit up to 250,000 with offset paging, metric aggregations, comparisons and keep empty rows. Returns every row and field Google sends, plus Google's sampling, thresholding and quota information.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "run_ga4_report"
  }
}

Input Schema

NameRequiredDescriptionDefault
rawNotrue returns Google's response exactly as Google sent it, unchanged.
siteNoThe site's domain (example.com) or its label. Optional when the account has exactly one site switched on. An unknown name returns an error that lists the switched on sites.
limitNoRows to return, default 1000, up to Google's 250000.
offsetNoRow offset for the next page.
periodNoDate range. Default last_28_days. Named ranges end when the data is complete.
metricsNo
end_dateNoCustom end date YYYY-MM-DD.
order_bysNoGA4 OrderBy objects, for example [{ "metric": { "metricName": "sessions" }, "desc": true }].
dimensionsNo
start_dateNoCustom start date YYYY-MM-DD. Overrides period.
comparisonsNoGA4 Comparison objects (name plus dimensionFilter, or a saved comparison).
date_rangesNoUp to 4 GA4 date ranges. Dates are YYYY-MM-DD, today, yesterday or NdaysAgo. Overrides period.
currency_codeNo
metric_filterNoGA4 FilterExpression applied to metrics after aggregation.
keep_empty_rowsNo
dimension_filterNoGA4 FilterExpression for dimensions (andGroup, orGroup, notExpression, filter with stringFilter, inListFilter, numericFilter, betweenFilter, emptyFilter), as in the GA4 Data API.
metric_aggregationsNoGA4 metricAggregations. Default TOTAL.

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, idempotentHint, destructiveHint=false and openWorldHint=false, so the safety profile is covered. The description adds genuinely useful behavior beyond that: it discloses that the response includes Google's sampling, thresholding and quota information, and that paging is done via limit/offset. It does not cover error behavior, unknown-site handling, or rate limits, which matters for a 17-parameter tool.

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?

Two sentences, front-loaded with the verb and resource, then a dense enumeration of capabilities. Given 17 parameters the length is defensible, though the long feature list reads as a catalogue rather than a prioritized guide.

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 complex, 17-parameter tool with nested objects and no output schema, the description covers the return shape (every row and field Google sends, plus sampling/thresholding/quota metadata) and the main capability axes. The remaining gap is operational guidance: site resolution, error semantics, and how period interacts with start_date/end_date beyond the schema's note that start_date overrides period.

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 76%, so the schema carries most of the load. The description reinforces and connects parameters (up to 4 date ranges, limit up to 250,000 with offset paging, metric aggregations, comparisons, keep empty rows, custom dimensions/metrics), but it does not touch several parameters such as raw, site, currency_code or period, and adds little syntax detail the schema lacks.

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 operation ('GA4 Data API runReport') and enumerates its scope: dimensions/metrics, date ranges, filters, ordering, paging, aggregations and comparisons. This distinguishes it from run_ga4_pivot_report, run_ga4_realtime_report and run_ga4_batch_reports by implication of the standard report call, though it never names those siblings explicitly.

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?

The phrase 'with every option' signals this is the general-purpose reporting tool, which implicitly steers agents away from the pivot/realtime/batch variants. However, there is no explicit when-to-use or when-not-to-use statement, and no mention of prerequisites such as the site parameter's default behavior when only one site is enabled.

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