Skip to main content
Glama
Resend Email MCP

Resend Email MCP

Add Contact to Segment

add-contact-to-segment

Add a contact to a Resend segment using a contact ID or email address to organize recipients for targeted email sending.

Instructions

Add a contact to a segment in Resend (by contact ID or email).

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": "add-contact-to-segment"
  }
}

Input Schema

NameRequiredDescriptionDefault
emailNoContact email address
contactIdNoContact ID
segmentIdYesSegment ID to add the contact to

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

C2.9/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden. It does not state whether the operation is idempotent, what happens if the contact is already in the segment, whether it errors on an unknown contact or segment, or what permissions are required — all material for a mutation tool.

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?

A single front-loaded sentence with no wasted wording. Its brevity is close to the right shape for this tool, though the parenthetical is the only place nuance is packed and the rest is bare.

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

Completeness2/5

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

For a write operation with no annotations and no output schema, the description says nothing about results, error cases, idempotency, or side effects. An agent can guess the happy path but cannot predict behavior on edge cases, which is a meaningful gap for a membership mutation.

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 description coverage is 100%, so the schema already documents segmentId, contactId, and email. The description adds one useful nuance the schema does not enforce: the contact may be identified either by ID or by email. That is a real contribution, but it does not resolve which to prefer or what happens if both are passed.

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?

The description names a specific verb and resource ("Add a contact to a segment in Resend") and identifies the service, so the action is unambiguous. It does not name the inverse sibling remove-contact-from-segment, so an agent gets no explicit disambiguation, but the verb itself is distinctive enough.

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

Usage Guidelines2/5

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

There is no when-to-use or when-not-to-use guidance, no prerequisites (contact must already exist, segment must exist), and no mention of the alternative removal tool. The only usage hint is the parenthetical that a contact can be identified by ID or email, which is about parameters rather than tool selection.

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