List Segments
list-segmentsRetrieves audience segments with filter rules, status, and contact counts so you can inspect dynamic audiences and target campaigns. Supports name search and cursor pagination.
Instructions
List segments with their rules and contact counts. Segments are dynamic audiences: a filter of rules decides who is in, and campaigns target them through segment_ids. status is processing while the members are being computed and ready after. contact_count is as of counted_at, and null while the segment is processing. Don't read ids or timestamps back to the user unless they ask for them.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "list-segments"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| after | No | Cursor for the next page: the `id` of the last item on this page. Cannot be combined with `before`. | |
| limit | No | Items per page, 1-100. Defaults to 20. | |
| before | No | Cursor for the previous page: the `id` of the first item on this page. | |
| search | No | Case-insensitive search by segment name. |