Skip to main content
Glama
deyikong

SendGrid MCP Server

by deyikong

open_segment_creator

Create targeted email segments in SendGrid by opening the segment creator interface in your browser for precise audience grouping.

Instructions

Open SendGrid segment creator in browser

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The handler function that executes the tool logic by returning a message with the URL to the SendGrid segment creator interface.
    handler: async (): Promise<ToolResult> => { return { content: [ { type: "text", text: "Please open this URL in your browser to create a new segment:\nhttps://mc.sendgrid.com/contacts/segments/create", }, ], }; },
  • Tool configuration including title and description. No input schema as the tool takes no parameters.
    config: { title: "Open Segment Creator", description: "Open SendGrid segment creator in browser", },
  • src/index.ts:21-23 (registration)
    Registration of all tools to the MCP server, including open_segment_creator via allTools.
    for (const [name, tool] of Object.entries(allTools)) { server.registerTool(name, tool.config as any, tool.handler as any); }
  • Aggregation of all tool sets into allTools, including contactTools which defines open_segment_creator.
    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