Skip to main content
Glama
email-design-mcp

email-design-mcp

validate_email

Validates compiled HTML emails for best practices, catching Gmail clipping size limits, missing alt text, broken links, absent unsubscribe links, and poor text-to-image ratios before sending.

Instructions

Validate a compiled HTML email for best practices: size limits (Gmail clipping), dark mode support, accessibility (alt text), link integrity, unsubscribe link, and text-to-image ratio.

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": {
      "html": "<html>"
    },
    "name": "validate_email"
  }
}

Input Schema

NameRequiredDescriptionDefault
htmlYesCompiled HTML email to validate

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

A3.5/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full disclosure burden. It conveys that the operation is a non-mutating inspection of the supplied HTML and lists the checks performed, but never says what comes back (pass/fail, scored report, list of issues with severity), nor whether issues are warnings or hard failures. For a validator with no output schema, that output-shape gap is material.

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?

A single front-loaded sentence with the verb and object first, followed by a compact enumerated list of checks. The list is dense but each item carries distinct information; only the parentheticals are filler-ish, and nothing is padded.

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

Completeness3/5

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

For a one-parameter, straightforward tool this covers what to pass and what is checked, but with no annotations and no output schema, the description should close the loop on result format and severity semantics. An agent knows how to call it but not how to interpret or report the outcome.

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?

Parameter count is one with 100% schema description coverage, so the schema already defines `html`. The description still adds meaning by specifying the input must be *compiled* HTML (not MJML/partial markup) and by framing the input as the artifact being checked for best practices, which is slightly more than the schema's bare 'Compiled HTML email to validate'.

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?

States a specific verb (validate) and a specific resource (compiled HTML email), then enumerates the exact check categories performed: Gmail clipping size limits, dark mode, alt text, link integrity, unsubscribe, text-to-image ratio. The purpose is unmistakable, though the description never names a sibling such as compile_mjml or export_email to explicitly separate itself from the build/export tools.

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

Usage Guidelines3/5

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

The word 'compiled' implies this runs on already-built HTML rather than MJML source, which implicitly positions it downstream of a compile step, but there is no explicit when-to-use statement, no prerequisite, and no guidance on when to skip validation. Usage is inferable rather than stated.

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