Skip to main content
Glama

get_member_activity

Retrieve subscriber activity data including opens, clicks, and bounces from Mailchimp to analyze engagement patterns and campaign performance.

Instructions

Get recent activity for a subscriber — opens, clicks, bounces, etc.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
list_idYes
emailYes
countNo

Implementation Reference

  • The implementation of the 'get_member_activity' tool in mcp_mailchimp/server.py. It retrieves activity-feed data for a specific subscriber from Mailchimp and returns it as a formatted string.
    @mcp.tool()
    async def get_member_activity(list_id: str, email: str, count: int = 20) -> str:
        """Get recent activity for a subscriber — opens, clicks, bounces, etc."""
        mc = get_client()
        h = mc.subscriber_hash(email)
        data = await mc.get(
            f"/lists/{list_id}/members/{h}/activity-feed",
            params={"count": min(count, 50)},
        )
        activities = []
        for a in data.get("activity", []):
            activities.append({
                "action": a.get("action", ""),
                "title": a.get("title", ""),
                "timestamp": a.get("timestamp", ""),
                "campaign_id": a.get("campaign_id", ""),
            })
        return _fmt({"email": email, "activities": activities})

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