Skip to main content
Glama
Garoth

SendGrid MCP Server

by Garoth

validate_email

Check email address validity using SendGrid's verification service to ensure deliverability and reduce bounce rates.

Instructions

Validate an email address using SendGrid

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
emailYesEmail address to validate

Implementation Reference

  • Core handler function that executes the email validation logic using SendGrid's /v3/validations/email API endpoint.
    async validateEmail(email: string) { const [response] = await this.client.request({ method: 'POST', url: '/v3/validations/email', body: { email } }); return response.body; }
  • Dispatcher handler in handleToolCall that invokes the service method and formats the response as MCP tool output.
    case 'validate_email': const validation = await service.validateEmail(args.email); return { content: [{ type: 'text', text: JSON.stringify(validation, null, 2) }] };
  • Input schema defining the required 'email' parameter for the validate_email tool.
    inputSchema: { type: 'object', properties: { email: { type: 'string', description: 'Email address to validate' } }, required: ['email'] }
  • Tool registration definition including name, description, and input schema in getToolDefinitions.
    { name: 'validate_email', description: 'Validate an email address using SendGrid', inputSchema: { type: 'object', properties: { email: { type: 'string', description: 'Email address to validate' } }, required: ['email'] } },

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/Garoth/sendgrid-mcp'

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