Custom GA4 report
ga_run_reportRun GA4 Data API reports with chosen dimensions and metrics to query property data over a date range.
Instructions
Runs a Data API report with any GA4 dimensions/metrics (API names, e.g. country, deviceCategory, sessions, totalRevenue).
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 |
|---|---|---|---|
| limit | No | ||
| endDate | No | YYYY-MM-DD, or relative: today, yesterday, NdaysAgo. | today |
| metrics | Yes | ||
| startDate | No | YYYY-MM-DD, or relative: today, yesterday, NdaysAgo. | 28daysAgo |
| descending | No | ||
| dimensions | No | ||
| propertyId | Yes | GA4 property ID, e.g. 123456789. | |
| orderByMetric | No |