get_member
Retrieve subscriber details by email address from a Mailchimp audience list to access member information and status.
Instructions
Get details for a specific subscriber by email address.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| list_id | Yes | ||
| Yes |
Implementation Reference
- mcp_mailchimp/server.py:487-510 (handler)The get_member tool implementation, which retrieves details for a subscriber by email address. It is registered via the @mcp.tool() decorator at line 487.
@mcp.tool() async def get_member(list_id: str, email: str) -> str: """Get details for a specific subscriber by email address.""" mc = get_client() h = mc.subscriber_hash(email) m = await mc.get(f"/lists/{list_id}/members/{h}") merge = m.get("merge_fields", {}) return _fmt({ "email": m.get("email_address", ""), "status": m.get("status", ""), "full_name": m.get("full_name", ""), "first_name": merge.get("FNAME", ""), "last_name": merge.get("LNAME", ""), "rating": m.get("member_rating", 0), "tags_count": m.get("tags_count", 0), "vip": m.get("vip", False), "source": m.get("source", ""), "ip_signup": m.get("ip_signup", ""), "language": m.get("language", ""), "location": m.get("location", {}), "subscribed_at": m.get("timestamp_opt", ""), "last_changed": m.get("last_changed", ""), "id": m.get("id", ""), })