get_custom_report
Query Google Analytics 4 data with custom dimensions, metrics, date ranges, and filters to generate tailored reports.
Instructions
Get a custom report with specified dimensions, metrics, date ranges, and filters
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>",
"startDate": "<startDate>",
"endDate": "<endDate>",
"metrics": "<metrics>"
},
"name": "get_custom_report"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| propertyId | Yes | GA4 property ID | |
| startDate | Yes | Start date in YYYY-MM-DD format | |
| endDate | Yes | End date in YYYY-MM-DD format | |
| dimensions | No | Array of dimension names | |
| metrics | Yes | Array of metric names | |
| dimensionFilter | No | Optional dimension filter object | |
| metricFilter | No | Optional metric filter object | |
| limit | No | Maximum number of rows to return | |
| offset | No | Row offset for pagination |