Skip to main content
Glama

Delete contacts

flow_delete_contacts
Destructive

Deletes up to 1000 contacts for good (ids from flow_list_contacts), with their group and segment memberships. A contact on the blocklist cannot be deleted, so its number stays blocked; the whole call is refused if one of them is. Campaigns already sent keep their figures.

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": {
      "ids": "<ids>"
    },
    "name": "flow_delete_contacts"
  }
}

Input Schema

NameRequiredDescriptionDefault
idsYes
brandIdNoThe id of the brand this change is for: the active brand (flow_whoami). Required when the connection covers several brands; the change is refused when another brand is active.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Well beyond the annotations: it discloses the 1000-item cap, cascading removal of group/segment memberships, permanence ('for good'), and all-or-nothing semantics ('the whole call is refused if one of them is'). The only unstated traits are what the call returns and the exact refusal error surface, so it falls just short of full marks despite destructiveHint already flagging the safety profile.

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

Conciseness5/5

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

Three tight sentences, all front-loaded with the destructive scope first, then the blocklist refusal rule, then the historical-figures caveat. Every clause carries operational information; nothing is padding.

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

Completeness4/5

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

Covers scope, preconditions, atomicity, and side effects for a destructive batch operation, which is the bulk of what an agent needs. With no output schema, it could still say what the call returns (e.g., a deletion count or per-id outcome), which is a real if minor gap.

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

Parameters4/5

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

Schema coverage is only 50%; the ids parameter has no schema description, and the description compensates by naming its origin (flow_list_contacts) and its 1000-item ceiling. brandId is already fully documented in the schema (active brand via flow_whoami, multi-brand requirement), so the description does not need to repeat it.

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?

States a specific verb and resource ('Deletes up to 1000 contacts'), plus the scope it acts on ('with their group and segment memberships'). Naming flow_list_contacts as the source of ids further pins down what this tool is versus the other delete_* siblings (groups, segments, templates).

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

Usage Guidelines4/5

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

Points the agent at flow_list_contacts to obtain ids and states a hard precondition (blocklisted contacts cannot be deleted) along with the batch-level consequence. It does not explicitly contrast with siblings like flow_blocklist_add or flow_delete_group, but the context needed to decide to call it is present.

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