Compare two periods (winners and losers)
compare_periodsCompare pages or queries between two periods to surface the biggest declines, gains, new and lost entries. Use it to investigate traffic drops, find decaying content to refresh, and verify the impact of changes.
Instructions
Compares pages or queries between the current period and the previous period (or the same period last year) and lists the biggest declines, gains, new entries and lost entries. Use it to investigate traffic drops, find decaying content to refresh, and confirm the effect of changes.
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": "compare_periods"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| days | No | Length of the period in days, ending on the latest day with final data. Default 28. | |
| site | No | Search Console property, e.g. "sc-domain:example.com", "https://www.example.com/", or just "example.com" (matched to your properties). Optional when you have one property or GSC_DEFAULT_SITE is set. | |
| limit | No | Maximum rows to return. Default 15. | |
| device | No | ||
| metric | No | Rank changes by this metric. Default "clicks". | |
| country | No | ISO 3166-1 alpha-3 country code, e.g. "USA", "GBR". | |
| endDate | No | End date (YYYY-MM-DD, Pacific Time). Defaults to the latest day with final data (usually 2-3 days ago). | |
| compareTo | No | Default "previous". | |
| dimension | No | Default "page". | |
| pageRegex | No | Only pages whose URL matches this RE2 regex, e.g. "/landing/". | |
| startDate | No | Start date (YYYY-MM-DD, Pacific Time). Overrides days. Data goes back about 16 months. | |
| queryRegex | No | Only queries matching this RE2 regex, e.g. "(?i)pricing|cost". | |
| searchType | No | Result type. Default "web". | |
| excludePageRegex | No | Drop pages whose URL matches this RE2 regex. | |
| excludeQueryRegex | No | Drop queries matching this RE2 regex. Use it to exclude branded queries, e.g. "(?i)acme|acmecorp". |