update_cohort
Change a saved cohort's name, description, and/or definition. Partial: omitted fields keep their current value; pass description null or an empty string to clear it. A definition replaces the saved one entirely — start from list_cohorts' definition, change only what the user asked for, and dry-run it with run_cohort_definition first. 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 | No | 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. | |
| cohortId | Yes | The cohort's id (from list_cohorts). | |
| projectId | Yes | The project (application) id to scope this call to. Use list_projects to discover valid ids. | |
| definition | No | The complete new definition. Replaces the saved one entirely — start from list_cohorts' definition (cohortId set) and change only what the user asked for. Omit to keep it. | |
| description | No | Plain-language description of who is in the cohort and what it is for. Pass null or an empty string to clear it; omit to leave it unchanged. | |
| environment | Yes | The environment name to scope this call to (e.g. 'production'). Use list_projects to discover the names available to this token. |