Skip to main content
Glama
getplatform

GetMailer MCP Server

by getplatform

add_domain

Add a new sending domain to GetMailer's MCP server for transactional emails. The tool provides DNS records to configure domain verification.

Instructions

Add a new sending domain (returns DNS records to configure)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
domainYesDomain name to add (e.g., example.com)

Implementation Reference

  • Handler for the 'add_domain' tool that sends a POST request to the GetMailer API's /api/domains endpoint with the provided domain.
    case 'add_domain': { const result = await apiRequest('/api/domains', { method: 'POST', body: JSON.stringify({ domain: args?.domain }), }); return { content: [{ type: 'text' as const, text: JSON.stringify(result, null, 2) }], }; }
  • src/index.ts:192-205 (registration)
    Registration of the 'add_domain' tool in the ListToolsRequestSchema handler, defining its name, description, and input schema requiring a 'domain' string.
    { name: 'add_domain', description: 'Add a new sending domain (returns DNS records to configure)', inputSchema: { type: 'object' as const, properties: { domain: { type: 'string', description: 'Domain name to add (e.g., example.com)', }, }, required: ['domain'], }, },

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