list_suppression
Retrieve suppressed email addresses that have bounced, received complaints, or been manually excluded from email campaigns to maintain deliverability.
Instructions
List suppressed email addresses (bounced, complained, or manually added)
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Number of entries to return (default: 50) |
Implementation Reference
- src/index.ts:440-447 (handler)Handler function for the 'list_suppression' tool. It builds query parameters from the input 'limit' argument, calls the GetMailer API endpoint '/api/suppression', and returns the result as a formatted JSON text block.case 'list_suppression': { const params = new URLSearchParams(); if (args?.limit) params.set('limit', String(args.limit)); const result = await apiRequest(`/api/suppression?${params}`); return { content: [{ type: 'text' as const, text: JSON.stringify(result, null, 2) }], }; }
- src/index.ts:241-249 (schema)Input schema definition for the 'list_suppression' tool, specifying an optional 'limit' property of type number.inputSchema: { type: 'object' as const, properties: { limit: { type: 'number', description: 'Number of entries to return (default: 50)', }, }, },
- src/index.ts:238-250 (registration)Registration of the 'list_suppression' tool in the ListTools response, including name, description, and input schema.{ name: 'list_suppression', description: 'List suppressed email addresses (bounced, complained, or manually added)', inputSchema: { type: 'object' as const, properties: { limit: { type: 'number', description: 'Number of entries to return (default: 50)', }, }, }, },