analyze_cohorts
Calculate cohort sizes and month-level retention from user event records. Group users by earliest event month to measure acquisition cohorts and retention.
Instructions
Calculate cohort sizes and month-level retention from user event records.
Expected fields: user_id, event_date/date, and event_name. The earliest valid event month for each user is treated as that user's acquisition cohort.
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": {
"user_events": "<user_events>"
},
"name": "analyze_cohorts"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| user_events | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |