ga_run_report
Run custom GA4 reports with chosen dimensions and metrics, plus filters, sorting, and two-date-range comparisons, to analyze website and app performance.
Instructions
Run a custom GA4 report with any dimensions/metrics (see ga_get_metadata for names). Supports filters, ordering, comparison of two date ranges.
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>",
"metrics": "<metrics>"
},
"name": "ga_run_report"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| desc | No | ||
| limit | No | ||
| offset | No | ||
| endDate | No | yesterday | |
| metrics | Yes | ||
| orderBy | No | Dimension or metric name to sort by | |
| startDate | No | YYYY-MM-DD, or 'today', 'yesterday', 'NdaysAgo' | 28daysAgo |
| dimensions | No | ||
| propertyId | Yes | ||
| metricFilters | No | ||
| compareEndDate | No | ||
| compareStartDate | No | ||
| dimensionFilters | No |