get_automation_queue
Retrieve queued emails from a Mailchimp automation workflow to monitor scheduled email delivery status and manage campaign timing.
Instructions
Get the automation email queue
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:143-152 (handler)The core handler function in MailchimpService that fetches the automation queue via Mailchimp API using a paginated request to the /automations/{workflowId}/emails/{emailId}/queue endpoint.async getAutomationQueue( workflowId: string, emailId: string ): Promise<{ queue: MailchimpAutomationQueue[] }> { return await this.makePaginatedRequest( `/automations/${workflowId}/emails/${emailId}/queue`, "timestamp_signup", "DESC" ); }
- src/tools/index.ts:77-94 (schema)Tool definition and input schema validation specifying required workflow_id and email_id parameters.{ name: "get_automation_queue", description: "Get the automation email queue", 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:637-649 (registration)Registration and dispatch handler in handleToolCall that invokes the service method and formats the response.case "get_automation_queue": const queue = await service.getAutomationQueue( args.workflow_id, args.email_id ); return { content: [ { type: "text", text: JSON.stringify(queue, null, 2), }, ], };