ga4_run_report
Run a Google Analytics 4 report for a date range, returning each row as a dictionary of requested metrics and dimensions. Use to retrieve GA4 data and manage truncation by raising limits.
Instructions
Run a GA4 report over a date range and return one dict per row.
Rows are keyed by the requested dimension/metric API names. row_count is
the total available on the server; raise limit or refine dimensions if
rows were truncated.
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_report"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum rows to return. | |
| metrics | Yes | Metric API names, e.g. ['sessions', 'conversions', 'totalRevenue']. Discover names via ga4_metadata. | |
| end_date | No | End date: 'YYYY-MM-DD', 'NdaysAgo', 'yesterday', or 'today'. | today |
| dimensions | No | Dimension API names, e.g. ['date', 'sessionDefaultChannelGroup']. | |
| start_date | No | Start date: 'YYYY-MM-DD', 'NdaysAgo', 'yesterday', or 'today'. | 28daysAgo |
| property_id | Yes | GA4 property ID, e.g. '123456' or 'properties/123456'. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||