Skip to main content

MCP Tools Reference

The Mailofly MCP server exposes 19 purpose-built tools allowing your AI assistant to perform actions in your Mailofly workspace. Every tool is strictly typed, validated via Zod schemas, and returns clean JSON payloads.

1. Transactional & Marketing Emails

mailofly_send_email

Dispatch an individual transactional or marketing email with HTML/text content, attachments, CC/BCC, reply-to routing, and scheduled sending. Parameters:

Example Natural Language Prompt


mailofly_send_batch

Send up to 100 distinct emails in a single request. Each email can have its own recipient, subject, and personalized body. Parameters:

mailofly_get_email

Inspect the live delivery status, bounce events, and metadata of a previously dispatched email. Parameters:

mailofly_list_emails

Retrieve a paginated list of sent emails with delivery statuses and timestamps. Parameters:

mailofly_cancel_email

Cancel a scheduled email before its scheduled dispatch time. Parameters:

2. Audience & Contacts

mailofly_list_contacts

Query contacts in your audience, with optional filtering by segment. Parameters:

mailofly_create_contact

Add a new subscriber or customer contact with optional custom attributes. Parameters:

mailofly_get_contact

Retrieve contact details, subscribed segments, and custom properties by ID. Parameters:

mailofly_delete_contact

Permanently remove a contact from your audience. Parameters:

3. Email Templates

mailofly_list_templates

List all reusable templates configured in your workspace. Parameters: None required.

mailofly_get_template

Fetch a template’s HTML body, plain text, and placeholder variable schema. Parameters:

mailofly_create_template

Create a new reusable template with variables for dynamic interpolation. Parameters:

4. Broadcast Campaigns

mailofly_list_campaigns

List all marketing and broadcast campaigns in your account. Parameters: None required.

mailofly_create_campaign

Create a new campaign targeted at an audience segment. Parameters:

mailofly_send_campaign

Trigger immediate or scheduled delivery of a campaign broadcast. Parameters:

5. Domains & Deliverability

mailofly_list_domains

Check all sending domains and their DNS record verification states (SPF, DKIM, DMARC, Return-Path). Parameters: None required.

mailofly_verify_domain

Trigger a real-time DNS check for a pending or active domain. Parameters:

mailofly_list_identities

List configured sender identities and routing accounts. Parameters: None required.

6. Usage & Metrics

mailofly_get_usage

Retrieve email volume, delivery rates, bounce counters, and monthly quota limits. Parameters: