Skip to main content
Glama
emailmd

emailmd

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault

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:

  1. 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.

  2. Call lint and fix what it finds (deliverability, accessibility, readability).

  3. 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

CapabilityDetails
tools
{
  "listChanged": true
}

Tools

Functions exposed to the LLM to take actions

NameDescription
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

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

A3.9/5.0

Scored across 3 tools

Disambiguation5/5

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.

Naming Consistency4/5

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.

Tool Count4/5

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.

Completeness4/5

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.

Maintenance

ActivityMaintained
ResponsivenessUsually handled