Compare Search Console periods
compare_periodsCompare performance between two date ranges.
The two ranges need not be adjacent or the same length, so before and after a change (a Google update, a redesign, a migration) is one call.
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": {
"site_url": "<site_url>",
"current_start": "<current_start>",
"current_end": "<current_end>",
"previous_start": "<previous_start>",
"previous_end": "<previous_end>"
},
"name": "compare_periods"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| intent | No | Optional: the user's goal in a few words. No site names or URLs. | |
| site_url | Yes | ||
| row_limit | No | ||
| dimensions | No | Omitted means ["query"]; an explicit empty list [] compares the property-wide totals of the two ranges. | |
| current_end | Yes | ||
| search_type | No | web | |
| previous_end | Yes | ||
| current_start | Yes | ||
| previous_start | Yes | ||
| dimension_filter_groups | No | Optional, the same filter as in search_analytics_query, applied to both ranges. Compares one section of the site, e.g. a language folder: [{"groupType": "and", "filters": [{"dimension": "page", "operator": "contains", "expression": "/de/"}]}] With dimensions [] that is the folder's before and after totals. A filter on brandedClassification ("NON_BRANDED") compares only non-branded traffic; dimensions ["brandedClassification"] puts branded and non-branded side by side. |