Skip to main content
Glama
AgentX-ai

Mailchimp MCP Server

by AgentX-ai

get_member

Retrieve specific subscriber details from a Mailchimp email list using list ID and subscriber hash for targeted audience management.

Instructions

Get details of a specific member

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
list_idYesThe list ID
subscriber_hashYesThe subscriber hash

Implementation Reference

  • The handler for the 'get_member' tool in handleToolCall function. It extracts list_id and subscriber_hash from args, calls service.getMember, and returns the member data as formatted JSON text content.
    case "get_member": const member = await service.getMember( args.list_id, args.subscriber_hash ); return { content: [ { type: "text", text: JSON.stringify(member, null, 2), }, ], };
  • Tool schema definition for 'get_member', including name, description, and inputSchema requiring list_id and subscriber_hash.
    { name: "get_member", description: "Get details of a specific member", inputSchema: { type: "object", properties: { list_id: { type: "string", description: "The list ID", }, subscriber_hash: { type: "string", description: "The subscriber hash", }, }, required: ["list_id", "subscriber_hash"], }, },
  • MailchimpService.getMember method that makes the API request to retrieve specific member details using list_id and subscriber_hash.
    async getMember( listId: string, subscriberHash: string ): Promise<MailchimpMember> { return await this.makeRequest(`/lists/${listId}/members/${subscriberHash}`); }

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