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 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

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

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