Compare CTR between two periods
compare_ctr_periodsCompares clicks, impressions and CTR of two equal-length, non-overlapping periods whose totals you provide, for example from Google Search Console. It splits the click change into an impressions component and a CTR component and checks the dates against known Search Console reporting issues, withholding impression-based figures for affected dates. Use it when you have totals for two periods; for a single what-if, project_clicks_at_ctr and impressions_needed_for_clicks fit better. The result does not establish why CTR changed; the warning NO_AI_CAUSATION is always included.
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": {
"prior": "<prior>",
"current": "<current>"
},
"name": "compare_ctr_periods"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| prior | Yes | Totals of the earlier period, for example from the Search Console Performance report. | |
| source | No | Where the numbers come from: gsc_ui_export (Search Console Performance report or its export), bulk_export (BigQuery bulk export), api (Search Console API) or other. Some reporting issues apply to one source only. | |
| current | Yes | Totals of the later period, for example from the Search Console Performance report. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| periods | Yes | ||
| versions | Yes | ||
| warnings | Yes | ||
| anomalies | Yes | ||
| comparison | Yes | ||
| decomposition | Yes |