Compare two periods
compare_periodsCompares every KPI across two periods side by side, showing percent change and improved/worse/flat status; defaults to the selected period versus the equal-length period before it.
Instructions
Every KPI side by side for two periods with % change and improved/worse/flat. Defaults to the chosen period vs. the equal-length period before it, e.g. this quarter vs. last.
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 |
|---|---|---|---|
| period | No | Time window: last_30_days, last_90_days (default), this_month, last_month, this_quarter, last_quarter, year_to_date, all, YYYY-MM, or YYYY-MM-DD..YYYY-MM-DD | |
| service | No | Limit to one service/component, e.g. 'checkout' | |
| baseline | No | Baseline window (default: the equal-length period immediately before) |