Compare Analytics Periods
gsc_period_comparisonCompare Search Console performance across two periods to reveal per-query changes in clicks, impressions, CTR, and position, sorted by absolute click deltas.
Instructions
Period-over-period comparison of Search Analytics: runs the same query for the given window and a baseline window — by default the immediately preceding window of equal length, or baselineStartDate/baselineEndDate (e.g. the same window last year) — then reports per-key deltas (current minus baseline: clicks, impressions, CTR, position) sorted by absolute click change. Best with query / page / device / country dimensions — not with date. Dimensions: date, hour, query, page, country (ISO-3166 alpha-3), device (DESKTOP/MOBILE/TABLET), searchAppearance. Search type (type): web (default), image, video, news, discover, googleNews. Aggregation: auto (default), byPage, byProperty. Filter operators: contains, equals (default), notContains, notEquals, includingRegex (RE2), excludingRegex (RE2).
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "gsc_period_comparison"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | No | Search type: web (default), image, video, news, discover, googleNews. | |
| endDate | No | YYYY-MM-DD current-window end (with startDate). Overrides dateRange. | |
| filters | No | Filters applied to both periods, all ANDed. | |
| siteUrl | No | Property like https://www.example.com/ or sc-domain:example.com. Omit if the account has exactly one property. | |
| rowLimit | No | Rows fetched per period (1-25000, default 2000). | |
| dataState | No | all (fresher, partial) or final (default). | |
| dateRange | No | Preset applied to the current window (previous window is derived); default LAST_30_DAYS. | |
| startDate | No | YYYY-MM-DD current-window start (with endDate). Overrides dateRange. | |
| dimensions | No | Matching dimensions across periods: query, page, device, country, searchAppearance. Default ['query']. | |
| baselineEndDate | No | YYYY-MM-DD baseline end (with baselineStartDate). | |
| baselineStartDate | No | YYYY-MM-DD baseline start (with baselineEndDate), e.g. the same window last year. Default: the window right before the current one. |