Compare periods
compare_periodsCompare a client's own numbers in two periods from Go Shift's stored daily history: spend, results, cost per result, ROAS, CPM, CTR, CPC, in total and per platform, and whether each difference is real (at least 15% with enough results or clicks in both periods) or too small or too thin to call. compare_to: previous (the same number of days before, default), last_year (same dates a year earlier), hijri (the same Hijri dates a year earlier: use it for Ramadan, the Eids and Hajj, which move about 11 days a year), or custom (compare_start, compare_end). Call it before you explain a drop or a rise, recommend a budget change, or plan for a season: the differences it returns are facts, and it lists the seasons that overlap each period as context, not as causes. If a period isn't stored it says so and gives no numbers: never estimate them. Free (no usage balance).
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": {
"folder": "<folder>"
},
"name": "compare_periods"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| folder | Yes | Client folder name. | |
| account | No | One ad account of the client (ID or name). Default: all its accounts. | |
| end_date | No | Period A end, YYYY-MM-DD. Default: yesterday. | |
| compare_to | No | Default previous. | |
| start_date | No | Period A start, YYYY-MM-DD. Default: the last 7 finished days. | |
| compare_end | No | Only for compare_to=custom. | |
| compare_start | No | Only for compare_to=custom. |