ga4_run_report
Retrieve GA4 data for sessions, users, conversions, events, and channels. Specify metrics and dimensions over a chosen date range.
Instructions
GA4 Data API runReport — sessions, users, conversions, events, channels. Flexible dimensions + metrics over a date range.
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": {
"startDate": "<startDate>",
"endDate": "<endDate>",
"metrics": "<metrics>"
},
"name": "ga4_run_report"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| startDate | Yes | YYYY-MM-DD, or 'NdaysAgo' / 'today' / 'yesterday'. | |
| endDate | Yes | ||
| metrics | Yes | e.g. ['sessions','activeUsers','conversions','eventCount']. | |
| dimensions | No | e.g. ['date','sessionDefaultChannelGroup','deviceCategory','eventName']. | |
| propertyId | No | Numeric GA4 property id; defaults to GA4_PROPERTY_ID (NOT the G-XXXX measurement id). | |
| limit | No | ||
| dimensionFilter | No | Dimension name to filter on (exact match). | |
| dimensionFilterValue | No |