analytics run report
analytics_run_reportRuns a GA4 Data API report to retrieve metrics and dimensions for a property over specified date ranges, with paging for up to 1,000 rows per call.
Instructions
Run a GA4 Data API report.
property_id: numeric ID or 'properties/'. metrics: e.g. ["activeUsers", "sessions"] (max 10). dimensions: e.g. ["date", "country"] (max 9). date_ranges: [{"start_date": "28daysAgo", "end_date": "today"}] (max 4). Returns headers and rows (at most 1000 per call; page with offset).
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": {
"property_id": "<property_id>",
"metrics": "<metrics>",
"date_ranges": "<date_ranges>"
},
"name": "analytics_run_report"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | ||
| offset | No | ||
| metrics | Yes | ||
| descending | No | ||
| dimensions | No | ||
| date_ranges | Yes | ||
| property_id | Yes | ||
| order_by_metric | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||