Skip to main content
Glama
deyikong

SendGrid MCP Server

by deyikong

list_senders

Retrieve all verified email senders to manage authorized email addresses for sending campaigns and transactional emails through SendGrid.

Instructions

List all verified senders

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The handler function for the 'list_senders' tool. It makes an API request to SendGrid's /v3/marketing/senders endpoint to retrieve all verified sender identities and returns the result as formatted JSON.
    handler: async (): Promise<ToolResult> => { const result = await makeRequest("https://api.sendgrid.com/v3/marketing/senders"); return { content: [{ type: "text", text: JSON.stringify(result, null, 2) }] }; },
  • Configuration schema for the 'list_senders' tool, defining its title and description. No input parameters are required.
    config: { title: "List Senders", description: "List all verified senders", },
  • The 'list_senders' tool is defined and registered within the contactTools object export in contacts.ts, which is later spread into the main allTools export.
    list_senders: { config: { title: "List Senders", description: "List all verified senders", }, handler: async (): Promise<ToolResult> => { const result = await makeRequest("https://api.sendgrid.com/v3/marketing/senders"); return { content: [{ type: "text", text: JSON.stringify(result, null, 2) }] }; }, },
  • The contactTools (containing list_senders) are imported and registered by spreading into the allTools object, which aggregates all tools.
    import { contactTools } from "./contacts.js"; import { mailTools } from "./mail.js"; import { miscTools } from "./misc.js"; import { statsTools } from "./stats.js"; import { templateTools } from "./templates.js"; export const allTools = { ...automationTools, ...campaignTools, ...contactTools, ...mailTools, ...miscTools, ...statsTools, ...templateTools, };

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

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