Get Retention
get_retentionGet user retention cohort data from Mixpanel. Shows how many users return over time. Example: get_retention({ from_date: "2024-01-01", to_date: "2024-01-31", _apiKey: "your_api_secret" })
Example tool call
This call uses example arguments supplied in the tool’s input schema.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"_apiKey": "your-mixpanel-api-key",
"to_date": "2024-01-31",
"from_date": "2024-01-01"
},
"name": "get_retention"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| _apiKey | Yes | Mixpanel API secret (used for Basic auth) | |
| to_date | Yes | End date in YYYY-MM-DD format | |
| from_date | Yes | Start date in YYYY-MM-DD format |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||