ga4 run report
ga4_run_reportRun a GA4 analytics report with intelligent query planning, supporting 52 metrics, 63 dimensions, and auto-pagination.
Instructions
Run a GA4 analytics report with intelligent query planning. Supports 52 metrics, 63 dimensions, auto-pagination. Use ga4://metrics and ga4://dimensions resources for available fields. Max 9 dimensions + 10 metrics per request.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum number of returned items or rows. The declared bounds and default apply; use pagination for additional results. | |
| offset | No | Optional 0-based row offset for explicit pagination. | |
| endDate | No | End date YYYY-MM-DD or relative (today, yesterday) | |
| metrics | Yes | Metric keys (e.g., sessions, activeUsers, totalRevenue) | |
| orderBy | No | Metric or dimension key to sort by | |
| startDate | No | Start date YYYY-MM-DD or relative (7daysAgo, yesterday) | |
| datePreset | No | Named reporting period. Use the custom date range when you need exact start and end dates. | |
| dimensions | No | Dimension keys (e.g., date, sessionSource, country) | |
| propertyId | Yes | GA4 property ID (numeric, e.g., 123456789) | |
| autoPaginate | No | When true, omit the limit so the GA4 client paginates through all rows using offset. | |
| orderDirection | No | Sort direction for the selected ordering field. | DESC |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes | Original tool result: parsed JSON when the text is JSON, otherwise the text or multiple MCP content blocks. Provider fields depend on the selected query. |