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

Parameters: add_contacts_to_campaign
NameTypeDescription
campaign_id string required string Campaign id from list_campaigns
contact_ids array required array Contact ids from list_contacts

tools/call

JSON-RPC

{
  "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

JSON

{
  "content": [
    {
      "type": "text",
      "text": "{ ... same JSON as structuredContent ... }"
    }
  ],
  "structuredContent": {
    "campaign_id": "5731834621411328",
    "campaign": "Onboarding series",
    "added": 3,
    "contact_ids": [
      "5698320417841152",
      "5701182246576128",
      "5709775523012608"
    ]
  },
  "isError": false
}

Sign in once. Your agent does the rest.

Sign up and add the apps you need. Free 7-day trial with 2,000 credits, no card needed.