compare_periods
Compare two date ranges side-by-side across queries, pages, devices, or countries to analyze performance changes with absolute and percentage differences.
Instructions
Compare two arbitrary date ranges side-by-side across any dimension (query, page, device, country). Shows absolute and percentage changes. Useful for before/after analysis, seasonal comparisons, or measuring the impact of changes. Requires synced data — run setup first if needed.
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": {
"siteUrl": "<siteUrl>",
"period1Start": "<period1Start>",
"period1End": "<period1End>",
"period2Start": "<period2Start>",
"period2End": "<period2End>"
},
"name": "compare_periods"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| siteUrl | Yes | GSC property URL. | |
| period1Start | Yes | Period 1 start date (YYYY-MM-DD). | |
| period1End | Yes | Period 1 end date (YYYY-MM-DD). | |
| period2Start | Yes | Period 2 start date (YYYY-MM-DD). | |
| period2End | Yes | Period 2 end date (YYYY-MM-DD). | |
| dimension | No | Dimension to group by. Default: "query". | |
| limit | No | Max rows. Default: 50. | |
| pageFilter | No | Filter by URL path (uses LIKE). |