Skip to main content
Glama

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

Implementation Reference

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

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