Skip to main content
Glama
AgentX-ai

Mailchimp MCP Server

by AgentX-ai

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
NameRequiredDescriptionDefault
workflow_idYesThe workflow ID of the automation
email_idYesThe email ID within the automation

Implementation Reference

  • 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), }, ], };
  • 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"], }, },
  • 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}` ); }

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/AgentX-ai/mailchimp-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server