ga_run_report
Run custom Google Analytics 4 reports by specifying dimensions, metrics, and date ranges to retrieve the exact data you need.
Instructions
Run a custom Google Analytics report with dimensions and metrics.
⚠️ TOKEN OPTIMIZATION: Use 'limit' to control result size (default: 10). This tool can consume significant tokens with large datasets.
Common dimensions: date, city, country, deviceCategory, browser, pagePath, eventName Common metrics: activeUsers, sessions, screenPageViews, conversions, 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": {
"dateRanges": "<dateRanges>",
"metrics": "<metrics>"
},
"name": "ga_run_report"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum number of rows to return (default: 10) | |
| offset | No | Number of rows to skip (for pagination) | |
| metrics | Yes | Metrics to measure (e.g., [{name: "activeUsers"}]) | |
| orderBys | No | Sorting specification | |
| dateRanges | Yes | Date ranges for the report | |
| dimensions | No | Dimensions to group by (e.g., [{name: "date"}]) | |
| propertyId | No | GA4 property ID to query (overrides the default GA_PROPERTY_ID). Accepts "123456789" or "properties/123456789". Use ga_get_account_summaries to discover IDs. | |
| metricFilter | No | Metric filter expression | |
| dimensionFilter | No | Dimension filter expression |