Set Do Not Contact

Marks contacts Do Not Contact for email, with a reason, like the Set Do Not Contact (DNC) batch action.

MCP tool mautic_write → set_do_not_contact

write Confirm

Applies the Set Do Not Contact (DNC) batch action to the contacts you list, with the reason text you give. Mautic then stops emailing them. It reaches nobody, but it changes who receives your campaigns. The list_contacts and get_contact replies show do_not_contact. By default you confirm each call; you can switch that off for this tool.

Parameters

Parameters: set_do_not_contact
NameTypeDescription
contact_ids array required array Contact IDs from list_contacts.
reason string string Reason text stored with the Do Not Contact entry.

tools/call

JSON-RPC

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "mautic_write",
    "arguments": {
      "operation": "set_do_not_contact",
      "arguments": {
        "contact_ids": "contact ids"
      }
    }
  }
}

Example response

JSON

{
  "content": [
    {
      "type": "text",
      "text": "{ ... same JSON as structuredContent ... }"
    }
  ],
  "structuredContent": {
    "updated": 2,
    "channel": "email",
    "reason": "Asked to unsubscribe by reply"
  },
  "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.