Run Ga4 Report
run_ga4_reportGenerate custom Google Analytics 4 reports by specifying a GA4 property, dimensions, metrics, and date range to analyze sessions, users, conversions, and revenue.
Instructions
Run a custom Google Analytics 4 report.
Common dimensions: sessionDefaultChannelGroup, deviceCategory, country, city, landingPage, sessionCampaignName, sessionGoogleAdsKeyword, pagePath, date
Common metrics: sessions, totalUsers, newUsers, bounceRate, conversions, totalRevenue, engagementRate, screenPageViews, averageSessionDuration
Date range examples: "30daysAgo", "7daysAgo", "today", "yesterday", "2024-01-01"
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>",
"dimensions": "<dimensions>",
"metrics": "<metrics>",
"start_date": "<start_date>",
"end_date": "<end_date>"
},
"name": "run_ga4_report"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum rows to return (default 100) | |
| metrics | Yes | List of metric names | |
| end_date | Yes | End date (e.g. "today" or "YYYY-MM-DD") | |
| dimensions | Yes | List of dimension names | |
| start_date | Yes | Start date (e.g. "30daysAgo" or "YYYY-MM-DD") | |
| property_id | Yes | GA4 numeric property ID (e.g. "123456789") |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |