# Hermoso: mixpanel_retention · Hermoso developer docs

> Machine-readable twin of https://hermoso.ai/docs/reference/ads/mixpanel_retention/. Generated from the shipped page. Do not edit by hand.
> Full agent guide: https://hermoso.ai/llms.txt · MCP: https://app.hermoso.ai/mcp

[Docs](https://hermoso.ai/docs/) / [Tool reference](https://hermoso.ai/docs/reference/) / [Ad campaign management](https://hermoso.ai/docs/reference/ads/) / mixpanel_retention

# `mixpanel_retention`

Mixpanel retention cohorts read-only

Area: PRODUCT ANALYTICS: PostHog · Mixpanel · Amplitude · [Ad campaign management](https://hermoso.ai/docs/reference/ads/). Generated from the running MCP server, like the rest of the [tool reference](https://hermoso.ai/docs/reference/).

## Description

MIXPANEL RETENTION — how many of the people who did a first thing came back and did another, cohorted by day / week / month. This endpoint is FULLY SUPPORTED, unlike segmentation and funnels, which Mixpanel has put in maintenance mode — so it is the one typed Mixpanel report to reach for first. retentionType "birth" cohorts people by their FIRST occurrence of bornEvent (new-user retention, and Mixpanel's DEFAULT); "compounded" counts anyone active. Warning: MIXPANEL REQUIRES bornEvent WHENEVER retentionType IS "birth", AND BIRTH IS THE DEFAULT — so a call with neither is refused HERE, for free, rather than spending one of the sixty hourly queries on their 400; use list_mixpanel_events first to name a real event. TWO FILTERS, NOT ONE: bornWhere filters who ENTERS the cohort, where filters the RETURNING event. And interval is the WIDTH of each bucket while intervalCount is HOW MANY of them — different knobs. Dates are YYYY-MM-DD and BOTH ENDS ARE INCLUSIVE, resolved in the PROJECT's timezone (UTC unless its owner changed it) rather than in yours. 60 queries/hour across the whole Query API (5 concurrent) — the tightest budget of any connector here, so widen a range rather than looping over days. Read-only, 0 credits.

## Parameters

Parameter Type Description

`fromDate` `string` YYYY-MM-DD (default 30 days ago)

`toDate` `string` YYYY-MM-DD (default today)

`retentionType` `"birth" | "compounded"` "birth" = cohort by first occurrence of bornEvent; "compounded" = anyone active

`bornEvent` `string` the event that puts someone into the cohort — REQUIRED by Mixpanel when retentionType is "birth", which is the default

`event` `string` the returning event; omitted means any event

`unit` `"day" | "week" | "month"` the interval unit (default day)

`interval` `number` the WIDTH of each bucket, in DAYS. Mixpanel cannot take this together with "unit" — it answers HTTP 500 to the pair, so pass one or the other (default: interval 1 day)

`intervalCount` `number` HOW MANY buckets to return (default 1). A "0th" bucket is always included for events inside the first interval

`bornWhere` `string` a Mixpanel segmentation expression filtering who ENTERS the cohort (the born event)

`where` `string` a Mixpanel segmentation expression filtering the RETURNING event

`on` `string` a property expression to segment the returning event on — this is what breaks a retention curve down by e.g. plan or platform

`limit` `number` top N segmentation values; does nothing unless "on" is set

`unboundedRetention` `boolean` accumulate right-to-left, so day N means "retained on day N or any day after"

## Example call

Every required parameter is shown, filled from the schema where it gives a value and otherwise with a placeholder naming the type. Replace the placeholders with real values. The same call works on the MCP server, the CLI and `POST https://app.hermoso.ai/v1/tools/mixpanel_retention`.

**MCP** (`tools/call`)

`{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"mixpanel_retention","arguments":{}}}`
**CLI**

`hermoso call mixpanel_retention --json '{}'`

## Credits

Credits are spent only on two things: running an AI model (image, video, voice, text, planning, post-production) and Ad Spy research. See [Credits & costs](https://hermoso.ai/docs/credits/).

## Related tools

- [list_mixpanel_events](https://hermoso.ai/docs/reference/ads/list_mixpanel_events/) List Mixpanel events (or one event’s properties)
- [mixpanel_insights](https://hermoso.ai/docs/reference/ads/mixpanel_insights/) Read a saved Mixpanel report
- [mixpanel_segmentation](https://hermoso.ai/docs/reference/ads/mixpanel_segmentation/) Mixpanel event segmentation (maintenance mode)
- [posthog_persons](https://hermoso.ai/docs/reference/ads/posthog_persons/) Look up people in PostHog
- [mixpanel_funnel](https://hermoso.ai/docs/reference/ads/mixpanel_funnel/) Read a saved Mixpanel funnel (maintenance mode)
- [list_posthog_session_recordings](https://hermoso.ai/docs/reference/ads/list_posthog_session_recordings/) List PostHog session replays
- [posthog_insight](https://hermoso.ai/docs/reference/ads/posthog_insight/) Read a saved PostHog insight (funnel / retention / trend)
- [amplitude_segmentation](https://hermoso.ai/docs/reference/ads/amplitude_segmentation/) Amplitude event segmentation
- [posthog_query](https://hermoso.ai/docs/reference/ads/posthog_query/) Ask PostHog a question in HogQL
- [amplitude_funnel](https://hermoso.ai/docs/reference/ads/amplitude_funnel/) Amplitude funnel (conversion + drop-off)

[All 759 Ad campaign management tools](https://hermoso.ai/docs/reference/ads/) · [tools.json](https://hermoso.ai/docs/reference/tools.json)
