Skip to main content
Glama
ga4-gsc-mcp

ga4-gsc-mcp

by kkvlabs

GA4 realtime report

run_ga4_realtime_report
Read-onlyIdempotent

Retrieve realtime GA4 traffic for the last 30 minutes to see active users by country, page, device, event, or source and answer who is on your site now.

Instructions

Who is on my site right now? GA4 realtime report for the last 30 minutes: active users by country, page, device, event or source.

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
siteNoSite as a domain or Search Console URL, e.g. "example.com" or "sc-domain:example.com". Optional when the credentials see one site.
limitNoRows to return, default 50, max 1000.
metricsNoDefault activeUsers. Also eventCount, screenPageViews, keyEvents.
dimensionsNoRealtime dimensions, e.g. country, unifiedScreenName, deviceCategory, eventName.
minutes_agoNoLook back this many minutes (max 29 on standard GA4, 59 on GA4 360).
ga4_propertyNoGA4 property ID (numbers only). Optional: found from the site's web stream when left out.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

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, openWorldHint and destructiveHint=false, so the safety profile is fully covered by structured data. The description adds only the default reporting window, which is arguably redundant with the minutes_ago constraint already in the schema. No mention of quota behavior, sampling, or what happens when no property resolves.

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 short sentences, front-loaded with the user-facing question before the technical framing, which makes the intent scannable. The second clause mildly repeats the 'realtime' concept, but nothing is padded or wasted.

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?

Six optional parameters all carry schema descriptions and no output schema exists, so the definition needs to convey intent and scope rather than return structure — which it does by naming the breakdown dimensions. What is missing is minimal: no note on the GA4 360 extended window at the description level and no explicit relationship to the non-realtime sibling.

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 100%, so every parameter is already documented in the schema, including examples for dimensions and metrics. The description's list of breakdowns ('country, page, device, event or source') echoes those same examples without adding syntax, valid values, or defaults beyond what the schema provides. Baseline 3 is appropriate.

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 verb and resource (GA4 realtime report) plus the concrete output shape: active users broken down by country, page, device, event or source. The 'last 30 minutes' / 'right now' framing implicitly separates it from the historical run_ga4_report sibling, but it never names that alternative, so the differentiation is inferred rather than stated.

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 context is implied by 'Who is on my site right now?' and the 30-minute window, which tells an agent this is the live-traffic tool. There is no explicit when-to-use/when-not-to-use guidance and no pointer to run_ga4_report for historical periods or to ga4_funnel for user journeys, leaving routing to inference.

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