Skip to main content
Glama
Lettr MCP Server

Lettr MCP Server

Official
by lettr-com

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
LETTR_API_KEYYesYour Lettr API key (required).
SENDER_EMAIL_ADDRESSNoDefault sender email address from a verified domain (optional).
REPLY_TO_EMAIL_ADDRESSNoDefault reply-to email address (optional).

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

This server publishes no instructions, or was last inspected before Glama recorded them.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": true
}

Tools

Functions exposed to the LLM to take actions

NameDescription
send-emailA

Purpose: Send a transactional email to one or more recipients. Supports HTML, plain text, AMP HTML, templates with merge tags, attachments, custom headers, tracking, and personalization.

Returns: Send confirmation with request ID and accepted/rejected counts.

When to use:

  • User wants to "send an email" to specific people

  • One-off messages: password reset, order confirmation, receipt, alert

  • User says "email this to X", "notify them", "send a message to..."

  • Sending with a template: use template_slug and substitution_data (subject is optional in this case)

Key trigger phrases: "Send an email", "Email this to", "Notify", "Send a message", "Reply to them"

Retrying: pass idempotency_key and reuse the same value on a retry. Without it, a retry after a timeout sends the email twice — the first attempt may well have succeeded and only the response was lost.

list-emailsC

List recently sent emails with pagination and optional filters. Returns injection events for each email so you can inspect subject, recipient and timestamp.

list-email-eventsB

List email events (delivery, bounce, click, open, …) across all sent messages, filtered by event type, recipient, date range, transmission ID or bounce class.

get-email-detailA

Retrieve the full delivery timeline for a single transmission by request ID — returns derived state (scheduled/delivered/bounced/failed), recipients and all events.

schedule-emailA

Schedule an email for future delivery. Accepts the same fields as send-email plus a required scheduled_at (ISO 8601, UTC) that is at least 5 minutes in the future and at most 30 days out.

Returns: The scheduled email, including the sch_ request ID that get-scheduled-email and cancel-scheduled-email take.

get-scheduled-emailA

Retrieve details of a scheduled email, including its state, scheduled_at timestamp, recipients and any events collected so far. Works for every state, not only pending ones — a cancelled or sent email is still readable.

cancel-scheduled-emailA

Cancel a scheduled email before it is sent. Before using this tool, you MUST confirm with the user that they really want to cancel this email — this action cannot be undone. Only an email still in the scheduled state can be cancelled.

list-scheduled-emailsA

List emails waiting to be sent, soonest delivery time first. Use this to find the sch_ request ID of an email the user describes but cannot name, before getting or cancelling it.

list-templatesA

Purpose: List email templates with pagination. Returns template names, slugs, and project info.

Returns: Paginated list of templates with id, name, slug, project_id, folder_id, purpose, preparation status and timestamps.

When to use:

  • User asks "show my templates", "what templates do I have?"

  • Before sending a template-based email, to find the template slug

  • Filter by purpose=campaign to find templates a campaign can actually use

  • Filter by folder_id to reconcile a bulk import in one call instead of one get-template per template

  • Use get-template for full details of a specific template

get-templateB

Retrieve full details of a template by its slug, including active version HTML/JSON content and version count.

create-templateA

Create a new email template with HTML or Topol editor JSON content. Provide either html or json — they are mutually exclusive. Merge tags are automatically extracted from the content.

Set purpose deliberately. It defaults to transactional, and it cannot be changed after creation. A campaign can only send a template whose purpose is campaign, so a newsletter or promotion created with the default has to be recreated from scratch. If the user is writing anything that goes to an audience list, pass purpose: "campaign".

update-templateA

Update an existing template's name and/or content. Providing new html or json content creates a new version automatically. The html and json fields are mutually exclusive.

delete-templateA

Permanently delete an email template and all its versions. Before using this tool, you MUST double-check with the user that they want to delete this template. Warn them that this action is irreversible and any emails referencing this template slug will fail.

get-merge-tagsA

Retrieve the merge tags (variables) for a template. Use this to discover which substitution_data keys a template expects when sending an email. By default returns merge tags for the active version.

get-template-htmlA

Retrieve a rendered template by project_id and slug. Returns the HTML body, the subject (if set) and the list of merge tags (each with key, name and required flag). This endpoint uses a non-standard {success, data} response envelope.

list-foldersA

Purpose: List the folders templates are filed into, with each folder's purpose and template count.

Returns: Folder id, name, project, purpose (transactional or campaign) and how many templates are inside.

When to use:

  • Before creating a template, to pick a folder id — nothing else in the API returns one, so without this you either omit folder_id and accept whichever folder the API picks, or guess an integer

  • To find the campaign folder when the user asks for a marketing template

  • To answer "where are my templates organised", "what folders do I have"

Note: A folder's purpose and a template's purpose are separate. Filing a template in a campaign folder does not make the template a campaign template — set purpose on the template itself.

list-domainsA

List all sending domains registered with your Lettr account. Returns domain names, statuses, and CNAME/DKIM verification state.

create-domainA

Register a new sending domain with Lettr. The domain starts in pending status until its DKIM record is set up and it is verified. After creation you MUST display the returned DKIM selector/public key to the user so they can configure their DNS.

get-domainB

Retrieve full details of a sending domain including CNAME, DKIM, DMARC and SPF status, tracking domain configuration, and any detected DNS provider.

delete-domainA

Delete a sending domain from Lettr. Before using this tool, you MUST double-check with the user that they want to delete this domain. Warn them that this action is irreversible and will stop all email sending for that domain.

verify-domainA

Trigger DNS verification for a domain. Checks DKIM, CNAME (when applicable), DMARC and SPF records and returns the full validation report.

list-webhooksA

List all webhooks configured for your Lettr account. Returns webhook URLs, enabled status, subscribed event types, and last delivery result.

get-webhookA

Retrieve details of a specific webhook by its string ID (e.g. "webhook-abc123"). Includes enabled state, event types, auth type, and last delivery timestamps.

create-webhookC

Create a new webhook subscription.

Required: name, url, auth_type, events_mode.

  • When auth_type is "basic", auth_username and auth_password are required.

  • When auth_type is "oauth2", oauth_client_id, oauth_client_secret and oauth_token_url are required.

  • When events_mode is "selected", the events array is required and must contain only valid event type strings.

  • When events_mode is "all", the webhook receives every event.

update-webhookB

Update an existing webhook. All fields are optional — only provided fields are changed.

Notes:

  • The enabled flag is named active on update (the response field is enabled).

  • The events array uses the canonical fully-prefixed event names (e.g. "message.delivery", "engagement.open").

delete-webhookA

Delete a webhook subscription. Before using this tool, you MUST double-check with the user. Warn them that this action is irreversible and event delivery to the configured URL will stop immediately.

list-projectsA

List projects owned by the team, with pagination. Use this to discover project IDs to pass to template and email tools.

list-audience-listsA

List the audience (contact) lists for your team, with pagination. Use this to discover list IDs to pass to contact and segment tools.

create-audience-listC

Create a new audience list. The name must be unique within the team.

get-audience-listB

Retrieve a single audience list by its ID, including its current contact count.

update-audience-listA

Rename an audience list. The new name must remain unique within the team.

delete-audience-listA

Delete an audience list. Before using this tool, you MUST double-check with the user that they want to delete this list. Warn them that this action is irreversible — the list is removed and its contacts are detached from it.

bulk-delete-audience-listsA

Delete between 1 and 50 audience lists in a single call. Before using this tool, you MUST double-check with the user. Warn them that this action is irreversible — every listed list is removed and its contacts detached. All IDs must belong to your team.

list-audience-contactsA

List audience contacts with pagination and optional filters. Filter by free-text search (email or name), status, a specific list, or a specific segment.

get-audience-contactA

Retrieve a single contact by ID, including status, custom properties, and the lists and topics it belongs to.

create-audience-contactA

Create a single audience contact.

  • properties keys must match properties already defined for the team (use list-audience-properties).

  • When double_opt_in is provided, the contact is created in unverified status and receives a confirmation email; all four of its fields (from, subject, template_slug, redirect_url) are required.

  • If the email already exists for the team this fails with HTTP 409 (resource_already_exists). That is a client-correctable condition, not an outage — do NOT retry it. Update the existing contact with update-audience-contact, or use bulk-create-audience-contacts with update_existing set.

bulk-create-audience-contactsA

Create many contacts in one request (max 1000).

Provide exactly one of:

  • emails — a flat list of addresses, when every contact gets the same treatment.

  • contacts — one row per contact, when they differ. Each row takes its own properties, list_ids and topics, applied on top of the batch-wide list_ids, topics and properties.

A row-level topic opt_out beats a batch-level opt_in. That is how you keep specific people off a topic that auto-subscribes new contacts, without a second cleanup call.

update_existing (default false) controls only whether properties are merged into contacts that already exist — submitted keys overwrite, absent keys are preserved. Existing contacts are attached to the requested lists and topics either way.

IMPORTANT — this call can partially succeed. Rows that fail validation are skipped and the rest of the batch still commits, so a successful response does NOT mean every row landed. Always read the reported error count back to the user rather than claiming the whole batch was imported.

With contacts, pass rows through as the user gave them — a malformed address is reported back as a skipped row, so do not drop or "fix" entries yourself first. With emails, a single invalid address rejects the whole request, so check them before sending.

update-audience-contactB

Update a contact. All fields are optional — only provided fields change.

  • status may only be set to subscribed or unsubscribed.

  • properties is a partial update: include only the keys you want to change. Setting a property to null removes it from the contact.

delete-audience-contactA

Delete a contact. Before using this tool, you MUST double-check with the user that they want to delete this contact. Warn them that this action is irreversible and removes the contact from all lists and topics.

attach-contact-to-listB

Add a single contact to a single list. Both the contact and the list must belong to your team.

detach-contact-from-listB

Remove a single contact from a single list.

subscribe-contact-to-topicB

Subscribe a single contact to a single topic. Both must belong to your team.

unsubscribe-contact-from-topicB

Unsubscribe a single contact from a single topic.

bulk-attach-contacts-to-listsA

Attach multiple contacts to multiple lists at once. Every contact is attached to every list (a cartesian product of contact_ids × list_ids). All IDs must belong to your team.

bulk-detach-contacts-from-listsA

Detach multiple contacts from multiple lists at once (a cartesian product of contact_ids × list_ids). Before using this tool, you MUST double-check with the user, as it removes many memberships at once.

bulk-subscribe-contacts-to-topicsA

Subscribe multiple contacts to multiple topics at once. Every contact is subscribed to every topic (a cartesian product of contact_ids × topic_ids). All IDs must belong to your team.

bulk-unsubscribe-contacts-from-topicsA

Unsubscribe multiple contacts from multiple topics at once (a cartesian product of contact_ids × topic_ids). Before using this tool, you MUST double-check with the user, as it drops many subscriptions at once.

list-audience-topicsA

List subscription topics for your team, with pagination. Use this to discover topic IDs to subscribe contacts to.

create-audience-topicB

Create a subscription topic. default_subscription controls whether contacts are opted in or out by default (defaults to opt_in); visibility controls whether the topic is shown on public preference pages (defaults to private).

get-audience-topicB

Retrieve a single subscription topic by its ID.

update-audience-topicA

Update a subscription topic. All fields are optional — only provided fields change. Note that default_subscription cannot be changed after creation.

delete-audience-topicA

Delete a subscription topic. Before using this tool, you MUST double-check with the user that they want to delete this topic. Warn them that this action is irreversible and removes all contact subscriptions to it.

list-audience-propertiesA

List the custom contact properties defined for your team, with pagination. Use this to discover which property keys are valid when creating or updating contacts.

create-audience-propertyB

Define a new custom contact property. The name must start with a lowercase letter and contain only lowercase letters, numbers, and underscores. The type fixes how values are stored and cannot be changed later.

get-audience-propertyA

Retrieve a single custom contact property by its ID.

update-audience-propertyA

Update a property's fallback value. The name and type are fixed at creation and cannot be changed. Set fallback_value to null to clear it.

delete-audience-propertyA

Delete a custom contact property. Before using this tool, you MUST double-check with the user that they want to delete this property. Warn them that this action is irreversible and removes the property value from every contact.

list-audience-segmentsA

List audience segments for your team, with pagination. Optionally filter to segments restricted to a specific list.

create-audience-segmentB

Create an audience segment defined by match conditions.

Conditions are grouped: conditions within a group are ORed together, and groups are ANDed together. The is_true and is_false operators take no value; all other operators require a value. Optionally restrict the segment to a single list with list_id.

get-audience-segmentA

Retrieve a single audience segment by its ID, including its condition groups and cached contact count.

update-audience-segmentA

Update an audience segment. All fields are optional — only provided fields change. Providing conditions replaces the entire condition set.

delete-audience-segmentA

Delete an audience segment. Before using this tool, you MUST double-check with the user that they want to delete this segment. Warn them that this action is irreversible. (Contacts themselves are not deleted.)

list-campaignsA

List campaigns for your team, with pagination and an optional status filter. Each campaign includes embedded engagement stats. Use this to discover campaign IDs for the other campaign tools.

get-campaignA

Retrieve a single campaign by its ID, including embedded engagement stats and a preview of its rendered HTML content.

list-campaign-eventsA

List engagement events (opens, clicks, bounces, etc.) for a campaign, with optional filters. Uses cursor-based pagination: this tool returns one page plus a next_cursor. Keep calling it with cursor set to the returned next_cursor until next_cursor is null. Note: when a filter is applied, a page can come back with no events but a non-null next_cursor — that means more pages remain, so keep paginating until next_cursor is null.

send-campaignA

Immediately send a draft campaign to its recipients. Before using this tool, you MUST double-check with the user that they want to send now. Warn them that this is irreversible and outward-facing — it dispatches real emails to recipients that cannot be recalled. The campaign must be a draft with a subject, sender, and content; on success it transitions to "preparing".

schedule-campaignA

Schedule a draft campaign for future delivery, or reschedule an already-scheduled campaign to a new time. Before using this tool, you MUST confirm the time with the user and warn them that at the scheduled time this will dispatch real emails to recipients. The campaign must be a draft or already scheduled, with a subject, sender, and content.

unschedule-campaignA

Cancel a scheduled send, returning the campaign to draft. The campaign must currently be scheduled.

health-checkA

Check the Lettr API health status. Returns the current API status and a server timestamp. This endpoint does not require authentication.

auth-checkA

Validate the configured Lettr API key and return the associated team ID. Use this to verify that the API key is correctly set up before performing other operations.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

B3.4/5.0

Scored across 70 tools

Disambiguation4/5

Most tools have clearly distinct resource+action targets and descriptions strongly clarify edge cases (e.g. get-scheduled-email vs get-email-detail, send-email vs schedule-email). Some boundary ambiguity exists across the many CRUD groups (list/get pairs, both email-level and campaign-level event/stat tools), but descriptions provide enough guidance to select correctly.

Naming Consistency4/5

The set overwhelmingly follows a consistent kebab-case verb_noun convention (list-, get-, create-, update-, delete-, bulk- prefixes) applied uniformly across resources. Minor deviations are health-check and auth-check, which invert to noun_verb rather than check-health/check-auth.

Tool Count2/5

70 tools is far beyond a reasonable surface even for a broad email platform, spanning emails, campaigns, templates, contacts, lists, segments, topics, properties, domains, webhooks and folders. The sheer count makes discovery and correct selection hard, and many near-siblings (four contact-list bulk ops, four topic bulk ops) inflate the surface.

Completeness4/5

Coverage is extensive and lifecycle-complete across nearly all domains: full CRUD for contacts, lists, segments, topics, properties, templates, domains, webhooks plus campaign send/schedule lifecycle. Minor gaps remain—folders are only listable (no create/update/delete), and some bulk operations could be consolidated.

Maintenance

ActivitySlowing
ResponsivenessNo recent community issues