User Retention
rybbit_get_retentionAnalyze user retention cohorts to see how many users return over selected time periods, with optional filters, dates, and timezone settings.
Instructions
Get user retention cohort analysis showing how many users return over time periods.
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>"
},
"name": "rybbit_get_retention"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| siteId | Yes | Site ID (numeric ID or domain identifier) | |
| endDate | No | End date in ISO format (YYYY-MM-DD) | |
| filters | No | Array of filters. Example: [{parameter:'browser',type:'equals',value:['Chrome']},{parameter:'country',type:'equals',value:['US','DE']}] | |
| timeZone | No | IANA timezone (e.g., Europe/Prague). Default: UTC | |
| startDate | No | Start date in ISO format (YYYY-MM-DD) | |
| pastMinutesEnd | No | Alternative to dates: minutes ago end (default 0 = now) | |
| pastMinutesStart | No | Alternative to dates: minutes ago start (e.g., 60 = last hour) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | Retention cohorts; periods are percentages per period, null = period not reached yet | |
| mode | No | ||
| note | No | Caveat about this response, e.g. how many rows were returned and how to get the rest | |
| truncated | No | True when rows were dropped to keep the response under the size cap |