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
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/tools/contacts.ts:103-112 (handler)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", }, ], }; },
- src/tools/contacts.ts:99-102 (schema)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); }
- src/tools/index.ts:9-16 (registration)Aggregation of all tool sets into allTools, including contactTools which defines open_segment_creator.export const allTools = { ...automationTools, ...campaignTools, ...contactTools, ...mailTools, ...miscTools, ...statsTools, ...templateTools,