List Contact Segments
list-contact-segmentsLists 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
| Name | Required | Description | Default |
|---|---|---|---|
| after | No | Segment ID after which to retrieve more (for forward pagination). Cannot be used with "before". | |
| No | Contact email address | ||
| limit | No | Number of segments to retrieve. Max: 100, Min: 1. If omitted, all segments are returned. | |
| before | No | Segment ID before which to retrieve more (for backward pagination). Cannot be used with "after". | |
| contactId | No | Contact ID |