HTML Email Playbook

v0.8.0
io.github.OsamaHassouna/email-playbook-mcp Checked 3 days ago Published 1 month ago

Teaches AI to write HTML email that renders in Outlook, Gmail, and Apple Mail.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

list_categories

List all rule categories in the Email Playbook with a one-line description, page count, and the slug and title of each page in it. Categories are: structure (head/body container/header/body/footer), compatibility (Outlook MSO, RTL, responsive), production (Gmail clipping, dark mode, preheader, bulletproof buttons), ai-generation (constraints for AI emitters). Pass a page slug to get_rule to fetch just that page. For reusable components, use list_components instead — they live in a separate dimension and are not returned by get_playbook_rules.

get_playbook_rules

Return rule pages. format "checklist": each page as its slug, title, description and a short list of the rules to follow, without the body or code; leave out category to get every page in one call (about 16 KB). format "full" (default, needs a category): each page with title, description, checklist, markdown body and all HTML/CSS code examples. Start with the checklists, then fetch the pages you need with get_rule. Components are not included: use list_components / get_component.

ParameterTypeDescription
categorystringWhich rule category to fetch. Required for format "full"; optional for "checklist".
formatstringfull (default): whole pages with code. checklist: titles and rules only.

get_rule

Return one rule page: slug, category, title, description, checklist, and the markdown body, which includes the page's HTML/CSS code. Accepts the full slug (e.g. "compatibility/responsive"), just the page name ("responsive"), or a page link from a body ("/email-playbook/compatibility/responsive/"). Get the slugs from list_categories. Much smaller than fetching the whole category with get_playbook_rules.

ParameterTypeDescription
slug *stringPage slug, e.g. "compatibility/responsive" or "responsive".
include_examplesbooleanAlso return the code examples as a separate array (they are already in the body). Default false.

list_components

List all reusable email components in the playbook with their metadata: name, subcategory (layout/media/interactive/text), description, whether they require Outlook VML, and whether they are responsive. Use this first to discover what components exist before calling get_component.

get_component

Return the full record for a single component: title, description, narrative body, the primary HTML pattern, list of slots (placeholders the model should fill), VML/responsive flags, and all code examples. Use after list_components to fetch the actual HTML pattern to paste into an email.

ParameterTypeDescription
name *stringComponent name. Get the list from list_components first.