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
| Name | Required | Description | Default |
|---|---|---|---|
| workflow_id | Yes | The workflow ID of the automation |
Implementation Reference
- src/services/mailchimp.ts:164-166 (handler)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`); }
- src/tools/index.ts:122-131 (schema)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"], },
- src/tools/index.ts:119-132 (registration)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"], }, },
- src/tools/index.ts:682-691 (handler)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), }, ], };