List segments
List custom and smart segments with the number of mailable and textable contacts.
MCP tool privy_read → list_segments
read
Returns the four Smart Segments (Engaged Contacts, Unengaged Contacts, Potential Customers, Current Customers) and your custom segments, each with prebuilt, mailable_count and textable_count. Segments are dynamic, so the counts are the current ones, and the segment ids go into create_email_campaign and duplicate_campaign.
Parameters
| Name | Type | Description |
|---|---|---|
| page integer | integer | Page number, starting at 1 |
| per_page integer | integer | Items per page |
tools/call
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "privy_read",
"arguments": {
"operation": "list_segments",
"arguments": {}
}
}
} Example response
{
"content": [
{
"type": "text",
"text": "{ ... same JSON as structuredContent ... }"
}
],
"structuredContent": {
"data": [
{
"id": "seg_2b11",
"name": "Engaged Contacts",
"prebuilt": true,
"mailable_count": 6310,
"textable_count": 1240
},
{
"id": "seg_c9e4",
"name": "Unengaged Contacts",
"prebuilt": true,
"mailable_count": 2150,
"textable_count": 380
},
{
"id": "seg_7d20",
"name": "Did not open October sale",
"prebuilt": false,
"mailable_count": 2890,
"textable_count": 0
}
],
"pagination": {
"page": 1,
"per_page": 25,
"total_count": 3,
"total_pages": 1
}
},
"isError": false
}