GA4 report
ga_run_reportRun Google Analytics 4 reports with selected metrics and dimensions to compare mobile/desktop performance or analyze per-page engagement over a date range.
Instructions
Google Analytics 4 report. Example: metrics ['sessions','engagementRate','averageSessionDuration'] with dimensions ['deviceCategory'] to compare mobile and desktop, or ['landingPage'] for per-page engagement. Names are GA4 Data API names.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "ga_run_report"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | ||
| endDate | No | yesterday | |
| metrics | No | ||
| startDate | No | YYYY-MM-DD, or 'NdaysAgo', 'yesterday', 'today'. | 28daysAgo |
| dimensions | No | ||
| propertyId | No | GA4 property id (digits). Defaults to GA_PROPERTY_ID. | |
| orderByMetric | No | Metric to sort by, descending. |