Skip to main content
Glama
email-design-mcp

email-design-mcp

generate_email

Create a brand-aware email template from a natural language prompt, returning layout instructions and expert guidance for producing MJML, ready for compilation into final HTML.

Instructions

Generate a professional email template from a natural language prompt. Returns expert system prompts, brand context, layout instructions, and a user instruction for the AI to produce MJML. After generating MJML, call compile_mjml to get the final HTML.

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": {
      "prompt": "<prompt>"
    },
    "name": "generate_email"
  }
}

Input Schema

NameRequiredDescriptionDefault
typeNoEmail type. Auto-detected from prompt if not specified.
styleNoLayout style preference (e.g., "minimalist", "hero", "grid"). Picks a matching variant.
promptYesDescription of the email to generate (e.g., "Create a welcome email for new subscribers")
brand_idNoBrand profile ID to use. Uses the most recently updated brand if not specified.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

A4.2/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does the most important job: disclosing that the return value is a set of prompts and layout instructions, not finished HTML/MJML, which prevents an agent from misusing the result. It also discloses the required two-stage workflow with compile_mjml. It does not state side effects, whether generation is deterministic, or what happens if brand context is missing.

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 surprising part of the contract (returns prompts, not a template) is front-loaded and the follow-on step is stated last in workflow order.

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?

There is no output schema, and the description compensates well by enumerating the four returned artifacts and naming the downstream tool. What remains underspecified is how an agent should assemble those artifacts into MJML and when to re-run versus move to refine_email. For a four-parameter generator this is nearly complete.

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 coverage is 100%, so all four parameters including the type enum and their descriptions are already documented. The description adds no syntax, format, or precedence guidance beyond the schema (e.g., how an explicit type interacts with prompt auto-detection), so the 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?

States a specific verb+resource ("Generate a professional email template from a natural language prompt") and, crucially, clarifies that the output is not the template itself but expert system prompts, brand context, layout instructions, and a user instruction to produce MJML. It also places itself in a pipeline by naming compile_mjml as the follow-on step, so an agent can distinguish it from siblings without reading the schema.

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

Usage Guidelines4/5

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

Gives a clear trigger (natural language prompt) and an explicit next action ("After generating MJML, call compile_mjml to get the final HTML"). It does not address when to prefer siblings such as refine_email or export_email, so iteration and export paths are left to inference.

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