mmp_save_cohort_config
Save one cohort config for a specific app under one MMP connection. WRITE — call is IMMEDIATE; the new config drives the next scheduled cohort pull. kpis should be picked from the app's Sending Events — call mmp_get_state first and inspect each metadata row's event_mappings / mapped_events for valid event names. Typing a kpi that the AF app doesn't send silently returns zero rows. Call only for an explicit user-requested config change; no mutation receipt is advertised. Mirror of Meta MCP mmp_save_cohort_config.
REQUIRED: connection_id (str — UUID from mmp_get_state), app_ref (str — the AF app reference, e.g. "ai.hailuo.video" for Android, "id6741675037" for iOS). Optional config fields (any subset; unset = leave existing value alone): cohort_type, min_cohort_size, selected_source_refs (list[str]), preferred_timezone, preferred_currency, partial_data, aggregation_type, period_filters (list[int]), groupings (list[str]), kpis (list[str]). EXAMPLE: mmp_save_cohort_config({"connection_id": "", "app_ref": "ai.hailuo.video", "kpis": ["ug_new_user_payment"], "selected_source_refs": ["tiktokglobal_int"]})
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kpis | No | ||
| app_ref | Yes | ||
| groupings | No | ||
| cohort_type | No | ||
| partial_data | No | ||
| connection_id | Yes | ||
| period_filters | No | ||
| min_cohort_size | No | ||
| aggregation_type | No | ||
| preferred_currency | No | ||
| preferred_timezone | No | ||
| selected_source_refs | No |