Skip to main content
Glama
This connector has been deprecated

Replaced by Inviomail.

Duplicate listing under a wrong namespace; the canonical listing is de.inviomail/mcp

Remove a contact from a Flow

cancel_contact_flow
DestructiveIdempotent

Removes 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

NameRequiredDescriptionDefault
emailNoEmail is validated and normalized by the backend. Provide email or contactId, exactly one
flowIdYes
reasonNo
contactIdNoProvide contactId or email, exactly one
idempotencyKeyYesUnique operation key; reuse unchanged only for retries of this same action

Output Schema

NameRequiredDescriptionDefault
okYes
flowIdYes
contactIdYes
requestIdYes
canceledRunIdsYes
canceledRunCountYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.9/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already flag destructive and idempotent, but the description adds substantive context an agent cannot get structurally: required flows.write scope, the idempotency TTL (default 24 hours) with response replay semantics and the rule that a new intended removal needs a new key, and that zero active runs counts as success. It also discloses residual effects the agent must convey — subscription/tags/history persist, an in-progress action may finish, already submitted emails cannot be recalled, and access is audited.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded with the destructive action and scope, then prerequisites, then parameters, then side effects — a logical ordering with essentially no filler. It is dense and long for a single tool, but nearly every sentence carries operational weight; only the trailing audit note is close to marginal.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a destructive, idempotent mutation, the description covers permissions, idempotency/retry behavior, success criteria, irreversible side effects, and explicit non-goals. With an output schema present, it correctly omits return-value explanation and focuses on the risks an agent must reason about before invoking.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is only 60%, and the description compensates by explaining the mutual exclusivity of contactId/email, marking reason as optional, and giving idempotencyKey semantics that the schema does not: reuse the identical key with normalized input only for retries, and mint a new key for a new intended removal. That is meaning genuinely beyond the field descriptions.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description opens with a precise verb and bounded scope: removes exactly one contact from exactly one Flow by canceling queued, running and waiting runs, including parallel runs and older published versions. It then draws hard boundaries against near-neighbors in the sibling set, stating it does not deactivate, delete or publish a Flow and is not a permanent exclusion (unlike unsubscribe_contact).

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It states the gating condition explicitly ('Use only on an explicit user request naming the contact and Flow') and names concrete prerequisite tools for identity resolution and participation inspection (list_flows, get_contact_by_email/search_contacts, list_contact_flows/list_flow_participants). It also states when-not in effect: this is not a permanent exclusion and future triggers can re-enroll the contact.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources