Count Segment Contacts
count_segment_contactsCounts the contacts matching one segment of the signed-in Mailpro account, optionally restricted to one contact list. This is the audience a campaign sent to that segment would reach.
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": {
"segment_id": "<segment_id>"
},
"name": "count_segment_contacts"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| list_id | No | Optional: count only inside this contact list. 0 for the whole account. | |
| segment_id | Yes | Segment id, from list_segments. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| list_id | Yes | 0 when counted on the whole account. | |
| contacts | Yes | ||
| segment_id | Yes |