Add contacts to campaign
Adds a list of contacts to a campaign, like Bulk Actions > Add to Campaign.
MCP tool agile_crm_write → add_contacts_to_campaign
write Confirm
Selects the contacts on the Contacts page and runs the Add to Campaign bulk action with your campaign. Agile CRM runs the campaign on those contacts at once, so its emails go out to real people. Returns how many contacts were added. By default you confirm each call; you can switch that off for this tool.
Parameters
| Name | Type | Description |
|---|---|---|
| campaign_id string required | string | Campaign id from list_campaigns |
| contact_ids array required | array | Contact ids from list_contacts |
tools/call
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "agile_crm_write",
"arguments": {
"operation": "add_contacts_to_campaign",
"arguments": {
"campaign_id": "5731834621411328",
"contact_ids": [
"5698320417841152",
"5701182246576128",
"5709775523012608"
]
}
}
}
} Example response
{
"content": [
{
"type": "text",
"text": "{ ... same JSON as structuredContent ... }"
}
],
"structuredContent": {
"campaign_id": "5731834621411328",
"campaign": "Onboarding series",
"added": 3,
"contact_ids": [
"5698320417841152",
"5701182246576128",
"5709775523012608"
]
},
"isError": false
}