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

  • Core handler function that executes the Mailchimp API request to retrieve subscriber activity for a specific automation email queue entry.
    async getSubscriberActivity( workflowId: string, emailId: string, subscriberHash: string ): Promise<any> { return await this.makeRequest( `/automations/${workflowId}/emails/${emailId}/queue/${subscriberHash}/activity` ); }
  • Defines the input schema for the get_subscriber_activity tool, specifying parameters workflow_id, email_id, and subscriber_hash.
    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"], },
  • Registers the get_subscriber_activity tool in the getToolDefinitions array, including name, description, and input schema.
    { 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"], }, },
  • Dispatches the tool call to the MailchimpService.getSubscriberActivity method 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