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
| Name | Required | Description | Default |
|---|---|---|---|
| list_id | Yes | The list ID | |
| subscriber_hash | Yes | The subscriber hash |
Implementation Reference
- src/services/mailchimp.ts:206-211 (handler)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}`); }
- src/tools/index.ts:212-229 (schema)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"], }, },
- src/tools/index.ts:212-229 (registration)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"], }, },
- src/tools/index.ts:777-789 (handler)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), }, ], };