count_segment
Check the current contact count for a segment before building a campaign, so you can avoid sending to an empty audience.
Instructions
How many contacts a segment currently matches. Run this before building a campaign around it — a filter that matches nobody is easier to spot here than after a send.
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": "count_segment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes |