Skip to main content
Glama
google-seo-mcp
by Akxan

GA4 report

ga_run_report
Read-onlyIdempotent

Run GA4 Data API reports to retrieve sessions, users, page views, engagement, and event metrics by dimension such as date, page, channel, or country. Supports filtering, sorting, date comparisons, and up to four date ranges.

Instructions

GA4 Data API report. Common dimensions: date, pagePath, landingPage, sessionDefaultChannelGroup, sessionSource, country, deviceCategory, eventName. Common metrics: sessions, activeUsers, newUsers, screenPageViews, engagementRate, bounceRate, keyEvents, eventCount (more via ga_get_metadata). Optional comparison range, or up to 4 explicit dateRanges. Returns dataQuality when rows were thresholded, sampled or rolled into '(other)'.

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": {
      "propertyId": "<propertyId>"
    },
    "name": "ga_run_report"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNo
offsetNo
endDateNoyesterday
metricsNo
orderByNoSort order. Defaults to first metric descending.
startDateNoYYYY-MM-DD, today, yesterday or NdaysAgo.28daysAgo
dateRangesNoUp to 4 date ranges; overrides startDate/endDate/compare*.
dimensionsNo
propertyIdYesGA4 property ID, e.g. '123456789' (see ga_list_properties).
filterLogicNoHow to join several dimensionFilters.and
currencyCodeNoISO 4217 code for revenue metrics, e.g. 'EUR'. Defaults to the property's currency.
metricFilterNoRaw FilterExpression; overrides metricFilters.
keepEmptyRowsNo
metricFiltersNoAND-ed metric filters (post-aggregation).
compareEndDateNo
dimensionFilterNoRaw FilterExpression; overrides dimensionFilters.
compareStartDateNoSecond range start; adds a dateRange dimension.
dimensionFiltersNoDimension filters, AND-ed unless filterLogic says otherwise.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv0.14.0
    • removedInput schema / $schema
      Removed value: -"http://json-schema.org/draft-07/schema#"
    • removedInput schema / properties / offset / maximum
      Removed value: -9007199254740991
  2. Changed7 schema fields changedv0.10.0
    • addedInput schema / properties / currencyCode
      Added value: +{
      +  "description": "ISO 4217 code for revenue metrics, e.g. 'EUR'. Defaults to the property's currency.",
      +  "type": "string"
      +}
    • addedInput schema / properties / dateRanges
      Added value: +{
      +  "description": "Up to 4 date ranges; overrides startDate/endDate/compare*.",
      +  "items": {
      +    "properties": {
      +      "endDate": {
      +        "type": "string"
      +      },
      +      "name": {
      +        "description": "Label shown in the dateRange column; defaults to range_0, range_1…",
      +        "type": "string"
      +      },
      +      "startDate": {
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "startDate",
      +      "endDate"
      +    ],
      +    "type": "object"
      +  },
      +  "maxItems": 4,
      +  "minItems": 1,
      +  "type": "array"
      +}
    • changedInput schema / properties / dimensionFilters / description
      Previous value: -"AND-ed dimension filters."New value: +"Dimension filters, AND-ed unless filterLogic says otherwise."
    • addedInput schema / properties / dimensionFilters / items / properties / value / description
      Added value: +"Single value, matched with matchType."
    • addedInput schema / properties / dimensionFilters / items / properties / values
      Added value: +{
      +  "description": "Match any value in this list (inListFilter), e.g. 20 page paths. Use instead of value.",
      +  "items": {
      +    "type": "string"
      +  },
      +  "minItems": 1,
      +  "type": "array"
      +}
    • changedInput schema / properties / dimensionFilters / items / required
      Previous value: -[
      -  "field",
      -  "value"
      -]New value: +[
      +  "field"
      +]
    • addedInput schema / properties / filterLogic
      Added value: +{
      +  "default": "and",
      +  "description": "How to join several dimensionFilters.",
      +  "enum": [
      +    "and",
      +    "or"
      +  ],
      +  "type": "string"
      +}
  3. Changed13 schema fields changedv0.5.1
    • removedInput schema / additionalProperties
      Removed value: -false
    • changedInput schema / properties / compareStartDate / description
      Previous value: -"Optional second date range start; adds a 'dateRange' dimension to rows."New value: +"Second range start; adds a dateRange dimension."
    • changedInput schema / properties / dimensionFilter / description
      Previous value: -"Raw GA4 FilterExpression JSON. Overrides dimensionFilters when given."New value: +"Raw FilterExpression; overrides dimensionFilters."
    • changedInput schema / properties / dimensionFilters / description
      Previous value: -"Simple AND-ed dimension filters."New value: +"AND-ed dimension filters."
    • removedInput schema / properties / dimensionFilters / items / additionalProperties
      Removed value: -false
    • changedInput schema / properties / dimensionFilters / items / properties / field / description
      Previous value: -"Dimension API name, e.g. 'pagePath', 'sessionDefaultChannelGroup', 'country'."New value: +"Dimension API name, e.g. pagePath, country."
    • changedInput schema / properties / metricFilter / description
      Previous value: -"Raw GA4 FilterExpression JSON. Overrides metricFilters when given."New value: +"Raw FilterExpression; overrides metricFilters."
    • changedInput schema / properties / metricFilters / description
      Previous value: -"Simple AND-ed metric filters (applied after aggregation)."New value: +"AND-ed metric filters (post-aggregation)."
    • removedInput schema / properties / metricFilters / items / additionalProperties
      Removed value: -false
    • addedInput schema / properties / offset / maximum
      Added value: +9007199254740991
    • removedInput schema / properties / orderBy / items / additionalProperties
      Removed value: -false
    • changedInput schema / properties / propertyId / description
      Previous value: -"GA4 property ID, e.g. '123456789' or 'properties/123456789'. Use ga_list_properties to discover it."New value: +"GA4 property ID, e.g. '123456789' (see ga_list_properties)."
    • changedInput schema / properties / startDate / description
      Previous value: -"YYYY-MM-DD, 'today', 'yesterday' or 'NdaysAgo'."New value: +"YYYY-MM-DD, today, yesterday or NdaysAgo."
  4. First observedv0.3.0

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, openWorld and non-destructive, so the safety profile is covered; the description adds genuine new behavior by disclosing that the response carries dataQuality when rows are thresholded, sampled, or rolled into '(other)'. That is exactly the kind of caveat an agent needs to interpret results, though quota/rate-limit and row-cap behavior are unstated.

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?

Four dense sentences, front-loaded with purpose, then vocabulary, then range options, then the data-quality caveat — each sentence carries distinct information. The opening 'GA4 Data API report' mildly restates the title but is acceptable as an anchor.

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?

For an 18-parameter query tool with no output schema, the description covers the most agent-critical pieces (valid dimensions/metrics, range shapes, data-quality signaling). It leaves notable gaps: pagination semantics for limit/offset, the row-cap on results, keepEmptyRows behavior, and how dimensionFilters/metricFilters interact with the raw override fields.

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?

With 61% schema coverage, the description earns its keep by naming the free-form dimension and metric values (date, pagePath, sessionDefaultChannelGroup, sessions, engagementRate, keyEvents...) that the schema types only as untyped string arrays. It also clarifies that dateRanges accepts up to 4 ranges as an alternative to the compare* pair, but says nothing about limit/offset pagination, keepEmptyRows, or the raw FilterExpression override params.

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?

Opens with a concrete verb+resource pairing ('GA4 Data API report') and immediately enumerates the dimension and metric vocabulary the tool consumes, so an agent knows exactly what class of query it supports. It differentiates from ga_get_metadata by routing there for the full metric list, but does not distinguish itself from ga_run_pivot_report, ga_run_funnel_report, or ga_run_realtime_report.

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?

Gives usable context hints — 'Optional comparison range, or up to 4 explicit dateRanges' — and points to ga_get_metadata for extended metric discovery. However, it never states when to prefer the pivot, funnel, or realtime siblings, and gives no exclusions or prerequisites (e.g. property access, dimension/metric compatibility).

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.