update_segment
Update a Mailchimp segment's name or dynamic filter conditions. Specify only the fields to change; type conversion between static and dynamic is not supported.
Instructions
Update a segment's name or dynamic filter conditions.
Only provided fields are updated. Idempotent: re-applying the same name is safe. Cannot change a segment from static to dynamic or vice versa. Use add_members_to_segment or remove_members_from_segment to manage static segment membership instead.
Returns 404 error if segment_id is invalid. Providing match without conditions_json is ignored.
Args: list_id: Audience/list ID (10-char alphanumeric, e.g. 'abc123def4'). Obtain from list_audiences. segment_id: Segment ID to update (numeric string, e.g. '12345'). Obtain from list_segments. name: New display name for the segment. match: Condition match type for dynamic segments: 'all' (AND) or 'any' (OR). Must be provided together with conditions_json. conditions_json: JSON string of conditions array. Must be provided with match.
Returns: JSON with id, name, member_count, type ('static'/'saved'), options.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"list_id": "<list_id>",
"segment_id": "<segment_id>"
},
"name": "update_segment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | ||
| match | No | ||
| account | No | ||
| list_id | Yes | ||
| segment_id | Yes | ||
| conditions_json | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |