Skip to main content
Glama
AgentX-ai

Mailchimp MCP Server

by AgentX-ai

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
NameRequiredDescriptionDefault
workflow_idYesThe workflow ID of the automation
email_idYesThe email ID within the automation

Implementation Reference

  • 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"
      );
    }
  • 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"],
      },
    },
  • 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),
          },
        ],
      };

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