emailmd
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
emailmd turns markdown into responsive, email-safe HTML that renders correctly across Gmail, Outlook, Apple Mail, and the rest.
Typical workflow:
Write emailmd markdown. Standard markdown works; email-specific features are opt-in:
YAML frontmatter: preheader, theme (light|dark|auto), fonts, a dark: override map, and theme keys like accent_color or font_family.
Buttons: Get Started{button} (variants: {button.secondary}, {button.success}, ...).
Layout directives: ::: hero, ::: columns with ::: column (outer block uses ::::), ::: callout, ::: highlight, ::: header, ::: footer, ::: divider, ::: spacer, ::: social, ::: accordion, ::: centered, ::: raw (HTML passed through untouched at full width), and ::: include .
Data directives, each written as a "Label: value" line or markdown list and drawn from table cells and text glyphs rather than images: ::: chart (bars), ::: progress (one value against a maximum), ::: sparkline and ::: trend (a series, and its change on its own), ::: stats (KPI tiles), ::: breakdown (a ranked list, or a total split into its parts), ::: steps and ::: timeline (an ordered walk, or a status tracker when items are ticked off), ::: rating (a score on a fixed scale). Read their docs pages before using their parameters. A ::: column can hold a chart, progress or breakdown; other directives don't nest in columns.
Call lint and fix what it finds (deliverability, accessibility, readability).
Call render for the final html, the plain-text MIME part, and previewUrl. Share previewUrl with the user so they can open the email in a live preview.
Call read_docs with no arguments for the docs index, and read the specific page (e.g. 'directives/hero', 'frontmatter', 'theme') before using syntax you have not already seen this session.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": true
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| renderA | Render emailmd markdown into email-safe HTML. Returns html (the complete email document), text (the plain-text MIME part), meta (frontmatter), warnings (non-fatal repairs made while rendering; aim for none), htmlBytes, and previewUrl (a live browser preview of this exact document to share with the user). |
| lintA | Check emailmd markdown for deliverability, accessibility, and readability problems without rendering it: missing alt text, http:// links, Gmail's 102KB clip limit, generic link text, spam-trigger phrases, and more. Fix warnings before sending; suggestions are sometimes intentional (e.g. transactional emails without an unsubscribe link). |
| read_docsA | Fetch emailmd documentation from emailmd.dev. Call with no arguments for the index of all pages; pass page to read one (e.g. 'buttons', 'frontmatter', 'theme', 'directives/hero'). Read the relevant page before using syntax you are not sure about. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 3 tools
render (produce HTML/text output), lint (static analysis of deliverability/accessibility), and read_docs (fetch documentation) each target a completely distinct action with no overlap. An agent can trivially decide which to call based on intent.
All names are lowercase and verb-based, but 'render' and 'lint' are bare verbs while 'read_docs' uses verb_noun. The deviation is minor and still readable/unpredictable in a harmless way.
Three tools is at the low end of the ideal range but each earns its place: rendering, linting, and documentation lookup are the essential operations for this domain. No filler or redundant tools.
The render-lint-docs trio covers the full compile-and-validate lifecycle for email markdown, with meta/warnings/previewUrl as useful outputs. Minor gaps exist (no explicit theme/schema listing or auto-fix tool) but these are workable via read_docs.