Get the FREE Ultimate OpenClaw Setup Guide →

MailerLite Automation

Scanned
npx machina-cli add skill ComposioHQ/awesome-claude-skills/mailerlite-automation --openclaw
Files (1)
SKILL.md
5.2 KB

MailerLite Automation

Automate email marketing operations -- manage subscribers, analyze campaign performance, organize groups and segments, and monitor account health -- all orchestrated through the Composio MCP integration.

Toolkit docs: composio.dev/toolkits/mailerlite


Setup

  1. Connect your MailerLite account through the Composio MCP server at https://rube.app/mcp
  2. The agent will prompt you with an authentication link if no active connection exists
  3. Once connected, all MAILERLITE_* tools become available for execution

Core Workflows

1. Verify Account & Fetch Metadata

Retrieve account details including plan limits and timezone to ensure consistent reporting.

Tool: MAILERLITE_GET_ACCOUNT_INFO

No parameters required -- returns account metadata, plan details, and timezone configuration.

Always run this first to establish plan constraints and timezone for consistent time-windowed queries.


2. Get Account-Wide Performance Stats

Retrieve aggregate subscriber counts, sent email totals, and engagement metrics for a health snapshot.

Tool: MAILERLITE_GET_ACCOUNT_STATS

No parameters required -- returns overall subscriber counts, sent emails, and performance metrics.

3. List & Paginate Subscribers

Retrieve subscribers with optional status filtering and cursor-based pagination.

Tool: MAILERLITE_GET_SUBSCRIBERS

ParameterTypeRequiredDescription
filter[status]stringNoFilter by: active, unsubscribed, unconfirmed, bounced, junk
limitintegerNoSubscribers per page (default: 25)
cursorstringNoPagination cursor from previous response meta.cursor
includestringNoSet to groups to include group memberships

Important: Loop with meta.next_cursor until null to build a complete subscriber list.


4. List & Analyze Campaigns

Retrieve campaigns with optional status/type filters and page-based pagination.

Tool: MAILERLITE_GET_CAMPAIGNS

ParameterTypeRequiredDescription
filter[status]stringNoFilter by: sent, draft, ready
filter[type]stringNoFilter by: regular, ab, resend, rss
limitintegerNoItems per page (default: 25)
pageintegerNoPage number (default: 1)

Important: Paginate using meta.last_page to avoid omitting campaigns from historical analysis.


5. Manage Subscriber Groups

List, filter, and sort subscriber groups for audience organization.

Tool: MAILERLITE_GET_GROUPS

ParameterTypeRequiredDescription
filter[name]stringNoPartial name match filter
limitintegerNoMax groups to return
pageintegerNoPage number (starting from 1)
sortstringNoSort by: name, total, open_rate, click_rate, created_at (prefix - for descending)

6. Retrieve Audience Segments & Custom Fields

Fetch segments and custom field definitions for advanced audience analysis.

Tools: MAILERLITE_GET_SEGMENTS and MAILERLITE_GET_FIELDS

Segments:

ParameterTypeRequiredDescription
limitintegerNoMax segments to return (max 250)
pageintegerNoPage number (starting from 1)

Fields: No parameters required -- returns all custom field definitions.


Known Pitfalls

PitfallDetails
Subscriber pagination is cursor-basedMAILERLITE_GET_SUBSCRIBERS uses meta.next_cursor -- you must loop until null or counts will be incomplete
Campaign pagination is page-basedMAILERLITE_GET_CAMPAIGNS uses page/limit with meta.last_page -- stopping early omits campaigns and distorts trends
Sampling biasComputing engagement metrics from only the first page introduces bias; always aggregate across all pages
Nested response shapeMailerLite payloads are nested under results[i].response.data with data and meta subkeys, not a flat data key -- parse accordingly
API quotasSubscriber listing is limited by MailerLite Connect API quotas -- plan batch operations accordingly

Quick Reference

Tool SlugPurpose
MAILERLITE_GET_ACCOUNT_INFOVerify auth and review account metadata
MAILERLITE_GET_ACCOUNT_STATSGet aggregate performance metrics
MAILERLITE_GET_SUBSCRIBERSList subscribers with filtering and pagination
MAILERLITE_GET_CAMPAIGNSList campaigns with status/type filters
MAILERLITE_GET_GROUPSList and sort subscriber groups
MAILERLITE_GET_SEGMENTSList audience segments
MAILERLITE_GET_FIELDSRetrieve custom field definitions

Powered by Composio

Source

git clone https://github.com/ComposioHQ/awesome-claude-skills/blob/master/composio-skills/mailerlite-automation/SKILL.mdView on GitHub

Overview

Automates MailerLite operations—managing subscribers, analyzing campaigns, organizing groups and segments, and monitoring account health through the Composio MCP integration. It exposes MAILERLITE_* tools to fetch account metadata, subscriber lists, campaigns, groups, and fields for scalable email management. This helps teams maintain healthy lists and optimize performance at scale.

How This Skill Works

The skill connects your MailerLite account via the Composio MCP. It first fetches account info to establish limits and timezone, then uses a set of MAILERLITE_* tools to pull subscribers, campaigns, groups, segments, and fields. For subscribers it uses cursor-based pagination (meta.next_cursor); for campaigns it uses page-based pagination (meta.last_page) to ensure complete historical coverage.

When to Use It

  • When auditing account health: verify plan limits and timezone to ensure accurate reporting.
  • When evaluating overall engagement: pull account stats and campaign performance metrics.
  • When organizing audiences: list and filter groups and segments for targeted campaigns.
  • When building subscriber lists: paginate through large subscriber sets and map group memberships.
  • When enriching personalization: fetch segments and custom fields to tailor content.

Quick Start

  1. Step 1: Connect your MailerLite account through the Composio MCP server at https://rube.app/mcp
  2. Step 2: Run MAILERLITE_GET_ACCOUNT_INFO to initialize context (limits, timezone)
  3. Step 3: Start querying data with MAILERLITE_GET_SUBSCRIBERS and MAILERLITE_GET_CAMPAIGNS, handling pagination as needed

Best Practices

  • Always run MAILERLITE_GET_ACCOUNT_INFO first to establish constraints and timezone.
  • Paginate subscribers using the meta.next_cursor until it returns null.
  • Use include=groups when pulling subscribers to capture group memberships.
  • Paginate campaigns with meta.last_page to avoid missing historical data.
  • Fetch segments (MAILERLITE_GET_SEGMENTS) and fields (MAILERLITE_GET_FIELDS) for accurate personalization.

Example Use Cases

  • Audit account constraints (plan, timezone) and set reporting windows accordingly.
  • Pull a full subscriber list with their group memberships for cleanup or re-engagement campaigns.
  • Analyze campaign performance across time by listing campaigns with status/type filters and proper pagination.
  • Create audience segments and map custom fields to personalize emails at scale.
  • Validate field definitions to ensure correct data-driven personalization in campaigns.

Frequently Asked Questions

Add this skill to your agents
Sponsor this space

Reach thousands of developers