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

GA4 realtime report

ga_run_realtime_report
Read-onlyIdempotent

Query GA4 real-time data from the last 30 minutes to monitor active users, page views, and key events, filtered by country, device, or page. Get live traffic insights for troubleshooting.

Instructions

Real-time (last 30 minutes) GA4 data. Dimensions: country, city, deviceCategory, unifiedScreenName, eventName, minutesAgo. Metrics: activeUsers, screenPageViews, eventCount, keyEvents. Rows are sorted by the first metric unless orderBy says otherwise.

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_realtime_report"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNo
metricsNo
orderByNoSort order. Defaults to first metric descending.
dimensionsNo
propertyIdYesGA4 property ID, e.g. '123456789' (see ga_list_properties).
filterLogicNoHow to join several dimensionFilters.and
minuteRangesNoWindows inside the last 30 minutes; default is the whole 30 minutes.
dimensionFiltersNoDimension filters, e.g. unifiedScreenName CONTAINS '/tours/'.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.14.0
    • removedInput schema / $schema
      Removed value: -"http://json-schema.org/draft-07/schema#"
  2. Changed4 schema fields changedv0.10.0
    • addedInput schema / properties / dimensionFilters
      Added value: +{
      +  "description": "Dimension filters, e.g. unifiedScreenName CONTAINS '/tours/'.",
      +  "items": {
      +    "properties": {
      +      "caseSensitive": {
      +        "default": false,
      +        "type": "boolean"
      +      },
      +      "field": {
      +        "description": "Dimension API name, e.g. pagePath, country.",
      +        "type": "string"
      +      },
      +      "matchType": {
      +        "default": "EXACT",
      +        "enum": [
      +          "EXACT",
      +          "BEGINS_WITH",
      +          "ENDS_WITH",
      +          "CONTAINS",
      +          "FULL_REGEXP",
      +          "PARTIAL_REGEXP"
      +        ],
      +        "type": "string"
      +      },
      +      "not": {
      +        "default": false,
      +        "description": "Negate this filter.",
      +        "type": "boolean"
      +      },
      +      "value": {
      +        "description": "Single value, matched with matchType.",
      +        "type": "string"
      +      },
      +      "values": {
      +        "description": "Match any value in this list (inListFilter), e.g. 20 page paths. Use instead of value.",
      +        "items": {
      +          "type": "string"
      +        },
      +        "minItems": 1,
      +        "type": "array"
      +      }
      +    },
      +    "required": [
      +      "field"
      +    ],
      +    "type": "object"
      +  },
      +  "type": "array"
      +}
    • addedInput schema / properties / filterLogic
      Added value: +{
      +  "default": "and",
      +  "description": "How to join several dimensionFilters.",
      +  "enum": [
      +    "and",
      +    "or"
      +  ],
      +  "type": "string"
      +}
    • addedInput schema / properties / minuteRanges
      Added value: +{
      +  "description": "Windows inside the last 30 minutes; default is the whole 30 minutes.",
      +  "items": {
      +    "properties": {
      +      "endMinutesAgo": {
      +        "default": 0,
      +        "description": "Window end, minutes ago.",
      +        "maximum": 29,
      +        "minimum": 0,
      +        "type": "integer"
      +      },
      +      "name": {
      +        "description": "Label shown in the dateRange column.",
      +        "type": "string"
      +      },
      +      "startMinutesAgo": {
      +        "default": 29,
      +        "description": "Window start, minutes ago (0 = current minute).",
      +        "maximum": 29,
      +        "minimum": 0,
      +        "type": "integer"
      +      }
      +    },
      +    "type": "object"
      +  },
      +  "maxItems": 4,
      +  "minItems": 1,
      +  "type": "array"
      +}
    • addedInput schema / properties / orderBy
      Added value: +{
      +  "description": "Sort order. Defaults to first metric descending.",
      +  "items": {
      +    "properties": {
      +      "desc": {
      +        "default": true,
      +        "type": "boolean"
      +      },
      +      "dimension": {
      +        "type": "string"
      +      },
      +      "metric": {
      +        "type": "string"
      +      }
      +    },
      +    "type": "object"
      +  },
      +  "type": "array"
      +}
  3. Changed2 schema fields changedv0.5.1
    • removedInput schema / 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)."
  4. First observedv0.3.0

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already cover safety (readOnly, idempotent, non-destructive, open-world), and the description usefully adds the 30-minute data window and the default sort behavior. It omits other operational traits an agent would want: row/cardinality caps, quota behavior, and whether the 30-minute window means no historical depth at all.

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?

Three tight sentences, front-loaded with the scope-defining 30-minute constraint, and the dimension/metric vocabularies are high-value content. The final sorting sentence duplicates the orderBy parameter description and could be dropped.

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 8-parameter tool with no output schema, the definition covers inputs well but says nothing about result shape, the dateRange column implied by minuteRanges, or failure modes for unknown dimension names. Adequate but with clear gaps given the tool's complexity.

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 coverage is only 63%, and the description compensates by enumerating the accepted dimension names (country, city, deviceCategory, unifiedScreenName, eventName, minutesAgo) and metric names (activeUsers, screenPageViews, eventCount, keyEvents) that the free-string array params do not constrain. The sort-default sentence only restates the orderBy schema text, so it adds no extra meaning.

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?

States a specific resource and scope: 'Real-time (last 30 minutes) GA4 data' plus the exact dimensions and metrics available. That recency window is what separates it from the broader ga_run_report sibling, though the description never names that alternative 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 30-minute window implies the use case (live monitoring vs historical reporting), but there is no explicit when-to-use or when-not-to-use guidance and no pointer to ga_run_report for non-realtime queries. Guidance is inferable rather than stated.

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