Mailzzy MCP automations create
mcp_crm_automations_createCreate a new automation DEFINITION for the authenticated user. The new automation is always created INACTIVE (a definition only) — it does NOT run, send, or activate. Use when the user wants to define a new automation by name. Do NOT use to activate, run, or wire the automation's step graph — activation is a separate, later capability and is not available here. Do NOT use to edit an existing automation — use mcp_crm_automations_update. The automation's status cannot be set via this tool. Tenant is bound to the session and cannot be changed via arguments. Automation-level RULES (all optional, and all independent of the step graph — use mcp_crm_automations_set_steps for that): entryConditions / exitConditions / restartConditions are arrays of {type, segmentId, operator, contactFilters, campaignIds, linkUrl} where type is one of added_to_lists, removed_from_lists, contact_in_segment, contact_matches_filters, email_opened, email_clicked, email_unsubscribed; a membership type needs segmentId, contact_matches_filters needs contactFilters, and the email types take optional campaignIds (plus linkUrl on email_clicked). operator is MATCHES or DOES_NOT_MATCH. Pass an EMPTY array to clear a slot; omit the key to leave it unchanged. reentryPolicy is once (a contact runs this automation at most once) or every_time, with reentryWaitMinutes as the cool-down before a contact may re-enter. onDeactivate is continue (in-flight contacts finish) or cancel (in-flight contacts are cancelled when a human deactivates the automation). Returns the created automation projection (id, name, status, rules, version).
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": {
"name": "<name>"
},
"name": "mcp_crm_automations_create"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Name of the new automation (1-100 characters) | |
| onDeactivate | No | What happens to in-flight contacts when a human deactivates this automation | |
| reentryPolicy | No | Whether a contact may run this automation more than once | |
| exitConditions | No | Conditions that make a contact EXIT this automation early. Empty array clears the slot; omit to leave unchanged. | |
| idempotencyKey | No | Optional client key so a retried create returns the original result instead of inserting a duplicate | |
| entryConditions | No | Conditions a contact must match to ENTER this automation. Empty array clears the slot; omit to leave unchanged. | |
| restartConditions | No | Conditions that RESTART a contact in this automation. Empty array clears the slot; omit to leave unchanged. | |
| reentryWaitMinutes | No | Cool-down in minutes before a contact may re-enter (every_time only) |