Skip to main content
Glama
Resend Email MCP

Resend Email MCP

Update Template

update-template

Modify an existing email template's name, subject, sender, HTML, text, variables, or alias by ID, alias, or dashboard URL; republish after changes to make published templates live.

Instructions

Update template metadata by ID, alias, or Resend dashboard URL (name, subject, from, html, variables, etc.). After updating a published template, use publish-template again to make the changes live. To edit TipTap content, use compose-template instead.

Note on html/text fields: Setting html or text via this tool replaces any content previously set via compose-template. This switch is lossy — some content or formatting may be lost. Prefer compose-template for content changes. If the template was composed with TipTap content, ask the user before overwriting it with raw 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": {
      "id": "<id>"
    },
    "name": "update-template"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesThe template ID, alias, or Resend dashboard URL (e.g. https://resend.com/templates/<id>)
fromNoNew sender email address.
htmlNoNew HTML content for the template. Email HTML requirements — follow all of these without exception: STRUCTURE - Always include <!DOCTYPE html>, <html>, <head>, <body> - Layout must be table-based: <table>, <tr>, <td> — never use <div> for layout - Outer wrapper table at width="100%", inner content table at max 600px wide - Every table must have cellpadding="0" cellspacing="0" border="0" CSS - All styles must be inline (style="...") — no <style> tag, no external stylesheets - No flexbox, no grid, no CSS variables, no CSS shorthand (use padding-top not padding) - font-family must always include web-safe fallbacks (Arial, Helvetica, Georgia, sans-serif) - Always set font-size, line-height, and color explicitly on every text element IMAGES - Always set width, height, border="0", display:block on every <img> - Use absolute URLs only — no relative paths - Always include alt text LINKS & BUTTONS - Never use <button> — use <a> styled as a button inside a <td> - No <video>, <form>, or <input> elements - No JavaScript of any kind OUTLOOK COMPATIBILITY - Use bgcolor attribute on <td> alongside CSS background-color - No CSS background-image (poor Outlook support) - Add <!--[if mso]> conditionals where needed for Outlook rendering META (in <head>) - <meta charset="UTF-8"> - <meta name="viewport" content="width=device-width, initial-scale=1.0"> - <meta http-equiv="X-UA-Compatible" content="IE=edge">
nameNoNew name for the template.
textNoNew plain text version of the message. Pass an empty string to disable automatic text generation.
aliasNoNew alias for the template.
replyToNoNew Reply-to email address(es).
subjectNoNew default email subject.
variablesNoNew array of template variables (replaces existing variables).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv2.28.2
    • removedInput schema / properties / variables / items / properties / fallbackValue / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "number"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedInput schema / properties / variables / items / properties / fallbackValue / type
      Added value: +[
      +  "string",
      +  "number",
      +  "null"
      +]
  2. Changed2 schema fields changedv2.12.0
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
    • changedInput schema / properties / text / description
      Previous value: -"New plain text version of the message."New value: +"New plain text version of the message. Pass an empty string to disable automatic text generation."
  3. First observedv2.10.0

TDQS

A4.6/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 substantial work: it discloses that setting html/text is a lossy replacement of compose-template content, warns that published templates require a second publish step, and flags a user-confirmation case. It omits auth/permission requirements, whether unspecified fields are left untouched, and anything about the response, so it is not fully transparent.

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?

Front-loaded with the core action, then sibling routing, then the destructive-overwrite caveat isolated as a bolded note. The long HTML authoring rules live in the schema where they belong, keeping the description tight.

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 nine-parameter mutation tool with no annotations and no output schema, the description covers the highest-risk behavior (lossy content replacement, republish requirement). It leaves open whether omitted fields are preserved and what the call returns, which an agent would otherwise want to know.

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?

Schema coverage is 100%, so the baseline is 3, but the description adds real meaning beyond the schema by explaining the destructive interaction between html/text and compose-template-composed content. It does not clarify partial-update semantics across the nine optional fields, which is the main remaining gap.

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 and resource ("Update template metadata by ID, alias, or Resend dashboard URL") and enumerates what can be changed. It explicitly differentiates itself from two siblings: compose-template for TipTap content and publish-template for making changes live.

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

Usage Guidelines5/5

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

Gives explicit when-to-use routing: use publish-template again after updating a published template, and use compose-template instead for TipTap content. It even supplies a decision rule ("ask the user before overwriting") for the ambiguous case, which is rare and valuable 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