Skip to main content
Glama
getplatform

GetMailer MCP Server

by getplatform

list_emails

Retrieve sent emails with delivery status and pagination support for monitoring transactional email performance.

Instructions

List sent emails with status information

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNoNumber of emails to return (default: 20)
cursorNoPagination cursor for next page

Implementation Reference

  • Handler for the 'list_emails' tool that constructs query parameters from input arguments (limit and cursor), makes an API request to '/api/emails', and returns the result as formatted JSON text.
    case 'list_emails': { const params = new URLSearchParams(); if (args?.limit) params.set('limit', String(args.limit)); if (args?.cursor) params.set('cursor', String(args.cursor)); const result = await apiRequest(`/api/emails?${params}`); return { content: [{ type: 'text' as const, text: JSON.stringify(result, null, 2) }], }; }
  • Input schema defining optional parameters 'limit' (number) and 'cursor' (string) for the list_emails tool.
    inputSchema: { type: 'object' as const, properties: { limit: { type: 'number', description: 'Number of emails to return (default: 20)', }, cursor: { type: 'string', description: 'Pagination cursor for next page', }, }, },
  • src/index.ts:119-135 (registration)
    Registration of the 'list_emails' tool in the tools list provided by the ListToolsRequestSchema handler, including name, description, and input schema.
    { name: 'list_emails', description: 'List sent emails with status information', inputSchema: { type: 'object' as const, properties: { limit: { type: 'number', description: 'Number of emails to return (default: 20)', }, cursor: { type: 'string', description: 'Pagination cursor for next page', }, }, }, },

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/getplatform/getmailer-mcp'

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