open_automation_editor
Edit email automation workflows in SendGrid by opening the automation editor for a specific automation ID to modify sequences and triggers.
Instructions
Open automation editor for a specific automation
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| automation_id | Yes | The automation ID to edit |
Implementation Reference
- src/tools/automations.ts:46-55 (handler)Executes the tool by generating a URL to the SendGrid automation editor for the given automation_id and returning it as a text message.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`, }, ], }; },
- src/tools/automations.ts:42-44 (schema)Defines the input schema using Zod, requiring a string 'automation_id'.inputSchema: { automation_id: z.string().describe("The automation ID to edit"), },
- src/tools/automations.ts:38-56 (registration)Registers the 'open_automation_editor' tool as part of the automationTools object, which is later spread into allTools and registered to the MCP server.open_automation_editor: { config: { title: "Open Automation Editor", description: "Open automation editor for a specific automation", inputSchema: { automation_id: z.string().describe("The automation ID to edit"), }, }, 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`, }, ], }; }, },