get_audience
Retrieve detailed information and statistics for a specific Mailchimp audience to analyze subscriber data and track performance metrics.
Instructions
Get detailed info and stats for a specific audience.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| list_id | Yes |
Implementation Reference
- mcp_mailchimp/server.py:396-414 (handler)The 'get_audience' tool handler which fetches details and statistics for a specific Mailchimp list. It is registered with the @mcp.tool() decorator.
@mcp.tool() async def get_audience(list_id: str) -> str: """Get detailed info and stats for a specific audience.""" mc = get_client() a = await mc.get(f"/lists/{list_id}") stats = a.get("stats", {}) return _fmt({ "id": a["id"], "name": a.get("name", ""), "permission_reminder": a.get("permission_reminder", ""), "member_count": stats.get("member_count", 0), "unsubscribe_count": stats.get("unsubscribe_count", 0), "cleaned_count": stats.get("cleaned_count", 0), "campaign_count": stats.get("campaign_count", 0), "open_rate": stats.get("open_rate", 0), "click_rate": stats.get("click_rate", 0), "last_campaign_sent": stats.get("campaign_last_sent", ""), "created_at": a.get("date_created", ""), })