create_cohort
Save a new cohort (player segment) in the current project, with an optional description of who is in it. Check list_cohorts first (names are unique) and dry-run the definition with run_cohort_definition so you can report its member count. Saved when this runs; explain it in reason. Load the manage-cohorts, cohorts skills (load_skill("manage-cohorts"), load_skill("cohorts")) first.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Cohort name, unique within the project (e.g. 'Whales — 5+ purchases ever'). | |
| reason | Yes | Why you are making this change, in one sentence the user will read on the approval card. | |
| projectId | Yes | The project (application) id to scope this call to. Use list_projects to discover valid ids. | |
| definition | Yes | The cohort definition AST — blocks (OR'd) of groups (AND'd) of conditions. See the cohorts skill. | |
| description | No | Plain-language description of who is in the cohort (including the time window) and what it is for, in one or two sentences. Always write one from the definition, even when the user did not ask for it. | |
| environment | Yes | The environment name to scope this call to (e.g. 'production'). Use list_projects to discover the names available to this token. |