Skip to main content
Glama
AgentX-ai

Mailchimp MCP Server

by AgentX-ai

get_member

Retrieve detailed information about a specific subscriber from a Mailchimp email list using list ID and subscriber hash.

Instructions

Get details of a specific member

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
list_idYesThe list ID
subscriber_hashYesThe subscriber hash

Implementation Reference

  • Core handler function in MailchimpService that makes the API request to retrieve member details using the list ID and subscriber hash.
    async getMember( listId: string, subscriberHash: string ): Promise<MailchimpMember> { return await this.makeRequest(`/lists/${listId}/members/${subscriberHash}`); }
  • Input schema and tool definition for the 'get_member' tool, specifying required parameters 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"], }, },
  • Registration of the 'get_member' tool in the getToolDefinitions array.
    { 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"], }, },
  • Tool call handler in handleToolCall function that invokes the service.getMember method and returns formatted JSON response.
    case "get_member": const member = await service.getMember( args.list_id, args.subscriber_hash ); return { content: [ { type: "text", text: JSON.stringify(member, 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