Skip to main content
Glama
Lettr MCP Server

Lettr MCP Server

Official
by lettr-com

Send Email

send-email

Send transactional emails to one or more recipients using HTML, templates, attachments, and tracking. Use it for receipts, alerts, password resets, and personalized notifications.

Instructions

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.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "to": "<to>",
      "from": "<from>"
    },
    "name": "send-email"
  }
}

Input Schema

NameRequiredDescriptionDefault
ccNoOptional array of CC email addresses. You MUST ask the user for this parameter. Under no circumstance provide it yourself
toYesArray of recipient email addresses (1-50 recipients)
bccNoOptional array of BCC email addresses. You MUST ask the user for this parameter. Under no circumstance provide it yourself
tagNoTag for tracking and analytics (max 64 characters)
fromYesSender email address. You MUST ask the user for this parameter. Under no circumstance provide it yourself
htmlNoHTML email content. At least one of html, text or template_slug is required.
textNoPlain text email content. At least one of html, text or template_slug is required.
headersNoCustom email headers (up to 10). Standard envelope headers (From, To, Subject, etc.), SparkPost internal headers (X-MSYS-API) and List-Unsubscribe headers are managed automatically and cannot be overridden.
optionsNoEmail delivery options
subjectNoEmail subject line. Required unless template_slug is provided — templates supply their own subject as a default. If provided alongside a template, overrides the template's subject.
amp_htmlNoAMP HTML content for supported email clients.
metadataNoCustom metadata for tracking (e.g. { "user_id": "123", "campaign": "onboarding" })
reply_toNoOptional reply-to email address. You MUST ask the user for this parameter. Under no circumstance provide it yourself
from_nameNoSender display name (e.g. "Acme Support")
project_idNoProject ID containing the template. Defaults to the team's default project.
attachmentsNoArray of file attachments. Each needs name, type and either data (base64) or filePath.
reply_to_nameNoReply-To display name
template_slugNoTemplate slug to use for email content. When provided, the template's HTML is used. Use get-merge-tags to discover required substitution_data keys.
idempotency_keyNoOpaque key making this send safe to retry. Reuse the SAME value when retrying and the API returns the original result instead of delivering a second email. Derive it from what the send is about (e.g. "order-12345-receipt"), not from a timestamp or random value — a fresh key on a retry defeats the point. Keys are kept 24 hours and are scoped per team and API key.
template_versionNoSpecific template version to use. Defaults to the active version.
substitution_dataNoVariables for template substitution (e.g. { "first_name": "John" }).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.7.0

TDQS

A4.3/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations, the description carries the full burden and does well on key behaviors: it describes the return shape, warns that retries can duplicate sends, and explains idempotency key reuse. It omits permissions, rate limits, and whether sent email can be recalled.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The bold section headers front-load purpose, returns, usage, and retry behavior effectively. The 'Key trigger phrases' list repeats much of the preceding usage bullets and could be trimmed without losing information.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a complex 21-parameter mutation tool with no annotations or output schema, the description covers the essentials: purpose, return value, usage context, and retry safety. It is less complete on permissions, limits, and the many optional delivery/content parameters, which are left to the fully documented schema.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3, but the description adds cross-parameter meaning: template_slug and substitution_data belong together, and subject becomes optional when a template is used. It still does not explain most of the 21 parameters, leaving that to the schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource: send a transactional email to one or more recipients. The examples of one-off messages (password reset, receipt, alert) distinguish it from campaign-style sending without requiring the agent to inspect sibling schemas.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Provides clear when-to-use guidance with trigger phrases and a specific template workflow. It does not explicitly name exclusions or an alternative such as send-campaign, so the agent must infer that bulk/campaign sends are out of scope.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.