Skip to main content
Glama

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

TableJSON Schema
NameRequiredDescriptionDefault
countNo
offsetNo

Implementation Reference

  • 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()

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