Skip to main content
Glama
deyikong

SendGrid MCP Server

by deyikong

open_automation_editor

Edit and configure email automation workflows in SendGrid by opening the automation editor for specific automation IDs to modify campaign sequences and triggers.

Instructions

Open automation editor for a specific automation

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
automation_idYesThe automation ID to edit

Implementation Reference

  • The handler function for the 'open_automation_editor' tool. It takes an automation_id and returns a ToolResult with a text message containing the browser URL to edit that specific automation.
    handler: async ({ automation_id }: { automation_id: string }): Promise<ToolResult> => { return { content: [ { type: "text", text: `Please open this URL in your browser to edit automation ${automation_id}:\nhttps://mc.sendgrid.com/automations/${automation_id}/detail`, }, ], }; }, },
  • The configuration and input schema for the 'open_automation_editor' tool, defining the title, description, and input validation for 'automation_id' using Zod.
    config: { title: "Open Automation Editor", description: "Open automation editor for a specific automation", inputSchema: { automation_id: z.string().describe("The automation ID to edit"), }, },
  • src/index.ts:21-23 (registration)
    Generic registration loop that registers the 'open_automation_editor' tool (along with others) by calling server.registerTool with its name, config, and handler.
    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