hermosodocs

mixpanel_retention

Mixpanel retention cohorts read-only

Area: PRODUCT ANALYTICS: PostHog · Mixpanel · Amplitude · Ad campaign management. Generated from the running MCP server, like the rest of the tool 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

ParameterTypeDescription
fromDatestringYYYY-MM-DD (default 30 days ago)
toDatestringYYYY-MM-DD (default today)
retentionType"birth" | "compounded""birth" = cohort by first occurrence of bornEvent; "compounded" = anyone active
bornEventstringthe event that puts someone into the cohort — REQUIRED by Mixpanel when retentionType is "birth", which is the default
eventstringthe returning event; omitted means any event
unit"day" | "week" | "month"the interval unit (default day)
intervalnumberthe 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)
intervalCountnumberHOW MANY buckets to return (default 1). A "0th" bucket is always included for events inside the first interval
bornWherestringa Mixpanel segmentation expression filtering who ENTERS the cohort (the born event)
wherestringa Mixpanel segmentation expression filtering the RETURNING event
onstringa property expression to segment the returning event on — this is what breaks a retention curve down by e.g. plan or platform
limitnumbertop N segmentation values; does nothing unless "on" is set
unboundedRetentionbooleanaccumulate 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.

All 759 Ad campaign management tools · tools.json