amplitude_retention
Amplitude retention read-only
Description
AMPLITUDE RETENTION — of the people who did startEvent, how many came back and did returnEvent. The two magic values are "_new" (first-time users) and "_active" (any active user), which is what makes "new-user retention" a single call. retentionMode is n-day / bracket / rolling, and "bracket" additionally REQUIRES `brackets` — it is refused without them rather than silently switched to another mode, because a retention curve computed under a different definition than the one asked for is a wrong answer that looks right. Read-only, 0 credits.
Parameters
| Parameter | Type | Description |
|---|---|---|
startEvent | string | "_new" (default) or an event name |
returnEvent | string | "_active" (default) or an event name |
start | string | YYYYMMDD or YYYY-MM-DD (default 30 days ago) |
end | string | YYYYMMDD or YYYY-MM-DD (default today) |
retentionMode | "n-day" | "bracket" | "rolling" | n-day, bracket (needs brackets) or rolling |
brackets | number[] | required when retentionMode is "bracket" |
interval | number | 1 daily, 7 weekly, 30 monthly |
groupBy | string | ONE property to group by |
segments | object[] | FILTER to only these users (Amplitude's segment `s`): [{prop:'gp:utm_campaign', op:'is', values:['summer']}]. op is one of is, is not, contains, does not contain, less, less or equal, greater, greater or equal, set is, set is not. Custom user properties are gp:<name>; built-ins are country, city, region, platform, os, device_type, version, language, paying; prop userdata_cohort + a cohort id filters to a behavioural cohort. A "who performed" condition is {type:'event', event_type, op:'>=', value:1, time_type:'rolling', time_value:30} (did it at least once in the last 30 days); symbol operators only. |
segments[].prop | string | user property to filter on: built-in (country, platform), gp:<name> for custom, or userdata_cohort |
segments[].op | string | property operator, e.g. is, is not, contains; symbol (>=) on a who-performed condition |
segments[].values | string[] | values the property must match, e.g. ["summer"] |
segments[].type | string | 'event' for a who-performed condition; omit for a property filter |
segments[].event_type | string | event name for a who-performed condition |
segments[].value | number | who-performed count threshold; default 1 (at least once) |
segments[].time_type | string | rolling (the only accepted value; default) |
segments[].time_value | number | who-performed look-back in days; default 30 |
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/amplitude_retention.
MCP (tools/call)
{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"amplitude_retention","arguments":{}}}
CLI
hermoso call amplitude_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.
Related tools
amplitude_funnelAmplitude funnel (conversion + drop-off)amplitude_active_usersAmplitude active / new usersamplitude_segmentationAmplitude event segmentationamplitude_user_activityOne person’s Amplitude activity streamlist_mixpanel_eventsList Mixpanel events (or one event’s properties)list_amplitude_eventsAmplitude taxonomy (declared events and properties)mixpanel_funnelRead a saved Mixpanel funnel (maintenance mode)amplitude_chartRead a saved Amplitude chartmixpanel_segmentationMixpanel event segmentation (maintenance mode)list_amplitude_annotationsList Amplitude chart annotations