Skip to main content
Glama

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
NameRequiredDescriptionDefault
list_idYes
emailYes

Implementation Reference

  • 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."})

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/AlexlaGuardia/mcp-mailchimp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server