get_automation_email
Retrieve details of a specific email within a Mailchimp automation workflow to monitor content and configuration.
Instructions
Get details of a specific email in an automation
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| workflow_id | Yes | The workflow ID of the automation | |
| email_id | Yes | The email ID within the automation |
Implementation Reference
- src/tools/index.ts:601-613 (handler)Handler logic for 'get_automation_email' tool: extracts workflow_id and email_id from args, calls MailchimpService.getAutomationEmail, and returns JSON-formatted response.case "get_automation_email": const email = await service.getAutomationEmail( args.workflow_id, args.email_id ); return { content: [ { type: "text", text: JSON.stringify(email, null, 2), }, ], };
- src/tools/index.ts:41-58 (registration)Tool registration in getToolDefinitions array, including name, description, and input schema definition.{ name: "get_automation_email", description: "Get details of a specific email in an automation", inputSchema: { type: "object", properties: { workflow_id: { type: "string", description: "The workflow ID of the automation", }, email_id: { type: "string", description: "The email ID within the automation", }, }, required: ["workflow_id", "email_id"], }, },
- src/services/mailchimp.ts:121-128 (helper)MailchimpService helper method that makes API request to retrieve specific automation email details.async getAutomationEmail( workflowId: string, emailId: string ): Promise<MailchimpAutomationEmail> { return await this.makeRequest( `/automations/${workflowId}/emails/${emailId}` ); }