# Hermoso: amplitude_segmentation · Hermoso developer docs

> Machine-readable twin of https://hermoso.ai/docs/reference/ads/amplitude_segmentation/. 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/) / amplitude_segmentation

# `amplitude_segmentation`

Amplitude event segmentation 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

AMPLITUDE EVENT SEGMENTATION — an event over time, with filters and group-bys. metric is uniques / totals / pct_dau / average / histogram / sums / value_avg / formula (and "formula" additionally REQUIRES `formula`, or Amplitude refuses it). Dates take YYYY-MM-DD or YYYYMMDD. AMPLITUDE'S RATE LIMIT IS COST-BASED, not per-request: cost = days × conditions × query type, 1000 per 5-minute window, so one very wide query can exhaust the budget on its own — the fix for a 429 here is to NARROW the range or the conditions, not to retry. AN EMPTY RESULT IS A VALID ANSWER, not a failure: a new or low-traffic Amplitude project genuinely has no data, and reporting that as a broken connection sends the user to fix something that is working. Read-only, 0 credits.

## Parameters

Parameter Type Description

`events` `object[]` one or two event specs: a plain name, or {eventType, filters:[{subprop_type,subprop_key,subprop_op,subprop_value}], groupBy:[…]}

`event` `string` shorthand for a single event name

`metric` `"uniques" | "totals" | "pct_dau" | "average" | "histogram" | "sums" | "value_avg" | "formula"` default uniques

`formula` `string` required when metric is "formula"

`start` `string` YYYYMMDD or YYYY-MM-DD (default 30 days ago)

`end` `string` YYYYMMDD or YYYY-MM-DD (default today)

`interval` `number` -300000 realtime, -3600000 hourly, 1 daily, 7 weekly, 30 monthly

`groupBy` `string` user property or event property to break the series down by, e.g. gp:utm_campaign or country

`groupBy2` `string` a SECOND group-by (Amplitude's g2), e.g. groupBy gp:utm_campaign + groupBy2 country

`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

`limit` `number` ≤1000

## 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_segmentation`.

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

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

`hermoso call amplitude_segmentation --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)
- [amplitude_funnel](https://hermoso.ai/docs/reference/ads/amplitude_funnel/) Amplitude funnel (conversion + drop-off)
- [mixpanel_funnel](https://hermoso.ai/docs/reference/ads/mixpanel_funnel/) Read a saved Mixpanel funnel (maintenance mode)
- [amplitude_retention](https://hermoso.ai/docs/reference/ads/amplitude_retention/) Amplitude retention
- [mixpanel_segmentation](https://hermoso.ai/docs/reference/ads/mixpanel_segmentation/) Mixpanel event segmentation (maintenance mode)
- [amplitude_active_users](https://hermoso.ai/docs/reference/ads/amplitude_active_users/) Amplitude active / new users
- [mixpanel_retention](https://hermoso.ai/docs/reference/ads/mixpanel_retention/) Mixpanel retention cohorts
- [amplitude_user_activity](https://hermoso.ai/docs/reference/ads/amplitude_user_activity/) One person’s Amplitude activity stream
- [mixpanel_insights](https://hermoso.ai/docs/reference/ads/mixpanel_insights/) Read a saved Mixpanel report
- [list_amplitude_events](https://hermoso.ai/docs/reference/ads/list_amplitude_events/) Amplitude taxonomy (declared events and properties)

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