Skip to main content
Glama
email-design-mcp

email-design-mcp

compile_mjml

Converts MJML markup into responsive, production-ready HTML email and returns the compiled HTML with file size and validation warnings.

Instructions

Compile MJML markup into responsive, production-ready HTML email. Returns the compiled HTML along with file size and any validation warnings.

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": {
      "mjml": "<mjml>"
    },
    "name": "compile_mjml"
  }
}

Input Schema

NameRequiredDescriptionDefault
mjmlYesMJML source code to compile into responsive HTML

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

A3.8/5.0
Behavior3/5

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

No annotations exist, so the description carries the burden on its own. It does disclose the return payload (compiled HTML, file size, validation warnings), which is genuinely useful behavior beyond the schema, but it says nothing about whether invalid MJML throws or returns warnings-only, or how large output is handled.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two tight sentences with zero filler: the action and output quality come first, the return shape second. Every clause carries information.

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?

For a single-parameter transformation tool, the definition covers purpose and output adequately, and no output schema is needed because the return contents are summarized. A small gap remains around error behavior on malformed MJML, which would matter for an agent diagnosing failures.

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?

Schema description coverage is 100% and there is a single required parameter, so the schema already explains 'mjml'. The description adds only that the source compiles into 'responsive' HTML, which is slightly redundant with the schema text. Baseline 3 applies.

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

Purpose5/5

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

Specific verb (compile) plus specific resource (MJML markup) plus the output artifact (responsive, production-ready HTML email). It is unambiguous and distinguishable from generate_email or validate_email, which do not transform markup into HTML.

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?

Usage is implied by the verb: use when you already have MJML source and need HTML. It does not state when to prefer this over validate_email or how it relates to generate_email, and gives no prerequisites about MJML validity. Adequate but 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.