Skip to main content
Glama
emailmd

emailmd

Render an email

render
Read-onlyIdempotent

Convert emailmd markdown into email-safe HTML and plain text for Outlook and Gmail, returning metadata, repair warnings, and a live preview link.

Instructions

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

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": {
      "markdown": "<markdown>"
    },
    "name": "render"
  }
}

Input Schema

NameRequiredDescriptionDefault
minifyNoMinify the HTML. Recommended for sending; helps stay under Gmail's 102KB clip limit.
markdownYesThe emailmd markdown document, optionally starting with YAML frontmatter.
partialsNoNamed markdown partials spliced in wherever the document says "::: include <name>".

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.9.1

TDQS

A3.5/5.0
Behavior4/5

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

Annotations already declare this a safe, idempotent, closed-world read, so the description rightly focuses on behavior it can add: a complete enumeration of return fields (html, text, meta, warnings, htmlBytes, previewUrl) in the absence of an output schema, plus the notable explanation that warnings are non-fatal repairs to be aimed at zero. It omits anything about input size limits or error conditions, which keeps it from a 5.

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?

Two sentences with the action front-loaded and the return payload enumerated compactly in a single parenthetical. The field list is long but each item earns its place because no output schema exists; only the phrase "a live browser preview of this exact document to share with the user" is slightly padded.

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?

With no output schema, the description carries the return-value burden and does so fully, and annotations cover the safety profile while the schema covers all three parameters. What remains missing is upstream guidance about validating input with lint before rendering and what happens on non-repairable errors.

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

Parameters3/5

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

The description never mentions minify or partials, leaving all parameter meaning to the schema, which already documents every parameter at 100% coverage. The one value-add is characterizing markdown as an "emailmd" document with optional frontmatter, but that is partly duplicated in the schema.

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

Purpose4/5

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

"Render emailmd markdown into email-safe HTML" gives a specific verb (render) and a specific resource (emailmd markdown), plus the output format constraint (email-safe HTML). It is clearly distinguishable from a validator (lint) or a docs reader, though it never names a sibling to contrast with.

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

Usage Guidelines2/5

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

There is no statement of when to call this versus the siblings — nothing like "use lint to check for errors first" or "call this only after the document is valid." Usage is only inferable from the tool name and the described output, so an agent gets no explicit routing guidance.

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

Deploy Server

Other Tools