Skip to main content
Glama
AgentX-ai

Mailchimp MCP Server

by AgentX-ai

get_automation_report

Retrieve automation workflow performance data from Mailchimp to analyze email campaign effectiveness and subscriber engagement metrics.

Instructions

Get automation report data

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
workflow_idYesThe workflow ID of the automation

Implementation Reference

  • Core handler function that executes the tool logic by fetching automation emails report from Mailchimp API endpoint `/automations/${workflowId}/emails`.
    async getAutomationReport(workflowId: string): Promise<any> { return await this.makeRequest(`/automations/${workflowId}/emails`); }
  • Input schema definition for the get_automation_report tool, requiring a workflow_id string.
    inputSchema: { type: "object", properties: { workflow_id: { type: "string", description: "The workflow ID of the automation", }, }, required: ["workflow_id"], },
  • Tool registration in getToolDefinitions array, defining name, description, and input schema.
    { name: "get_automation_report", description: "Get automation report data", inputSchema: { type: "object", properties: { workflow_id: { type: "string", description: "The workflow ID of the automation", }, }, required: ["workflow_id"], }, },
  • MCP tool handler in handleToolCall switch that invokes the service method and returns formatted JSON response.
    case "get_automation_report": const report = await service.getAutomationReport(args.workflow_id); return { content: [ { type: "text", text: JSON.stringify(report, 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