mautic_add_contact_to_campaign
Add a Mautic contact to a campaign by campaign and contact ID, with an optional dry-run preview before confirming the write.
Instructions
Add a contact to a campaign. POST /api/campaigns/{campaignId}/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": {
"campaign_id": "<campaign_id>",
"contact_id": "<contact_id>"
},
"name": "mautic_add_contact_to_campaign"
}
}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 | ||
| campaign_id | Yes |