retention_curve
Compute weekly retention curves from a CSV by tracking users with a specified value event over weeks, dropping low-sample weeks to reveal where retention stabilizes.
Instructions
Weekly retention: share of users with a value event in week N.
Only users old enough to have reached week N count toward it, and weeks with fewer than five of them are dropped rather than reported as noise. Where the curve flattens is the retention that holds.
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": {
"csv_path": "<csv_path>",
"value_event": "<value_event>"
},
"name": "retention_curve"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| csv_path | Yes | ||
| max_weeks | No | ||
| value_event | Yes |