archive_member
Archive a subscriber from a Mailchimp list while preserving their data for potential reactivation later.
Instructions
Archive (soft-delete) a subscriber. They can be re-added later via add_or_update_member.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| list_id | Yes | ||
| Yes |
Implementation Reference
- mcp_mailchimp/server.py:547-553 (handler)The `archive_member` function is defined as an MCP tool. It retrieves the subscriber hash, performs a DELETE request to the Mailchimp API to archive the member, and returns a confirmation message.
@mcp.tool() async def archive_member(list_id: str, email: str) -> str: """Archive (soft-delete) a subscriber. They can be re-added later via add_or_update_member.""" mc = get_client() h = mc.subscriber_hash(email) await mc.delete(f"/lists/{list_id}/members/{h}") return _fmt({"email": email, "message": "Member archived."})