run_comparison_report
Compares two GA4 periods using the same report fields and filters, returning labeled baseline and comparison rows for analysis.
Instructions
Compare two periods with identical report fields and filters.
Args: property_id: Numeric property ID or properties/ID. report: ReportSpec without date_ranges. Shared dimensions, metrics, filters, order_bys, limit and offset are applied to both periods. baseline_date_range: DateRange with start_date and end_date; inclusive. comparison_date_range: DateRange for the period being compared.
Returns: Labeled baseline and comparison reports from one batch request. Match rows by dimension values, not row position. Limits apply separately; missing rows are not zeros. No summing rates or distinct-user counts.
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>",
"report": "<report>",
"baseline_date_range": "<baseline_date_range>",
"comparison_date_range": "<comparison_date_range>"
},
"name": "run_comparison_report"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| report | Yes | A single core report; field names use Data API snake_case. | |
| property_id | Yes | Numeric GA4 property ID or properties/ID; metadata property 0 is universal | |
| baseline_date_range | Yes | An inclusive GA4 date range in the property's timezone. | |
| comparison_date_range | Yes | An inclusive GA4 date range in the property's timezone. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| baseline | Yes | ||
| comparison | Yes |