Skip to content

:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.

feat(cohorts): steer MCP cohort tools to populate from queries (#61122)

Georgiy Tarasov022023a0ba66
diff --git a/ee/hogai/eval/sandboxed/cohorts/eval_cohort_from_query.py b/ee/hogai/eval/sandboxed/cohorts/eval_cohort_from_query.py
new file mode 100644
index 000000000000..8c95c5f4827a
--- /dev/null
+++ b/ee/hogai/eval/sandboxed/cohorts/eval_cohort_from_query.py
@@ -0,0 +1,71 @@
+"""Cohort-from-query eval cases for the sandboxed agent.
+
+Each case asks the agent to turn a SQL query or a product-analytics insight
+into a static cohort. The agent should populate the cohort *from the query*
+(``cohorts-create`` with ``is_static: true`` + ``query``, or a ``query`` set
+via ``cohorts-partial-update``) rather than materializing the actor list and
+looping ``cohorts-add-persons-to-static-cohort-partial-update`` over the UUIDs
+— the batching path caps out on large sets and is the failure mode this guards.
+
+Runs against the Hedgebox demo team, which already has persons and ``$pageview``
+events, so no per-case seeding is needed: the scorers grade tool usage, not the
+resulting cohort size.
+
+To run::
+
+ pytest ee/hogai/eval/sandboxed/cohorts/eval_cohort_from_query.py
+"""
+
+from __future__ import annotations
+
+from ee.hogai.eval.sandboxed.base import SandboxedPublicEval
+from ee.hogai.eval.sandboxed.cohorts.scorers import (
+ COHORTS_ADD_PERSONS_TOOL,
+ CohortFromQueryUsed,
+ QueryTargetsActorColumn,
+)
+from ee.hogai.eval.sandboxed.config import SandboxedEvalCase
+from ee.hogai.eval.sandboxed.scorers import ExitCodeZero, NoToolCall
+
+
+async def eval_cohort_from_query(sandboxed_demo_data, pytestconfig, posthog_client, mcp_mode):
+ cases = [
+ SandboxedEvalCase(
+ name="cohort_from_sql_query",
+ prompt=(
+ "Create a static cohort called 'Power users (snapshot)' containing every person "
+ "who has triggered more than 10 $pageview events. I already think of this as a SQL "
+ "query — make it a one-time snapshot, not a dynamic cohort."
+ ),
+ ),
+ SandboxedEvalCase(
+ name="cohort_from_trends_insight",
+ prompt=(
+ "Save the people behind my pageview trend over the last 7 days as a static cohort "
+ "named 'Active last 7 days' — i.e. everyone who did a $pageview in the last week. "
+ "It should be a fixed snapshot."
+ ),
+ ),
+ SandboxedEvalCase(
+ name="cohort_from_large_query_no_batching",
+ prompt=(
+ "I have a SQL query that returns several hundred users (everyone who did a $pageview) "
+ "and I want them all saved as a static cohort named 'Pageviewers snapshot'. Save the "
+ "whole set as a one-time snapshot — do not add them one by one."
+ ),
+ ),
+ ]
+
+ await SandboxedPublicEval(
+ experiment_name=f"sandboxed-cohorts-from-query-{mcp_mode}",
+ cases=cases,
+ scorers=[
+ ExitCodeZero(),
+ CohortFromQueryUsed(),
+ QueryTargetsActorColumn(),
+ NoToolCall(forbidden={COHORTS_ADD_PERSONS_TOOL}, name="no_uuid_batching"),
+ ],
+ pytestconfig=pytestconfig,
+ sandboxed_demo_data=sandboxed_demo_data,
+ posthog_client=posthog_client,
+ )
diff --git a/ee/hogai/eval/sandboxed/cohorts/scorers.py b/ee/hogai/eval/sandboxed/cohorts/scorers.py
new file mode 100644
index 000000000000..5a03167745b7
--- /dev/null
+++ b/ee/hogai/eval/sandboxed/cohorts/scorers.py
@@ -0,0 +1,163 @@
+"""Scorers for the cohort-creation sandboxed evals.
+
+The behavior under test: when asked to turn a SQL query or a product-analytics
+insight into a (static) cohort, the agent should populate the cohort *from the
+query* — i.e. call ``cohorts-create`` (or ``cohorts-partial-update``) with
+``is_static: true`` and a ``query`` — instead of materializing the actor list
+itself and looping ``cohorts-add-persons-to-static-cohort-partial-update`` over
+the UUIDs. The query path runs server-side with no row limit; the batching path
+caps out and is the failure mode this eval guards against.
+
+All scorers build a single ``LogParser`` from ``output["raw_log"]`` so they work
+identically in ``mcp_mode=tools`` (per-tool MCP) and ``mcp_mode=cli`` (single
+``exec`` wrapper) — the parser handles exec-unwrapping.
+"""
+
+from __future__ import annotations
+
+import re
+from typing import Any
+
+from braintrust import Score
+from braintrust_core.score import Scorer
+
+from ee.hogai.eval.sandboxed.log_parser import LogParser
+
+__all__ = [
+ "COHORTS_ADD_PERSONS_TOOL",
+ "COHORTS_CREATE_TOOL",
+ "COHORTS_UPDATE_TOOL",
+ "CohortFromQueryUsed",
+ "QueryTargetsActorColumn",
+]
+
+COHORTS_CREATE_TOOL = "cohorts-create"
+COHORTS_UPDATE_TOOL = "cohorts-partial-update"
+COHORTS_ADD_PERSONS_TOOL = "cohorts-add-persons-to-static-cohort-partial-update"
+
+# Column names ``print_cohort_hogql_query`` accepts for actor extraction, in
+# priority order — keep in sync with posthog/models/cohort/util.py.
+ID_COLUMN_NAMES: tuple[str, ...] = ("person_id", "actor_id", "id", "distinct_id")
+
+
+def _parser_for(output: dict[str, Any] | None) -> LogParser | None:
+ if not output:
+ return None
+ raw_log = output.get("raw_log")
+ if not raw_log:
+ return None
+ return LogParser(raw_log, initial_prompt=output.get("prompt", "") or "")
+
+
+def _is_truthy(value: Any) -> bool:
+ if isinstance(value, str):
+ return value.strip().lower() in ("true", "1", "yes")
+ return bool(value)
+
+
+def _query_population_calls(parser: LogParser | None) -> list[dict[str, Any]]:
+ """Successful create/update calls that populate a cohort from a query.
+
+ A create must be static; an update against an existing static cohort does
+ not re-send ``is_static``, so for updates we only require a non-empty
+ ``query`` dict.
+ """
+ if parser is None:
+ return []
+ calls: list[dict[str, Any]] = []
+ for tool_name in (COHORTS_CREATE_TOOL, COHORTS_UPDATE_TOOL):
+ for call in parser.get_tool_calls(tool_name):
+ if call.is_error or not isinstance(call.input, dict):
+ continue
+ query = call.input.get("query")
+ if not isinstance(query, dict) or not query:
+ continue
+ if tool_name == COHORTS_CREATE_TOOL and not _is_truthy(call.input.get("is_static")):
+ continue
+ calls.append(call.input)
+ return calls
+
+
+class CohortFromQueryUsed(Scorer):
+ """Floor scorer: did the agent populate a cohort from a query?
+
+ Scores 1.0 when at least one successful ``cohorts-create`` (with
+ ``is_static`` truthy) or ``cohorts-partial-update`` carried a non-empty
+ ``query``. Scores 0.0 otherwise — which catches the regression where the
+ agent creates an empty static cohort and tries to batch UUIDs in by hand.
+ """
+
+ def __init__(self, *, name: str = "cohort_from_query_used"):
+ self._label = name
+
+ def _name(self) -> str:
+ return self._label
+
+ async def _run_eval_async(self, output, expected=None, **kwargs):
+ return self._evaluate(output)
+
+ def _run_eval_sync(self, output, expected=None, **kwargs):
+ return self._evaluate(output)
+
+ def _evaluate(self, output: dict | None) -> Score:
+ parser = _parser_for(output)
+ if parser is None:
+ return Score(name=self._name(), score=None, metadata={"reason": "No raw log to parse"})
+ calls = _query_population_calls(parser)
+ if not calls:
+ return Score(
+ name=self._name(),
+ score=0.0,
+ metadata={"reason": "Agent never created/updated a static cohort from a query"},
+ )
+ kinds = [c.get("query", {}).get("kind") for c in calls]
+ return Score(name=self._name(), score=1.0, metadata={"query_kinds": kinds})
+
+
+class QueryTargetsActorColumn(Scorer):
+ """Did the populating query expose an actor id the backend can resolve?
+
+ A HogQL query must select one of ``person_id`` / ``actor_id`` / ``id`` /
+ ``distinct_id`` (or read from the ``events`` / ``persons`` tables, which
+ resolve the actor automatically); otherwise the cohort population fails
+ with "Could not find a person_id, actor_id, id, or distinct_id column".
+ ActorsQuery payloads always resolve, so they pass. Short-circuits to
+ ``None`` when no query-population call exists so the floor scorer carries
+ the negative signal.
+ """
+
+ def __init__(self, *, name: str = "query_targets_actor_column"):
+ self._label = name
+
+ def _name(self) -> str:
+ return self._label
+
+ async def _run_eval_async(self, output, expected=None, **kwargs):
+ return self._evaluate(output)
+
+ def _run_eval_sync(self, output, expected=None, **kwargs):
+ return self._evaluate(output)
+
+ def _evaluate(self, output: dict | None) -> Score:
+ parser = _parser_for(output)
+ calls = _query_population_calls(parser)
+ if not calls:
+ return Score(name=self._name(), score=None, metadata={"reason": "No query-population call"})
+ last_query = calls[-1].get("query", {})
+ kind = last_query.get("kind")
+ if kind != "HogQLQuery":
+ # ActorsQuery / InsightActorsQuery resolve the actor server-side.
+ return Score(name=self._name(), score=1.0, metadata={"kind": kind})
+ sql = str(last_query.get("query", "")).lower()
+ # Word-boundary match so a column like ``activity_id`` doesn't count as a bare ``id``.
+ if (
+ any(re.search(rf"\b{col}\b", sql) for col in ID_COLUMN_NAMES)
+ or "from events" in sql
+ or "from persons" in sql
+ ):
+ return Score(name=self._name(), score=1.0, metadata={"kind": kind})
+ return Score(
+ name=self._name(),
+ score=0.0,
+ metadata={"reason": "HogQL query exposes no resolvable actor column", "sql": sql[:300]},
+ )
diff --git a/products/cohorts/mcp/tools.yaml b/products/cohorts/mcp/tools.yaml
index 5889ab2e97b7..1ed793c395c1 100644
--- a/products/cohorts/mcp/tools.yaml
+++ b/products/cohorts/mcp/tools.yaml
@@ -28,8 +28,15 @@ tools:
destructive: false
idempotent: false
title: Add persons to static cohort
- description: |
+ description: >-
Add persons to a static cohort by their UUIDs. Only works for static cohorts (is_static: true).
+
+
+ Intended for small, ad-hoc additions — pass at most ~20 person UUIDs per call. To build or grow a static
+ cohort from a larger set, do NOT loop this tool over many UUIDs; instead create the cohort from a query
+ ('cohorts-create' with 'is_static: true' and a 'query'), or add to an existing static cohort by setting a
+ 'query' on it via 'cohorts-partial-update'. The server then runs the query and inserts every matching person
+ in a single call, with no row limit.
cohorts-all-activity-retrieve:
operation: cohorts_all_activity_retrieve
enabled: false
@@ -47,10 +54,44 @@ tools:
idempotent: false
enrich_url: '{id}'
title: Create cohort
- description: >
- Create a new cohort. For dynamic cohorts, provide 'filters' with AND/OR groups of property conditions
- (person properties, behavioral filters, or cohort references). For static cohorts, set 'is_static: true'
- then use the 'cohorts-add-persons-to-static-cohort-partial-update' tool to add person UUIDs.
+ description: >-
+ Create a cohort (a saved group of persons). Two kinds:
+
+
+ - Dynamic cohort (default): provide 'filters' with AND/OR groups of property conditions (person properties,
+ behavioral filters, or cohort references). Membership is recalculated automatically.
+
+ - Static cohort ('is_static: true'): a fixed snapshot of persons. PREFER populating it from a 'query' (see
+ below) — the server runs the query and inserts every matching person in a single call, with no row limit.
+ Only use 'cohorts-add-persons-to-static-cohort-partial-update' for tiny, ad-hoc additions (up to ~20
+ people).
+
+
+ Populate a static cohort from a query by setting BOTH 'is_static: true' and 'query'. 'query' accepts a
+ HogQLQuery (raw SQL) or an ActorsQuery (the actors behind a product-analytics insight such as trends or
+ funnels). The query MUST expose the person identifier under one of these column names, checked in this
+ order: 'person_id', 'actor_id', 'id', or 'distinct_id'. Selecting from the 'events' or 'persons' tables
+ resolves the actor automatically. If none of those columns is present the call fails with "Could not find a
+ person_id, actor_id, id, or distinct_id column in the query".
+
+
+ ALWAYS validate the query before saving it: run a HogQLQuery through the 'execute-sql' tool, and an
+ ActorsQuery through its matching 'query-*-actors' tool (e.g. 'query-trends-actors',
+ 'query-lifecycle-actors'). Only pass a 'query' that returned successfully — this catches column-name and
+ syntax errors before they fail cohort population.
+
+
+ Example — from SQL (HogQLQuery), alias the id column as person_id:
+
+ {"name": "Power users", "is_static": true, "query": {"kind": "HogQLQuery", "query": "SELECT person_id FROM
+ events WHERE event = '$pageview' GROUP BY person_id HAVING count() > 100"}}
+
+
+ Example — from a product-analytics trends insight (ActorsQuery):
+
+ {"name": "Viewed pricing last 7d", "is_static": true, "query": {"kind": "ActorsQuery", "source": {"kind":
+ "InsightActorsQuery", "source": {"kind": "TrendsQuery", "series": [{"kind": "EventsNode", "event":
+ "$pageview"}], "dateRange": {"date_from": "-7d"}}}}}
exclude_params:
- groups
- deleted
@@ -114,9 +155,19 @@ tools:
idempotent: true
enrich_url: '{id}'
title: Update cohort
- description: >
+ description: >-
Update an existing cohort's name, description, or filters. Changing filters on a dynamic cohort triggers
recalculation. To soft-delete a cohort, set 'deleted: true'.
+
+
+ To add more people to an existing STATIC cohort in bulk, set a 'query' (HogQLQuery or ActorsQuery) on it —
+ the server runs the query and inserts every newly matched person (existing members are skipped), with no row
+ limit. The query must expose the person id under one of these column names, checked in order: 'person_id',
+ 'actor_id', 'id', or 'distinct_id' (selecting from the 'events' or 'persons' tables resolves the actor
+ automatically). Validate the query before saving it — run a HogQLQuery through 'execute-sql' and an
+ ActorsQuery through its matching 'query-*-actors' tool (e.g. 'query-trends-actors') — and only save one that
+ returned successfully. Prefer this over 'cohorts-add-persons-to-static-cohort-partial-update' for anything
+ beyond a handful (~20) of people.
exclude_params:
- groups
- version
diff --git a/services/mcp/schema/generated-tool-definitions.json b/services/mcp/schema/generated-tool-definitions.json
index b0079730bc89..fc8f9d343000 100644
--- a/services/mcp/schema/generated-tool-definitions.json
+++ b/services/mcp/schema/generated-tool-definitions.json
@@ -786,7 +786,7 @@
}
},
"cohorts-add-persons-to-static-cohort-partial-update": {
- "description": "Add persons to a static cohort by their UUIDs. Only works for static cohorts (is_static: true).",
+ "description": "Add persons to a static cohort by their UUIDs. Only works for static cohorts (is_static: true).\n\nIntended for small, ad-hoc additions — pass at most ~20 person UUIDs per call. To build or grow a static cohort from a larger set, do NOT loop this tool over many UUIDs; instead create the cohort from a query ('cohorts-create' with 'is_static: true' and a 'query'), or add to an existing static cohort by setting a 'query' on it via 'cohorts-partial-update'. The server then runs the query and inserts every matching person in a single call, with no row limit.",
"category": "Cohorts",
"feature": "cohorts",
"summary": "Add persons to static cohort",
@@ -800,7 +800,7 @@
}
},
"cohorts-create": {
- "description": "Create a new cohort. For dynamic cohorts, provide 'filters' with AND/OR groups of property conditions (person properties, behavioral filters, or cohort references). For static cohorts, set 'is_static: true' then use the 'cohorts-add-persons-to-static-cohort-partial-update' tool to add person UUIDs.",
+ "description": "Create a cohort (a saved group of persons). Two kinds:\n\n- Dynamic cohort (default): provide 'filters' with AND/OR groups of property conditions (person properties, behavioral filters, or cohort references). Membership is recalculated automatically.\n- Static cohort ('is_static: true'): a fixed snapshot of persons. PREFER populating it from a 'query' (see below) — the server runs the query and inserts every matching person in a single call, with no row limit. Only use 'cohorts-add-persons-to-static-cohort-partial-update' for tiny, ad-hoc additions (up to ~20 people).\n\nPopulate a static cohort from a query by setting BOTH 'is_static: true' and 'query'. 'query' accepts a HogQLQuery (raw SQL) or an ActorsQuery (the actors behind a product-analytics insight such as trends or funnels). The query MUST expose the person identifier under one of these column names, checked in this order: 'person_id', 'actor_id', 'id', or 'distinct_id'. Selecting from the 'events' or 'persons' tables resolves the actor automatically. If none of those columns is present the call fails with \"Could not find a person_id, actor_id, id, or distinct_id column in the query\".\n\nALWAYS validate the query before saving it: run a HogQLQuery through the 'execute-sql' tool, and an ActorsQuery through its matching 'query-*-actors' tool (e.g. 'query-trends-actors', 'query-lifecycle-actors'). Only pass a 'query' that returned successfully — this catches column-name and syntax errors before they fail cohort population.\n\nExample — from SQL (HogQLQuery), alias the id column as person_id:\n{\"name\": \"Power users\", \"is_static\": true, \"query\": {\"kind\": \"HogQLQuery\", \"query\": \"SELECT person_id FROM events WHERE event = '$pageview' GROUP BY person_id HAVING count() > 100\"}}\n\nExample — from a product-analytics trends insight (ActorsQuery):\n{\"name\": \"Viewed pricing last 7d\", \"is_static\": true, \"query\": {\"kind\": \"ActorsQuery\", \"source\": {\"kind\": \"InsightActorsQuery\", \"source\": {\"kind\": \"TrendsQuery\", \"series\": [{\"kind\": \"EventsNode\", \"event\": \"$pageview\"}], \"dateRange\": {\"date_from\": \"-7d\"}}}}}",
"category": "Cohorts",
"feature": "cohorts",
"summary": "Create cohort",
@@ -828,7 +828,7 @@
}
},
"cohorts-partial-update": {
- "description": "Update an existing cohort's name, description, or filters. Changing filters on a dynamic cohort triggers recalculation. To soft-delete a cohort, set 'deleted: true'.",
+ "description": "Update an existing cohort's name, description, or filters. Changing filters on a dynamic cohort triggers recalculation. To soft-delete a cohort, set 'deleted: true'.\n\nTo add more people to an existing STATIC cohort in bulk, set a 'query' (HogQLQuery or ActorsQuery) on it — the server runs the query and inserts every newly matched person (existing members are skipped), with no row limit. The query must expose the person id under one of these column names, checked in order: 'person_id', 'actor_id', 'id', or 'distinct_id' (selecting from the 'events' or 'persons' tables resolves the actor automatically). Validate the query before saving it — run a HogQLQuery through 'execute-sql' and an ActorsQuery through its matching 'query-*-actors' tool (e.g. 'query-trends-actors') — and only save one that returned successfully. Prefer this over 'cohorts-add-persons-to-static-cohort-partial-update' for anything beyond a handful (~20) of people.",
"category": "Cohorts",
"feature": "cohorts",
"summary": "Update cohort",
diff --git a/services/mcp/schema/tool-definitions-all.json b/services/mcp/schema/tool-definitions-all.json
index 4fa787854a77..0210e4d25d5f 100644
--- a/services/mcp/schema/tool-definitions-all.json
+++ b/services/mcp/schema/tool-definitions-all.json
@@ -802,7 +802,7 @@
}
},
"cohorts-add-persons-to-static-cohort-partial-update": {
- "description": "Add persons to a static cohort by their UUIDs. Only works for static cohorts (is_static: true).",
+ "description": "Add persons to a static cohort by their UUIDs. Only works for static cohorts (is_static: true).\n\nIntended for small, ad-hoc additions — pass at most ~20 person UUIDs per call. To build or grow a static cohort from a larger set, do NOT loop this tool over many UUIDs; instead create the cohort from a query ('cohorts-create' with 'is_static: true' and a 'query'), or add to an existing static cohort by setting a 'query' on it via 'cohorts-partial-update'. The server then runs the query and inserts every matching person in a single call, with no row limit.",
"category": "Cohorts",
"feature": "cohorts",
"summary": "Add persons to static cohort",
@@ -816,7 +816,7 @@
}
},
"cohorts-create": {
- "description": "Create a new cohort. For dynamic cohorts, provide 'filters' with AND/OR groups of property conditions (person properties, behavioral filters, or cohort references). For static cohorts, set 'is_static: true' then use the 'cohorts-add-persons-to-static-cohort-partial-update' tool to add person UUIDs.",
+ "description": "Create a cohort (a saved group of persons). Two kinds:\n\n- Dynamic cohort (default): provide 'filters' with AND/OR groups of property conditions (person properties, behavioral filters, or cohort references). Membership is recalculated automatically.\n- Static cohort ('is_static: true'): a fixed snapshot of persons. PREFER populating it from a 'query' (see below) — the server runs the query and inserts every matching person in a single call, with no row limit. Only use 'cohorts-add-persons-to-static-cohort-partial-update' for tiny, ad-hoc additions (up to ~20 people).\n\nPopulate a static cohort from a query by setting BOTH 'is_static: true' and 'query'. 'query' accepts a HogQLQuery (raw SQL) or an ActorsQuery (the actors behind a product-analytics insight such as trends or funnels). The query MUST expose the person identifier under one of these column names, checked in this order: 'person_id', 'actor_id', 'id', or 'distinct_id'. Selecting from the 'events' or 'persons' tables resolves the actor automatically. If none of those columns is present the call fails with \"Could not find a person_id, actor_id, id, or distinct_id column in the query\".\n\nALWAYS validate the query before saving it: run a HogQLQuery through the 'execute-sql' tool, and an ActorsQuery through its matching 'query-*-actors' tool (e.g. 'query-trends-actors', 'query-lifecycle-actors'). Only pass a 'query' that returned successfully — this catches column-name and syntax errors before they fail cohort population.\n\nExample — from SQL (HogQLQuery), alias the id column as person_id:\n{\"name\": \"Power users\", \"is_static\": true, \"query\": {\"kind\": \"HogQLQuery\", \"query\": \"SELECT person_id FROM events WHERE event = '$pageview' GROUP BY person_id HAVING count() > 100\"}}\n\nExample — from a product-analytics trends insight (ActorsQuery):\n{\"name\": \"Viewed pricing last 7d\", \"is_static\": true, \"query\": {\"kind\": \"ActorsQuery\", \"source\": {\"kind\": \"InsightActorsQuery\", \"source\": {\"kind\": \"TrendsQuery\", \"series\": [{\"kind\": \"EventsNode\", \"event\": \"$pageview\"}], \"dateRange\": {\"date_from\": \"-7d\"}}}}}",
"category": "Cohorts",
"feature": "cohorts",
"summary": "Create cohort",
@@ -844,7 +844,7 @@
}
},
"cohorts-partial-update": {
- "description": "Update an existing cohort's name, description, or filters. Changing filters on a dynamic cohort triggers recalculation. To soft-delete a cohort, set 'deleted: true'.",
+ "description": "Update an existing cohort's name, description, or filters. Changing filters on a dynamic cohort triggers recalculation. To soft-delete a cohort, set 'deleted: true'.\n\nTo add more people to an existing STATIC cohort in bulk, set a 'query' (HogQLQuery or ActorsQuery) on it — the server runs the query and inserts every newly matched person (existing members are skipped), with no row limit. The query must expose the person id under one of these column names, checked in order: 'person_id', 'actor_id', 'id', or 'distinct_id' (selecting from the 'events' or 'persons' tables resolves the actor automatically). Validate the query before saving it — run a HogQLQuery through 'execute-sql' and an ActorsQuery through its matching 'query-*-actors' tool (e.g. 'query-trends-actors') — and only save one that returned successfully. Prefer this over 'cohorts-add-persons-to-static-cohort-partial-update' for anything beyond a handful (~20) of people.",
"category": "Cohorts",
"feature": "cohorts",
"summary": "Update cohort",