Skip to main content
Glama

list_campaigns

Retrieve all newsletter campaigns from Keila to view subjects, schedules, and statuses for managing email marketing efforts.

Instructions

List all campaigns in Keila.

Returns: A dict with 'data' (list of campaigns). Each campaign has id, subject, text_body, sender_id, segment_id, settings, sent_at, scheduled_for, and timestamps.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The implementation of the campaign list retrieval via the API client.
    def list_campaigns(self) -> dict:
        """List all campaigns."""
        resp = self.session.get(f"{self.url}/api/v1/campaigns", headers=self._headers(), timeout=30)
        resp.raise_for_status()
        return resp.json()
  • mcp_server.py:99-108 (registration)
    The MCP tool registration and wrapper that calls the client's list_campaigns method.
    @mcp.tool()
    def list_campaigns() -> dict:
        """
        List all campaigns in Keila.
    
        Returns:
            A dict with 'data' (list of campaigns). Each campaign has id, subject,
            text_body, sender_id, segment_id, settings, sent_at, scheduled_for, and timestamps.
        """
        return _client.list_campaigns()

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/gwbischof/keila-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server