Skip to main content
Glama

Delete a contact group

flow_delete_group
Destructive

Deletes a contact group for good (ids from flow_list_groups). Its contacts are kept unless deleteContacts is true: then the contacts in no other group are deleted with it (contacts on the blocklist are kept; at most 1000). A group a draft, scheduled or preparing campaign sends to cannot be deleted.

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": {
      "id": "<id>"
    },
    "name": "flow_delete_group"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesGroup id, from flow_list_groups
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.
deleteContactsNoAlso delete the group's contacts that are in no other group

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior5/5

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

Goes well past the destructiveHint annotation: contacts survive by default, deleteContacts cascades only to contacts in no other group, blocklisted contacts are exempt, and the cascade is capped at 1000. It also discloses the campaign-reference precondition and irreversibility ("for good").

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?

Three sentences, front-loaded with the core action and the id source, with each sentence adding a distinct constraint. The middle sentence is dense and slightly tangled ("then the contacts in no other group are deleted with it"), costing a point on readability.

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?

For a destructive 3-parameter tool with no output schema, it covers irreversibility, cascade semantics, exemptions, limits and the blocking precondition. It does not say what the agent should expect back or how to confirm success, a minor gap given deletion tools usually return little.

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 100%, so 3 is the baseline, but the description adds real meaning for deleteContacts (blocklist exemption, 1000 cap) that the schema text does not carry. brandId is left entirely to its schema description, so it is not a full 5.

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 a contact group for good") and immediately points at flow_list_groups as the source of ids, so the agent can separate it from flow_delete_contacts or flow_delete_segment without opening a schema.

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?

Gives a concrete exclusion: a group targeted by a draft, scheduled or preparing campaign cannot be deleted, which tells the agent when the call will fail. It does not explicitly route to an alternative when the goal is only to remove contacts, so it stops short of full when-to-use/when-not guidance.

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