get_automation_queue
Retrieve queued emails from a Mailchimp automation workflow to monitor scheduled email delivery 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)Core handler function that executes the tool logic by querying the Mailchimp API for the automation email queue using a paginated request.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 (registration)Registers the tool in the definitions array exported by getToolDefinitions, including name, description, and input schema.{ 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:80-93 (schema)Defines the input schema for the tool, specifying required workflow_id and email_id parameters.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 (helper)Dispatcher case in handleToolCall that invokes the service handler and formats the response as MCP tool output.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), }, ], };