Skip to main content
Glama
Resend Email MCP

Resend Email MCP

Remove Contact from Segment

remove-contact-from-segment

Remove a contact from a Resend segment by contact ID or email, with a required confirmation step to prevent unintended removals.

Instructions

Remove a contact from a segment in Resend (by contact ID or email). Before using this tool, you MUST double-check with the user that they want to remove the contact from the segment.

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": "remove-contact-from-segment"
  }
}

Input Schema

NameRequiredDescriptionDefault
emailNoContact email address
contactIdNoContact ID
segmentIdYesSegment ID to remove the contact from

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv2.28.2
    • changedInput schema / properties / email / pattern
      Previous value: -"^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"New value: +"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"
  2. Changed1 schema field changedv2.12.0
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
  3. First observedv2.10.0

TDQS

A3.6/5.0
Behavior3/5

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

With no annotations, the description carries the full behavioral burden; it does disclose the important safety trait that user confirmation is mandatory, which is exactly the kind of context annotations would otherwise supply. It stops short of describing consequences (whether removal is reversible, what happens on a non-member contact, or error behavior), leaving the mutation profile partly opaque.

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 sentences, both load-bearing: the action first, then the mandatory prerequisite. No filler, no restatement of the title beyond what is needed to establish scope.

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

Completeness3/5

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

For a simple single-object removal with one required parameter and no output schema, most of what an agent needs is present, including the confirmation requirement. Still missing is any statement of outcome or failure behavior, which matters more here because no annotations describe the mutation's safety profile.

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?

The schema documents all three parameters at 100% coverage, so baseline is 3. The phrase "by contact ID or email" adds genuine meaning by explaining that the two optional identifiers are alternatives, resolving the ambiguity of why both exist and neither is required.

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 and resource ("Remove a contact from a segment") plus the API context (Resend) and the two ways to identify the contact. This is clearly distinct from a whole-contact deletion tool, though it doesn't explicitly name a sibling to contrast with.

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

Usage Guidelines3/5

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

The description provides a hard usage gate — confirm with the user first — which is real guidance about when to invoke it. It does not, however, address when to use this versus alternatives such as removing the contact entirely, nor what to do if the contact isn't in the segment.

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

Deploy Server

Other Tools