Compare two periods
compare_periodsFind gaining and declining queries, pages, countries, devices, or search appearances by comparing a selected period with the previous period or same period last year.
Instructions
Biggest winners and losers between this period and the previous one (or the same period last year), by query, page, country, device or search appearance.
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 |
|---|---|---|---|
| site | No | e.g. "example.com" or any URL on it. Optional if there is one property. | |
| type | No | Default web | |
| limit | No | Maximum rows to return | |
| range | No | last7d, last28d (default), last3m, last6m, last12m, last16m, or "2026-01-01..2026-01-31" | |
| filter | No | e.g. "page contains /blog/; country equals usa". Ops: equals, notEquals, contains, notContains, includingRegex, excludingRegex | |
| against | No | previous | |
| dimension | No | page |