Skip to main content
Glama
AgentX-ai

Mailchimp MCP Server

by AgentX-ai

get_automation_email_report

Retrieve performance data for automated email campaigns in Mailchimp to analyze opens, clicks, and engagement metrics.

Instructions

Get automation email report data

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
workflow_idYesThe workflow ID of the automation
email_idYesThe email ID within the automation

Implementation Reference

  • Core handler function that executes the tool logic by making an API request to Mailchimp to retrieve the automation email report.
    async getAutomationEmailReport( workflowId: string, emailId: string ): Promise<any> { return await this.makeRequest( `/automations/${workflowId}/emails/${emailId}` ); }
  • Tool definition including name, description, and input schema for validation.
    { name: "get_automation_email_report", description: "Get automation email report data", 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"], }, },
  • Registration and dispatch handler in the tool call switch statement that invokes the service method and formats the response.
    case "get_automation_email_report": const emailReport = await service.getAutomationEmailReport( args.workflow_id, args.email_id ); return { content: [ { type: "text", text: JSON.stringify(emailReport, null, 2), }, ], };

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