Skip to main content
Glama
email-design-mcp

email-design-mcp

refine_email

Modify a generated email using natural language feedback, targeting specific sections like header, hero, or CTA. Use version history to undo or branch changes.

Instructions

Iterate on a previously generated email. Provide natural language feedback to modify the design. Supports section-level targeting (header, hero, body, cta, footer) and version history for undo.

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": {
      "email_id": "<email_id>",
      "feedback": "<feedback>"
    },
    "name": "refine_email"
  }
}

Input Schema

NameRequiredDescriptionDefault
mjmlNoThe current MJML of this email. Required on first refinement since generate_email returns instructions, not MJML. On subsequent refinements, the stored MJML is used if this is omitted.
sectionNoTarget a specific section: header, hero, body, features, cta, testimonial, footer. If omitted, the AI modifies the entire email.
versionNoRevert to a specific version number before applying this refinement. Useful for undo/branching.
email_idYesID of the email to refine (returned by generate_email)
feedbackYesNatural language feedback describing what to change (e.g., "Make the headline bigger", "Change the button color to red")

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

B3.4/5.0
Behavior3/5

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

With no annotations, the description carries the full burden. It usefully discloses that refinement is section-targetable and that version history enables undo, which signals reversibility for a mutation tool. It omits important behavior: that the first refinement requires the MJML payload, what is returned (updated MJML vs. instructions), and whether prior versions are retained automatically.

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?

Three short sentences, front-loaded with the core action and followed by capability notes. Nothing is padding, though the parenthetical section list could be trimmed since the schema already enumerates the same values.

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 five-parameter mutation tool with no annotations and no output schema, the description covers the action and two key capabilities but leaves the return contract and the MJML-on-first-call requirement to the schema. An agent would still need to read the parameter descriptions to call it correctly the first time.

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%, so every parameter is already documented, setting the baseline at 3. The description's section list (header, hero, body, cta, footer) is actually incomplete relative to the schema enum of values (which adds features and testimonial), and its 'version history for undo' restates the schema's version field rather than adding new meaning.

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?

The description gives a specific verb and resource: iterate on a previously generated email by supplying natural-language feedback. The phrase 'previously generated' implicitly separates it from the sibling generate_email, but no sibling is named outright, so differentiation is inferred rather than stated.

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 'previously generated email' and 'Provide natural language feedback', which tells an agent this is the post-generation editing step. However, there are no explicit when-not conditions, no mention of when to prefer compile_mjml or validate_email instead, and no stated prerequisite that the email must already exist.

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