Email templates
MCP tool reference: email templates.
Reusable email templates, their images and the workspace email theme.
list_email_templates· List email templatesget_email_template· Get email templatelist_email_images· List email imagesget_email_theme· Get email themeupdate_workspace_email_theme· Update workspace email themecreate_email_template· Create email templateupdate_email_template· Update email templatedelete_email_template· Delete email templatepreview_email_template· Preview email template
list_email_templates
Section titled “list_email_templates”List email templates · Read · every plan
List this workspace’s email templates, newest first: id, name, subject and Drone slots. Use get_email_template for a template’s body.
Parameters
Section titled “Parameters”| Name | Type | Required | Description |
|---|---|---|---|
limit |
integer | minimum 1 maximum 200 | |
cursor |
string | nextCursor from the previous page. |
Returns
Section titled “Returns”| Field | Type | Description |
|---|---|---|
templates |
object[] | |
templates[].id |
string | |
templates[].name |
string | |
templates[].description |
string | |
templates[].version |
number | |
templates[].subject |
string | |
templates[].slots |
object[] | |
templates[].updatedAt |
string | |
nextCursor |
string | null |
get_email_template
Section titled “get_email_template”Get email template · Read · every plan
Read one email template, by id or name, with its body and Drone slots. Body syntax: paragraphs separated by a blank line; lists with ’- ’ or ’1. ’ on every line; bold, italic, link text; a button is a paragraph holding only Label{.button}. Merge fields: {{contact.name}}, {{contact.firstName}}, {{contact.email}}, {{contact.role}}, {{engagement.name}}, {{engagement.clientName}}, {{engagement.stageName}}, {{workspace.name}}, {{sender.name}}, {{sender.firstName}}, {{sender.email}}. Add a fallback with {{contact.firstName | default: “there”}}. The subject takes merge fields but no Markdown. Drone slots: declare a slot in slots (name, label, guidance for Drone, maxLength) and use it as {{drone.
Parameters
Section titled “Parameters”| Name | Type | Required | Description |
|---|---|---|---|
templateId |
string | The template’s id, from list_email_templates. at most 200 characters | |
templateName |
string | Or the template’s name (case-insensitive), when you don’t have its id. at most 120 characters |
Returns
Section titled “Returns”| Field | Type | Description |
|---|---|---|
template |
object | |
template.id |
string | |
template.name |
string | |
template.description |
string | |
template.version |
number | |
template.subject |
string | |
template.slots |
object[] | |
template.updatedAt |
string | |
template.body |
string | |
template.theme |
object | null |
list_email_images
Section titled “list_email_images”List email images · Read · every plan
List the images in this workspace’s email image library, newest first: id, file name, type and size in pixels, plus the workspace’s default email header. Use an id in a template body as . Images are uploaded in the app.
Parameters
Section titled “Parameters”| Name | Type | Required | Description |
|---|---|---|---|
limit |
integer | minimum 1 maximum 200 | |
cursor |
string | nextCursor from the previous page. |
Returns
Section titled “Returns”| Field | Type | Description |
|---|---|---|
images |
object[] | |
images[].id |
string | |
images[].name |
string | |
images[].contentType |
string | |
images[].width |
number | |
images[].height |
number | |
images[].createdAt |
string | |
images[].palette |
string[] | Its main colors, then its vivid accents: use them to match an email theme to it. |
nextCursor |
string | null | |
defaultHeader |
object | null | Shown at the top of templates without a header of their own; null when the workspace has none. |
get_email_theme
Section titled “get_email_theme”Get email theme · Read · every plan
Read the workspace’s email theme, a template’s own theme (with templateId), and the theme emails actually render with. An email theme sets the button color (accent), text and background colors, the header band, an email-safe font and the button shape, with light and dark versions. Text colors are worked out to stay readable unless set; a set color that doesn’t reach 4.5:1 contrast is refused with one that would. To match a header image, use the colors list_email_images gives for it (headerPalette here).
Parameters
Section titled “Parameters”| Name | Type | Required | Description |
|---|---|---|---|
templateId |
string | at most 200 characters |
Returns
Section titled “Returns”| Field | Type | Description |
|---|---|---|
workspace |
object | null | What the workspace sets; null when nothing. |
template |
object | null | What the template sets over the workspace’s; null when nothing. |
effective |
object | What emails render with: the template’s over the workspace’s over the built-in look. |
effective.font |
"sans" | "serif" | "helvetica" | "rounded" | "mono" |
|
effective.buttonShape |
"square" | "rounded" | "pill" |
|
effective.light |
object | |
effective.dark |
object | |
headerPalette |
string[] | null | The colors of the workspace’s default header image; null without one. |
update_workspace_email_theme
Section titled “update_workspace_email_theme”Update workspace email theme · Write · paid plans and the trial (mcp:write) · Asks you to confirm before it runs · Hard to undo: it removes data or reaches people outside beekeep
Change the workspace’s email theme, which every template email uses unless the template sets its own. Leave a field out to keep it; null clears it; theme null clears the whole theme. Only the workspace’s owner can do this, and it needs their approval. An email theme sets the button color (accent), text and background colors, the header band, an email-safe font and the button shape, with light and dark versions. Text colors are worked out to stay readable unless set; a set color that doesn’t reach 4.5:1 contrast is refused with one that would. To match a header image, use the colors list_email_images gives for it (headerPalette here).
Parameters
Section titled “Parameters”| Name | Type | Required | Description |
|---|---|---|---|
theme |
object | null | yes |
Returns
Section titled “Returns”| Field | Type | Description |
|---|---|---|
workspace |
object | null | |
effective |
object | |
effective.font |
"sans" | "serif" | "helvetica" | "rounded" | "mono" |
|
effective.buttonShape |
"square" | "rounded" | "pill" |
|
effective.light |
object | |
effective.dark |
object |
create_email_template
Section titled “create_email_template”Create email template · Write · paid plans and the trial (mcp:write)
Create a reusable email template for sending to contacts. Names are unique in the workspace. Body syntax: paragraphs separated by a blank line; lists with ’- ’ or ’1. ’ on every line; bold, italic, link text; a button is a paragraph holding only Label{.button}. Merge fields: {{contact.name}}, {{contact.firstName}}, {{contact.email}}, {{contact.role}}, {{engagement.name}}, {{engagement.clientName}}, {{engagement.stageName}}, {{workspace.name}}, {{sender.name}}, {{sender.firstName}}, {{sender.email}}. Add a fallback with {{contact.firstName | default: “there”}}. The subject takes merge fields but no Markdown. Drone slots: declare a slot in slots (name, label, guidance for Drone, maxLength) and use it as {{drone.
Parameters
Section titled “Parameters”| Name | Type | Required | Description |
|---|---|---|---|
name |
string | yes | at most 120 characters |
description |
string | When to use it. at most 500 characters | |
subject |
string | yes | at most 200 characters |
body |
string | yes | at most 20000 characters |
slots |
object[] | at most 10 items | |
slots[].name |
string | yes | |
slots[].label |
string | yes | at most 120 characters |
slots[].guidance |
string | Tells Drone what to write in this slot. at most 500 characters | |
slots[].maxLength |
integer | Default 500. minimum 1 maximum 2000 | |
slots[].multiline |
boolean | Default false: line breaks become spaces. | |
theme |
object | This template’s own look over the workspace’s email theme (see get_email_theme). | |
theme.font |
"sans" | "serif" | "helvetica" | "rounded" | "mono" |
Email-safe font: sans (Modern sans), serif (Classic serif), helvetica (Helvetica / Arial), rounded (Rounded), mono (Monospace). | |
theme.buttonShape |
"square" | "rounded" | "pill" |
||
theme.light |
object | Colors for mail apps in light mode. | |
theme.dark |
object | Colors for mail apps in dark mode. Worked out from the light colors unless set. |
Returns
Section titled “Returns”| Field | Type | Description |
|---|---|---|
template |
object | |
template.id |
string | |
template.name |
string | |
template.description |
string | |
template.version |
number | |
template.subject |
string | |
template.slots |
object[] | |
template.updatedAt |
string | |
template.body |
string | |
template.theme |
object | null |
update_email_template
Section titled “update_email_template”Update email template · Write · paid plans and the trial (mcp:write)
Change an email template’s name, description, subject, body or Drone slots. Leave a field out to keep it; slots replaces the whole list; description null clears it. Content changes make a new version; a theme change doesn’t. Body syntax: paragraphs separated by a blank line; lists with ’- ’ or ’1. ’ on every line; bold, italic, link text; a button is a paragraph holding only Label{.button}. Merge fields: {{contact.name}}, {{contact.firstName}}, {{contact.email}}, {{contact.role}}, {{engagement.name}}, {{engagement.clientName}}, {{engagement.stageName}}, {{workspace.name}}, {{sender.name}}, {{sender.firstName}}, {{sender.email}}. Add a fallback with {{contact.firstName | default: “there”}}. The subject takes merge fields but no Markdown. Drone slots: declare a slot in slots (name, label, guidance for Drone, maxLength) and use it as {{drone.
Parameters
Section titled “Parameters”| Name | Type | Required | Description |
|---|---|---|---|
templateId |
string | yes | at most 200 characters |
name |
string | at most 120 characters | |
description |
string | null | at most 500 characters | |
subject |
string | at most 200 characters | |
body |
string | at most 20000 characters | |
slots |
object[] | at most 10 items | |
slots[].name |
string | yes | |
slots[].label |
string | yes | at most 120 characters |
slots[].guidance |
string | Tells Drone what to write in this slot. at most 500 characters | |
slots[].maxLength |
integer | Default 500. minimum 1 maximum 2000 | |
slots[].multiline |
boolean | Default false: line breaks become spaces. | |
theme |
object | null | Changes to this template’s own look over the workspace’s email theme: leave a field out to keep it, null to clear it; theme null drops the template’s own theme. |
Returns
Section titled “Returns”| Field | Type | Description |
|---|---|---|
template |
object | |
template.id |
string | |
template.name |
string | |
template.description |
string | |
template.version |
number | |
template.subject |
string | |
template.slots |
object[] | |
template.updatedAt |
string | |
template.body |
string | |
template.theme |
object | null |
delete_email_template
Section titled “delete_email_template”Delete email template · Write · paid plans and the trial (mcp:write) · Asks you to confirm before it runs · Hard to undo: it removes data or reaches people outside beekeep
Delete an email template. Emails already sent from it stay in the log. Needs the person’s approval.
Parameters
Section titled “Parameters”| Name | Type | Required | Description |
|---|---|---|---|
templateId |
string | yes | at most 200 characters |
Returns
Section titled “Returns”| Field | Type | Description |
|---|---|---|
templateId |
string | |
deleted |
true |
preview_email_template
Section titled “preview_email_template”Preview email template · Read · every plan
Render an email template as plain text without sending it, optionally for a contact and engagement. Values that would be missing show as [field] and are listed in missing: a send would be refused until they’re filled or given a default.
Parameters
Section titled “Parameters”| Name | Type | Required | Description |
|---|---|---|---|
templateId |
string | The template’s id, from list_email_templates. at most 200 characters | |
templateName |
string | Or the template’s name (case-insensitive), when you don’t have its id. at most 120 characters | |
contactId |
string | at most 200 characters | |
engagementId |
string | at most 200 characters | |
slots |
object | Drone slot values by slot name: plain text, within each slot’s maxLength. |
Returns
Section titled “Returns”| Field | Type | Description |
|---|---|---|
notice |
string | |
subject |
string | |
text |
string | |
missing |
string[] |