Skip to main content
Glama

QuerySail: Google Analytics

Run a Google Analytics realtime report

run_realtime_report
Read-onlyIdempotent

Use this when the user asks what is happening on their site or app right now: active users in the last 30 minutes, optionally by country, city, device, platform, page or screen ('unifiedScreenName') or event name. Default metric activeUsers; eventCount, screenPageViews and keyEvents are also available. Standard properties cover the last 30 minutes, GA4 360 properties 60. Realtime figures are preliminary and never cached. Read-only.

Input Schema

NameRequiredDescriptionDefault
filtersNoAll filters are combined with AND. A filter on a requested metric is numeric (equals, notEquals, greaterThan, greaterThanOrEqual, lessThan, lessThanOrEqual with a number value); any other field is a dimension filter with a string operator.
metricsNoRealtime metric API names. Default activeUsers.
order_byNo
row_limitNoRows to return. Default 20, maximum 100.
dimensionsNoRealtime dimension API names, e.g. 'country', 'city', 'deviceCategory', 'platform', 'unifiedScreenName', 'eventName', 'minutesAgo'.
minutes_agoNoHow many minutes back to cover, up to now. Default 29 (the last 30 minutes).
property_idYesExact property ID from list_properties, e.g. 'properties/123456789'.
connection_idNoOptional: force a specific Google connection when the property is visible to several.

Output Schema

NameRequiredDescriptionDefault
rowsNo
unitsNo
totalsNo
requestNo
coverageNo
propertyNo
freshnessNo
requestIdNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior5/5

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

Annotations already cover the safety profile (readOnly, idempotent, non-destructive), and the description still adds real behavioral context the annotations cannot: realtime figures are preliminary, never cached, standard properties cover 30 minutes versus 60 for GA4 360. Those freshness and coverage constraints directly affect how an agent should interpret results.

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?

It is a single dense paragraph rather than a list, but each clause earns its place: trigger, window, dimensions, metrics, tier differences, freshness, and safety. The trigger is front-loaded so the first sentence carries the routing decision.

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 an 8-parameter tool with nested filters, an output schema is present so return values need not be explained, and the schema covers most parameters. The description supplies the realtime-specific context (window length, preliminary data, default metric) and is close to complete, only omitting guidance on filter/metric combinations that the schema partly covers.

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 88%, so the schema already documents filters, metrics, dimensions, row_limit and minutes_ago in detail. The description restates the default metric and a few dimension names ('unifiedScreenName', event name) that are already in the schema, adding little beyond the baseline.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ('Run a Google Analytics realtime report') and immediately pins the scope to 'right now: active users in the last 30 minutes'. That realtime framing is exactly what distinguishes it from the sibling run_report, so an agent can choose correctly without opening the schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives a concrete trigger: 'Use this when the user asks what is happening on their site or app right now'. It implies the split from historical reporting but never names run_report as the alternative or states the when-not condition explicitly, so it falls short of a 5.

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.