Skip to main content
Glama
deyikong

SendGrid MCP Server

by deyikong

open_csv_uploader

Open the SendGrid CSV contact upload page in your browser to import contact lists for email marketing and transactional email operations.

Instructions

Open SendGrid CSV contact upload page in browser

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The handler function for the 'open_csv_uploader' tool. It returns a ToolResult containing a text message with instructions and the URL to SendGrid's CSV contact upload page.
    handler: async (): Promise<ToolResult> => { return { content: [ { type: "text", text: "Please open this URL in your browser to upload contacts via CSV:\nhttps://mc.sendgrid.com/contacts/import/upload-csv", }, ], }; },
  • The schema/config for the tool, defining its title and description. The tool takes no input parameters.
    config: { title: "Open CSV Uploader", description: "Open SendGrid CSV contact upload page in browser", },
  • Registration of the 'open_csv_uploader' tool within the contactTools object, which is aggregated into allTools and registered to the MCP server.
    open_csv_uploader: { config: { title: "Open CSV Uploader", description: "Open SendGrid CSV contact upload page in browser", }, handler: async (): Promise<ToolResult> => { return { content: [ { type: "text", text: "Please open this URL in your browser to upload contacts via CSV:\nhttps://mc.sendgrid.com/contacts/import/upload-csv", }, ], }; }, },
  • src/index.ts:21-23 (registration)
    Final registration loop where all tools from allTools (including open_csv_uploader) are registered to the MCP server.
    for (const [name, tool] of Object.entries(allTools)) { server.registerTool(name, tool.config as any, tool.handler as any); }

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