ga4_run_realtime_report
Fetch real-time Google Analytics 4 data on active users and on-site activity from the past 30 minutes to see who is on your site right now.
Instructions
Run a Google Analytics 4 realtime report of active users and on-site activity from the last thirty minutes. Use when the user asks who is on the site right now. Call ga4_run_report for any date range older than that live window, and call ga4_get_metadata if a realtime metric name is rejected.
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": {
"property_id": "<property_id>",
"metrics": "<metrics>"
},
"name": "ga4_run_realtime_report"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| metrics | Yes | Realtime metrics (e.g., ["activeUsers", "screenPageViews", "conversions"]) | |
| dimensions | No | Realtime dimensions (e.g., ["country", "city", "unifiedScreenName"]) | |
| property_id | Yes | GA4 property ID (e.g., "123456" or "properties/123456") |