> ## Documentation Index
> Fetch the complete documentation index at: https://docs.wappigate.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Email Tools

> Email templates, campaigns, senders and unsubscribes.

## What is this?

These tools cover the Email channel: reading your senders and templates, writing a template draft, creating an email campaign, starting or pausing it, adding contacts, and managing the list of addresses that will never be emailed again. Creating a campaign only saves a draft. `start_email_campaign` emails real customers, which is why it is a separate step that shows who it will reach before you confirm. Tools that reach customers are marked **Reaches customers** in the Developer Portal.

These tools belong to the [Workspace MCP](https://docs.wappigate.com/mcp/workspace/overview.md). Each tool below shows its **Mode** (**Read** runs immediately; **Write** asks your MCP client to confirm first) and the **Permission needed** for it to appear for your key — "None" means every connected key sees it.

## What can I do here?

* See which senders are connected and which one is the default
* Read your email templates, write a new template as a draft, or change an existing one
* Create an email campaign as a draft for a template, a sender and a label audience, then start, schedule or pause it
* Read a campaign's results — sent, delivered, bounced, complaints, unsubscribes, opens and clicks
* Add contacts from addresses you give, and stop emailing an address
* See every suppressed address and the reason

## Tools

### `list_email_senders`

The email senders connected to the user's current channel (provider, from address, whether the last test passed, which one is the default). Use it before building an email campaign or automation, or for 'is my email set up?'.

**Mode:** Read · **Permission needed:** `email:view`

### `list_email_templates`

The email templates of the user's current channel, newest first, with the variables each one needs.

**Mode:** Read · **Permission needed:** `email:view`

### `get_email_template`

One email template of the user's current channel in full: subject, preheader, and either its blocks or its HTML, with the variables it needs. Read it before changing it.

**Mode:** Read · **Permission needed:** `email:view`

### `create_email_template_draft`

Saves a new email template as a DRAFT in the user's current channel. Give a name, a subject and EITHER `blocks` (header, heading, text, button, image, social, divider, in order; social is a row of social icons with a link each; a header is a heading on a colored band, optionally with a picture) OR `html` (a complete HTML email, for a designed layout or an HTML file the user pasted). Text and HTML may use \{\{contact.firstName|there}} (the part after | is the fallback), \{\{contact.name}}, \{\{contact.email}} and \{\{custom.\<field key>}}. Never invent offers, prices or links: ask for them. A draft template cannot be sent: the user must open it under Email, Templates, read it and save it. Tell them so and ask them to do it.

**Mode:** Write · **Permission needed:** `email:create`

### `update_email_template`

Changes an email template of the user's current channel: its name, subject, preheader, and its content as `blocks` or as `html`. Only the fields you give change; giving `html` or `blocks` replaces the whole content and switches the template to that kind. Campaigns already started keep the copy they started with. Never invent offers, prices or links.

**Mode:** Write · **Permission needed:** `email:edit`

### `list_email_campaigns`

Email campaigns of the user's current channel, newest first: status, schedule and results (recipients, sent, failed, skipped).

**Mode:** Read · **Permission needed:** `email:view`

### `get_email_campaign`

One email campaign with its report: sent, delivered, bounced, complaints, unsubscribes, opens (estimated), clicks and the most clicked links.

**Mode:** Read · **Permission needed:** `email:view`

### `create_email_campaign`

Creates an email campaign as a DRAFT (nothing is sent). The template must be one the USER chose: show them list\_email\_templates and ask which one; never create a template and use it in the same step. Optionally a sender (from list\_email\_senders; the default is used otherwise) and an audience: contacts of this channel carrying any of the labels, or everyone when no label is given. Starting it is a separate step.

**Mode:** Write · **Permission needed:** `email:create`

### `start_email_campaign`

Starts sending a draft or paused email campaign now, or schedules it when scheduledAt is given (ISO time, 1 minute to 1 year ahead). It emails real customers: say how many people it reaches (get it from create\_email\_campaign) before asking for confirmation. It is refused while the template is still a draft: only a person saving the template under Email, Templates makes it sendable.

**Mode:** Write · **Permission needed:** `email:create`

### `pause_email_campaign`

Pauses an email campaign that is sending or scheduled. Nothing already sent is recalled.

**Mode:** Write · **Permission needed:** `email:edit`

### `add_email_contacts`

Adds contacts to the email channel from addresses the user gave (up to 200 at a time), with optional names and labels. Existing addresses only gain labels. Only add addresses the user says agreed to receive email.

**Mode:** Write · **Permission needed:** `email:create`

### `list_email_suppressions`

Addresses the email channel will never email again (unsubscribed, bounced, complained or added by hand), newest first, with counts per reason.

**Mode:** Read · **Permission needed:** `email:view`

### `unsubscribe_email_address`

Stops the email channel from emailing an address, the same as if the person had unsubscribed. Use it when the user says someone asked to be removed.

**Mode:** Write · **Permission needed:** `email:edit`

### `set_default_email_sender`

Makes one of the channel's email senders the default (from list\_email\_senders). Campaigns and automations without a chosen sender use it.

**Mode:** Write · **Permission needed:** `email:edit`

## Troubleshooting / Technical Notes

* **A tool I expect isn't offered.** The MCP server only offers tools whose required permission your API key's owner holds, re-checked on every call. Grant the permission shown on the tool — see [Team](https://docs.wappigate.com/workspace/team.md).
* **A Write tool never seems to run.** Your MCP client asks you to approve every Write tool call. Check for a pending approval prompt.
* **A new template or campaign isn't sending.** By design, templates and campaigns are created as drafts. Review the template under **Email → Templates**, then use `start_email_campaign` (or start it in the dashboard).
* **A call returns an error.** See [MCP errors](https://docs.wappigate.com/mcp/errors.md).

## Related docs

* [Workspace MCP tool catalog](https://docs.wappigate.com/mcp/workspace/tools/overview.md)
* [Workspace MCP](https://docs.wappigate.com/mcp/workspace/overview.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.