Remove a contact from a Flow
cancel_contact_flowRemoves exactly one contact from exactly one Flow automation by canceling all its current queued, running and waiting runs, including parallel runs and older published versions. Use only on an explicit user request naming the contact and Flow; resolve identities with list_flows and get_contact_by_email/search_contacts and inspect current participation with list_contact_flows/list_flow_participants when permitted. Provide exactly one of contactId or email, optional reason, and a unique idempotencyKey for this action. Reuse the identical key and normalized input for retries: within the configured TTL (default 24 hours), the stored response is replayed without canceling newly started runs. A new intended removal needs a new key. Requires flows.write. Zero active runs is successful. Subscription, tags and history remain; future triggers can re-enroll the contact. This is not a permanent exclusion. An action already in progress may finish; already submitted emails cannot be recalled. Does not deactivate, delete or publish a Flow. The MCP access is audited.
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": {
"flowId": "<flowId>",
"idempotencyKey": "<idempotencyKey>"
},
"name": "cancel_contact_flow"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| No | Email is validated and normalized by the backend. Provide email or contactId, exactly one | ||
| flowId | Yes | ||
| reason | No | ||
| contactId | No | Provide contactId or email, exactly one | |
| idempotencyKey | Yes | Unique operation key; reuse unchanged only for retries of this same action |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | ||
| flowId | Yes | ||
| contactId | Yes | ||
| requestId | Yes | ||
| canceledRunIds | Yes | ||
| canceledRunCount | Yes |