mautic_add_contact_to_segment
Adds a contact to a Mautic segment by segment and contact ID, with an optional dry-run preview before executing the write.
Instructions
Add a contact to a segment. POST /api/segments/{segmentId}/contact/{contactId}/add. Omit confirm for a dry-run preview.
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>",
"contact_id": "<contact_id>"
},
"name": "mautic_add_contact_to_segment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| confirm | No | Set to the boolean true to execute the write. Omit this field for a dry-run preview. false and the string true are rejected. | |
| contact_id | Yes | ||
| segment_id | Yes |