Skip to main content
Glama
Lettr MCP Server

Lettr MCP Server

Official
by lettr-com

Delete Audience Segment

delete-audience-segment

Permanently deletes an audience segment by its segment ID after user confirmation. Removes the segment only; contacts within it are not deleted.

Instructions

Delete an audience segment. Before using this tool, you MUST double-check with the user that they want to delete this segment. Warn them that this action is irreversible. (Contacts themselves are not 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": {
      "segmentId": "<segmentId>"
    },
    "name": "delete-audience-segment"
  }
}

Input Schema

NameRequiredDescriptionDefault
segmentIdYesThe segment ID to delete

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.7.0

TDQS

A4/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does well: it discloses irreversibility and, importantly, that contacts inside the segment are not deleted. It does not cover permission requirements, behavior for an unknown or already-deleted segmentId, or error/return behavior — the remaining gaps for a destructive tool.

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 short sentences, front-loaded with the action, followed by the safety gate and the side-effect clarification in parentheses. Nothing is redundant or padded.

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 one-parameter destructive tool with no output schema, the description covers the essentials: what is destroyed, that it cannot be undone, and what is not affected. Only edge-case behavior (invalid/already-deleted ID, permissions) is left unspecified.

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?

There is a single parameter, segmentId, whose schema description is complete (100% coverage), so the schema does the work. The description adds no format, sourcing, or lookup guidance for obtaining the ID beyond what is already structured.

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

Purpose4/5

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

States a specific verb (delete) and a specific resource (audience segment), and separates itself from the contact-deletion siblings by clarifying that contacts themselves are not deleted. It stops short of naming an alternative tool, so it is clear but not fully differentiated from every delete sibling.

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 an explicit precondition: confirm with the user before invoking, and warn that the action is irreversible. That is strong procedural guidance, but it offers no guidance on when a different delete tool (e.g. list vs segment) would be the right choice.

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