Skip to main content
Glama
Resend Email MCP

Resend Email MCP

List Contact Segments

list-contact-segments
Read-only

Lists all Resend segments a contact belongs to by contact ID or email, with optional pagination, so you can review segment membership.

Instructions

List all segments a contact belongs to in Resend (by contact ID or email). Don't bother telling the user the IDs or creation dates unless they ask for them.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "list-contact-segments"
  }
}

Input Schema

NameRequiredDescriptionDefault
afterNoSegment ID after which to retrieve more (for forward pagination). Cannot be used with "before".
emailNoContact email address
limitNoNumber of segments to retrieve. Max: 100, Min: 1. If omitted, all segments are returned.
beforeNoSegment ID before which to retrieve more (for backward pagination). Cannot be used with "after".
contactIdNoContact ID

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.5/5.0
Behavior3/5

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

The readOnlyHint annotation already establishes this is a safe read. The description adds two useful behavioral facts beyond that: the contact can be identified by either ID or email, and the response carries segment IDs and creation dates. It does not mention failure behavior when neither identifier is supplied or how pagination interacts with the identifier lookup, which are the more consequential unknowns.

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?

Two short sentences, with the core purpose front-loaded and no redundant restatement of the title. The second sentence is stylistically informal but is not filler — it encodes a genuine output-handling preference; a slightly more explicit phrasing of the email-vs-ID alternative would have used the same space more productively.

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 paginated read with a fully documented schema and a readOnlyHint, this is close to complete: purpose, lookup keys, and response-field guidance are all present. The notable omission is what happens when neither email nor contactId is provided, which matters precisely because the schema declares zero required parameters.

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 after/before/limit/email/contactId are all documented in the schema, and the baseline of 3 applies. The phrase 'by contact ID or email' does add real meaning by signalling that these two identifiers are alternatives rather than jointly required, but the description never addresses that the schema marks all five as optional.

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 gives a specific verb and resource ('List all segments a contact belongs to'), with the service named (Resend) and the scoping constraint (per-contact rather than account-wide), which implicitly separates it from the sibling list-segments. It stops short of explicitly naming that sibling, so an agent must infer the distinction rather than being routed to it.

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?

Usage is only implied: an agent can infer 'use this when you need to know which segments a given contact is in.' There is no explicit when-not guidance, no precondition (e.g. the contact must already exist), and no routing to alternatives like list-segments or get-contact. The second sentence governs response presentation, not 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