Create Audience Segment
create-audience-segmentDefine an audience segment using grouped match conditions, with OR logic within groups and AND logic across groups, optionally restricted to one list to target contacts by field values and topics.
Instructions
Create an audience segment defined by match conditions.
Conditions are grouped: conditions within a group are ORed together, and groups are ANDed together. The is_true and is_false operators take no value; all other operators require a value. Optionally restrict the segment to a single list with list_id.
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": {
"name": "<name>",
"conditions": "<conditions>"
},
"name": "create-audience-segment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Segment name | |
| list_id | No | Restrict the segment to a single list (must belong to your team) | |
| conditions | Yes | Segment match rules. `groups` are ANDed; conditions within a group are ORed. |