list_automations
Retrieve classic automation workflows with their current status and performance statistics to monitor and manage automated email marketing campaigns.
Instructions
List classic automations with status and stats.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| count | No | ||
| offset | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |
Implementation Reference
- mcp_mailchimp/server.py:770-795 (handler)Implementation of the list_automations MCP tool handler.
@mcp.tool() async def list_automations(count: int = 20, offset: int = 0) -> str: """List classic automations with status and stats.""" mc = get_client() data = await mc.get( "/automations", params={"count": min(count, 100), "offset": offset}, ) automations = [] for a in data.get("automations", []): automations.append({ "id": a.get("id", ""), "title": a.get("settings", {}).get("title", ""), "status": a.get("status", ""), "emails_sent": a.get("emails_sent", 0), "list_id": a.get("recipients", {}).get("list_id", ""), "start_time": a.get("start_time", ""), "created_at": a.get("create_time", ""), }) return _fmt({ "total_items": data.get("total_items", 0), "automations": automations, }) @mcp.tool()