Ga Run Report
ga_run_reportQuery GA4 analytics data by dimensions (e.g., "city", "pagePath") and metrics (e.g., "activeUsers", "sessions") for a date range. Returns aggregated data rows with dimension and metric values.
Example tool call
This call uses example arguments supplied in the tool’s input schema.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"metrics": [
"activeUsers",
"sessions"
],
"end_date": "today",
"start_date": "30daysAgo",
"property_id": "123456789"
},
"name": "ga_run_report"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum number of rows to return (default 100, max 10000) | |
| metrics | Yes | List of metric names (e.g., ["activeUsers", "sessions", "screenPageViews"]) | |
| end_date | Yes | End date (YYYY-MM-DD or relative: "today", "yesterday") | |
| order_bys | No | Optional ordering. Each item: { dimension: { dimensionName, orderType? } } or { metric: { metricName }, desc? } | |
| dimensions | No | List of dimension names (e.g., ["city", "pagePath", "date"]) | |
| start_date | Yes | Start date (YYYY-MM-DD or relative: "today", "yesterday", "7daysAgo", "30daysAgo") | |
| property_id | Yes | GA4 property ID (numeric, e.g., "123456789") | |
| dimension_filter | No | Optional dimension filter object (GA4 FilterExpression format) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | No | API response kind identifier | |
| rows | No | Aggregated data rows with dimension and metric values | |
| error | No | Error code if connection not established | |
| message | No | Error message if connection not established | |
| rowCount | No | Total number of rows returned | |
| metricHeaders | No | Headers for metric columns in the report | |
| dimensionHeaders | No | Headers for dimension columns in the report |