Preview segment
preview_segmentCount the contacts a segment matches right now and how many a broadcast would reach (opted-out contacts removed, and with topic_id those unsubscribed from it). notes says when an event rule names an event never tracked.
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": {
"id": "<id>"
},
"name": "preview_segment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Segment id | |
| topic_id | No | Count only contacts subscribed to this topic |