run_report
Executes Google Analytics 4 Data API reports for standard, pivot, batch, realtime, compatibility, and funnel queries using a property ID and request JSON.
Instructions
Run a Data API report. Request is the request JSON without property. Kinds: report (RunReportRequest), pivot, batch, batch_pivot, realtime, compatibility, funnel (v1alpha RunFunnelReportRequest). Inspect get_request_schema("data."). Example: {"date_ranges":[{"start_date":"28daysAgo","end_date":"today"}], "dimensions":[{"name":"eventName"}],"metrics":[{"name":"eventCount"}],"limit":50}
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>",
"request": "<request>"
},
"name": "run_report"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | No | report | |
| request | Yes | ||
| property_id | Yes |