Skip to main content
Glama

Delete a segment

flow_delete_segment
Destructive

Deletes a segment for good (ids from flow_list_segments); its contacts stay. A segment 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_segment"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesSegment id, from flow_list_segments
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.2/5.0
Behavior4/5

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

Annotations already flag destructiveHint=true and idempotentHint=false, so the safety profile is covered. The description adds real value on top: permanence, the fact that contacts are preserved, and a precondition that can block the call. It does not say what happens on retry or which error surfaces when the campaign check fails.

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?

Two tight sentences, no filler. The destructive scope is front-loaded and the precondition follows as a qualifier, which matches how an agent scans before calling.

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 two-parameter destructive tool with no output schema, the description covers permanence, side effects on contacts, and the main blocking precondition. The residual gap is error behavior and whether brandId conflicts must be resolved first, though the schema partially covers the latter.

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

Parameters3/5

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

Schema coverage is 100%, so both id and brandId are already documented in structured fields. The description's "ids from flow_list_segments" merely repeats the schema's own wording. Baseline 3 is appropriate when the schema carries the parameter burden.

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 segment") and immediately clarifies scope with "for good" plus the important non-effect "its contacts stay". That last clause distinguishes it from flow_delete_contacts and flow_delete_group without needing to name them.

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 when-not condition: a segment targeted by a draft, scheduled or preparing campaign cannot be deleted. It also points to flow_list_segments as the id source. It does not name an alternative action (e.g., archive or reassign) when deletion is blocked, so guidance stops just short of routing the agent elsewhere.

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