Skip to main content
Glama
AgentX-ai

Mailchimp MCP Server

by AgentX-ai

get_subscriber_activity

Retrieve subscriber activity data for automation emails in Mailchimp to monitor engagement and track email campaign performance.

Instructions

Get subscriber activity for an automation email

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
workflow_idYesThe workflow ID of the automation
email_idYesThe email ID within the automation
subscriber_hashYesThe subscriber hash

Implementation Reference

  • The handler function that executes the core logic of fetching subscriber activity from the Mailchimp API endpoint using the private makeRequest method.
    async getSubscriberActivity( workflowId: string, emailId: string, subscriberHash: string ): Promise<any> { return await this.makeRequest( `/automations/${workflowId}/emails/${emailId}/queue/${subscriberHash}/activity` ); }
  • The input schema definition for the tool, specifying the required parameters and their descriptions.
    { name: "get_subscriber_activity", description: "Get subscriber activity for an automation email", 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", }, subscriber_hash: { type: "string", description: "The subscriber hash", }, }, required: ["workflow_id", "email_id", "subscriber_hash"], }, },
  • The registration and dispatch logic in the handleToolCall switch statement that calls the service handler and formats the response.
    case "get_subscriber_activity": const activity = await service.getSubscriberActivity( args.workflow_id, args.email_id, args.subscriber_hash ); return { content: [ { type: "text", text: JSON.stringify(activity, 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