get_automation_email_report
Retrieve detailed performance data for specific emails within Mailchimp automation workflows to analyze campaign effectiveness and track engagement metrics.
Instructions
Get automation email report data
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/services/mailchimp.ts:168-175 (handler)The core handler function that executes the tool logic by making a request to the Mailchimp API endpoint for the specific automation email report.async getAutomationEmailReport( workflowId: string, emailId: string ): Promise<any> { return await this.makeRequest( `/automations/${workflowId}/emails/${emailId}` ); }
- src/tools/index.ts:133-150 (schema)Defines the input schema, name, and description for the tool.{ 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"], }, },
- src/tools/index.ts:693-705 (registration)Registers and handles the tool call within the main switch statement, invoking the service handler and formatting 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), }, ], };