List segments
Segments from Contacts, then Segmentation, with their filters.
MCP tool mailjet_read → list_segments
read
Returns the segments on the My Segments page with their segment_id, name and a plain-language summary of the filters. Use the name as the segment parameter of list_contacts, set_campaign_recipients and unsubscribe_contacts.
Parameters
No parameters.
tools/call
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "mailjet_read",
"arguments": {
"operation": "list_segments",
"arguments": {}
}
}
} Example response
{
"content": [
{
"type": "text",
"text": "{ ... same JSON as structuredContent ... }"
}
],
"structuredContent": {
"segments": [
{
"segment_id": 2938471,
"name": "Did not open: Autumn offer",
"filters": "Not opened the campaign \"Autumn offer\" AND is subscribed to list \"Newsletter\""
},
{
"segment_id": 2951108,
"name": "Subscribers in Germany",
"filters": "Property country is \"DE\""
}
]
},
"isError": false
}