Skip to main content
Glama
resend

Email Sending MCP

by resend

List Segments

list-segments

Retrieve all segments and associated IDs needed for creating contacts or broadcasts. Supports pagination for large lists.

Instructions

Purpose: List all segments in the account. Use to get segment IDs required by create-contact, create-broadcast, list-contacts.

NOT for: Listing contacts inside a segment (use list-contacts with segmentId). Not for listing broadcasts (use list-broadcasts).

Returns: For each segment: name, id, created_at. Use pagination (limit, after/before) for large lists.

When to use: User says "show my segments", "what lists do I have?", or before create-contact/create-broadcast when segmentId is unknown.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
afterNoSegment ID after which to retrieve more (for forward pagination). Cannot be used with "before".
limitNoNumber of segments to retrieve. Default: 20, Max: 100, Min: 1
beforeNoSegment ID before which to retrieve more (for backward pagination). Cannot be used with "after".
Behavior4/5

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

No annotations provided, but the description discloses it's a read-only listing, mentions return fields (name, id, created_at), and advises pagination for large lists. Could explicitly state no side effects, but implied.

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?

Concise with clear headings, no redundant sentences. Four short sections each serving a distinct purpose. Every sentence earns its place.

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

Completeness5/5

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

Despite no output schema, the description fully specifies return fields and pagination behavior. Covers common use cases and distinguishes from sibling tools. Complete for a listing tool.

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% with detailed descriptions for each parameter. The description only adds a generic pagination hint, not substantial new meaning. Baseline 3 is appropriate.

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?

The description clearly states 'List all segments in the account' and distinguishes from siblings like list-contacts (which lists contacts inside a segment) and list-broadcasts. It specifies the verb and resource precisely.

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

Usage Guidelines5/5

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

Explicitly says when to use (user says 'show my segments', etc.) and when not to (for listing contacts or broadcasts), with direct alternatives (use list-contacts with segmentId, use list-broadcasts).

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/resend/resend-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server