Compare periods
compare_periodsCompare two date ranges using the Search Console totals for a property (no dimension grouping). Reports both API metric objects. Differences are labeled as derived from those returned numbers. Omit compare dates to use the previous window of the same length.
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>"
},
"name": "compare_periods"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| device | No | ||
| country | No | ||
| endDate | No | ||
| siteUrl | Yes | ||
| startDate | No | ||
| searchType | No | ||
| compareEndDate | No | ||
| compareStartDate | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No |