GA4 report
ga_run_reportRun Google Analytics 4 reports with custom metrics, dimensions, date ranges, and sorting to compare channels, devices, or landing pages and identify engagement trends.
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) of the site being analysed. Ask the user if you do not know it, or use ga_list_properties. | |
| orderByMetric | No | Metric to sort by, descending. |