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
| Name | Required | Description | Default |
|---|---|---|---|
| Yes | Email address to validate |
Implementation Reference
- src/services/sendgrid.ts:231-238 (handler)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; }
- src/tools/index.ts:423-425 (handler)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) }] };
- src/tools/index.ts:187-196 (schema)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'] }
- src/tools/index.ts:184-197 (registration)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'] } },