Skip to main content
Glama

Site Insights by KKV Labs

GA4 realtime report

run_ga4_realtime_report
Read-onlyIdempotent

GA4 Data API runRealtimeReport: what is happening on the site in the last 30 minutes (for example activeUsers by country, deviceCategory, unifiedScreenName or minutesAgo), with filters, order by, minute ranges and aggregations.

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_realtime_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.
limitNo
metricsNoDefault activeUsers.
order_bysNo
dimensionsNo
metric_filterNo
minute_rangesNoGA4 MinuteRange objects, for example [{ "startMinutesAgo": 29, "endMinutesAgo": 0 }].
dimension_filterNo
metric_aggregationsNoGA4 metricAggregations. Default TOTAL.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.3/5.0
Behavior3/5

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

Annotations already establish that this is a safe, read-only, idempotent, closed-world operation. The description adds useful behavioral context about the 30-minute realtime window and example fields, but it does not explain return shape, limits, or error behavior beyond what the schema and annotations provide.

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?

The description is a single front-loaded sentence that identifies the API operation and its realtime scope before listing examples and capabilities. It is efficient and free of obvious filler, though the example list is slightly dense.

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

Completeness2/5

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

For a tool with 10 parameters, nested objects, no required parameters, and no output schema, the one-sentence description leaves meaningful gaps. It does not explain filtering/order-by object formats, how to choose this tool over historical or pivot reports, or what the response looks like.

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 coverage is around 50%, and the description adds some semantic help by naming filters, order by, minute ranges, aggregations, and example fields like activeUsers and country. However, parameters such as order_bys, metric_filter, dimension_filter, and limit have no schema descriptions, and the description does not explain their structure or usage sufficiently to compensate.

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 the specific API operation and clearly scopes it to realtime data over the last 30 minutes, with concrete example dimensions and metrics. It implicitly distinguishes itself from historical report siblings by saying 'what is happening on the site in the last 30 minutes,' though it does not explicitly name an alternative.

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 by the realtime framing, but there is no explicit guidance such as 'use this instead of run_ga4_report for recent activity' or when not to use it. The agent must infer the alternative from the sibling names and the realtime scope.

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