GA4 report
ga4_reportUse this for Google Analytics 4 data: sessions, engagement, key events (conversions) and revenue by landing page, channel, source, country, device or date.
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>"
},
"name": "ga4_report"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| days | No | Length of the range when start_date is omitted. Default 28. | |
| limit | No | Default 25. | |
| metrics | No | GA4 API metric names. Default [sessions, engagedSessions, engagementRate, keyEvents, totalRevenue]. Others: activeUsers, newUsers, screenPageViews, averageSessionDuration, bounceRate. | |
| end_date | No | YYYY-MM-DD. Omit for the latest complete day (Search Console lags ~3 days). | |
| order_by | No | Metric to sort by (descending). Default the first metric. | |
| dimensions | No | GA4 API dimension names. Default ['landingPage']. Common: landingPage, pagePath, sessionDefaultChannelGroup, sessionSource, country, deviceCategory, date. | |
| event_name | No | Only this event, e.g. 'sign_up' or 'purchase' (exact name). Pair with metrics like eventCount. When set, organic_only defaults to false. | |
| start_date | No | YYYY-MM-DD. Omit to use the last `days` days. | |
| property_id | Yes | Numeric GA4 property id from list_ga4_properties (e.g. '123456789'). | |
| organic_only | No | Only Organic Search sessions. Default true. | |
| page_contains | No | Only landing pages containing this text. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||