GA4 report
ga_run_reportRun GA4 Data API reports to retrieve sessions, users, page views, engagement, and event metrics by dimension such as date, page, channel, or country. Supports filtering, sorting, date comparisons, and up to four date ranges.
Instructions
GA4 Data API report. Common dimensions: date, pagePath, landingPage, sessionDefaultChannelGroup, sessionSource, country, deviceCategory, eventName. Common metrics: sessions, activeUsers, newUsers, screenPageViews, engagementRate, bounceRate, keyEvents, eventCount (more via ga_get_metadata). Optional comparison range, or up to 4 explicit dateRanges. Returns dataQuality when rows were thresholded, sampled or rolled into '(other)'.
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_report"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | ||
| offset | No | ||
| endDate | No | yesterday | |
| metrics | No | ||
| orderBy | No | Sort order. Defaults to first metric descending. | |
| startDate | No | YYYY-MM-DD, today, yesterday or NdaysAgo. | 28daysAgo |
| dateRanges | No | Up to 4 date ranges; overrides startDate/endDate/compare*. | |
| dimensions | No | ||
| propertyId | Yes | GA4 property ID, e.g. '123456789' (see ga_list_properties). | |
| filterLogic | No | How to join several dimensionFilters. | and |
| currencyCode | No | ISO 4217 code for revenue metrics, e.g. 'EUR'. Defaults to the property's currency. | |
| metricFilter | No | Raw FilterExpression; overrides metricFilters. | |
| keepEmptyRows | No | ||
| metricFilters | No | AND-ed metric filters (post-aggregation). | |
| compareEndDate | No | ||
| dimensionFilter | No | Raw FilterExpression; overrides dimensionFilters. | |
| compareStartDate | No | Second range start; adds a dateRange dimension. | |
| dimensionFilters | No | Dimension filters, AND-ed unless filterLogic says otherwise. |