Analytics retention
analytics_retentionUse when you need what share of users come back. Returns cohort retention by day, week, or month. Pass event to switch to event-based retention. Synthetic demo for agentanalytics-demo. Sign in for your 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) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No | ||
| type | No |