rybbit_compare_periods
Compare site overview metrics between a selected period and the equal-length preceding period, showing current values, previous values, and absolute and percent changes.
Instructions
Compare site overview metrics between a date range and the equal-length preceding period. Returns current values, previous values, and per-metric absolute and percent changes (percentChange is null when the previous value was 0).
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": {
"siteId": "<siteId>",
"startDate": "<startDate>",
"endDate": "<endDate>"
},
"name": "rybbit_compare_periods"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| siteId | Yes | Site ID or identifier | |
| endDate | Yes | Current period end (YYYY-MM-DD) | |
| filters | No | JSON array of filter objects applied to both periods | |
| timeZone | No | IANA timezone identifier (e.g., America/New_York) | |
| startDate | Yes | Current period start (YYYY-MM-DD) |