analytics_retention
Cohort retention analysis — track what % of users return over time. By default uses session-based retention (any return visit counts). Pass 'event' to switch to event-based retention. Anonymous preview is limited to agentanalytics-demo synthetic read-only data; sign in for your own projects.
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": {
"project": "<project>"
},
"name": "analytics_retention"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| event | No | First-seen event filter (e.g. signup). Switches to event-based retention. | |
| period | No | Cohort grouping period | week |
| cohorts | No | Number of cohort periods (max: day=30, week=12, month=12) | |
| project | Yes | Project name | |
| returning_event | No | What counts as 'returned' (defaults to same as event) |