Open Segment Creator
open_segment_creatorOpen SendGrid's segment creator in your browser to build targeted email lists based on contact conditions.
Instructions
Open SendGrid segment creator in browser
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/tools/contacts.ts:98-113 (handler)Handler function for the open_segment_creator tool. Returns a text response instructing the user to open the SendGrid segment creator URL in their browser.
open_segment_creator: { config: { title: "Open Segment Creator", description: "Open SendGrid segment creator in browser", }, 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", }, ], }; }, }, - src/tools/index.ts:9-17 (registration)Aggregates all tool definitions including contactTools (which contains open_segment_creator) into a single allTools export.
export const allTools = { ...automationTools, ...campaignTools, ...contactTools, ...mailTools, ...miscTools, ...statsTools, ...templateTools, }; - src/index.ts:21-23 (registration)Registers each tool (including open_segment_creator) with the MCP server using the tool name as key and its config/handler.
for (const [name, tool] of Object.entries(allTools)) { server.registerTool(name, tool.config as any, tool.handler as any); }