Skip to main content
Glama
Resend Email MCP

Resend Email MCP

Compose Template

compose-template

Set an email template's TipTap JSON content so users can edit and style it visually in the Resend dashboard, while optionally updating the subject or name in the same call.

Instructions

Purpose: Set the TipTap JSON content of a template, enabling it to be edited visually in the Resend dashboard editor. Automatically connects and disconnects from the editor. Can also update metadata (subject, name) in the same call.

This is the recommended way to set email content. Content set via compose-template can be visually edited by the user in the dashboard.

Workflow: get-tiptap-json-content (with include_schema: true) → compose-template

When to use:

  • After create-template, to set the email body

  • When the user wants to write, edit, or style email content

  • When the user wants to collaborate on the email in the dashboard editor

Important: Always call get-tiptap-json-content first to retrieve the existing TipTap JSON, then build your changes on top of it. Skipping this will overwrite all existing content.

Note: Switching between compose (TipTap) and update (raw HTML) modes is lossy — some content or formatting may be lost. If the template already has HTML content, ask the user before switching to compose mode.

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>",
      "content": "<content>"
    },
    "name": "compose-template"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesThe template ID, alias, or Resend dashboard URL (e.g. https://resend.com/templates/<id>)
nameNoUpdate the template name.
contentYesTipTap JSON content. Call get-tiptap-json-content (with include_schema: true) first to get the existing content and the schema reference.
subjectNoUpdate the default email subject.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv2.28.2
    • changedInput schema / required
      Previous value: -[
      -  "id"
      -]New value: +[
      +  "id",
      +  "content"
      +]
  2. Changed1 schema field 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"
  3. First observedv2.10.0

TDQS

A4.4/5.0
Behavior4/5

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

No annotations are provided, so the description carries the behavioral burden. It discloses important risks: skipping the prerequisite overwrites all existing content, switching between compose and update modes is lossy, and the tool automatically connects to and disconnects from the editor. It does not cover permissions, rate limits, or response behavior.

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?

The description is front-loaded with purpose and recommended usage, then organized with clear headings. It is somewhat long due to repeated emphasis on the recommended workflow and overwrite warning, but most sentences earn their place.

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

Completeness5/5

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

For a mutation tool with nested TipTap content, no annotations, and no output schema, the description covers the essential workflow, destructive overwrite risk, lossy mode switching, and automatic editor connection. It gives enough context for an agent to call the tool correctly without additional return-value documentation.

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 the schema already documents all four parameters. The description adds workflow meaning for the content parameter by insisting that existing TipTap JSON be fetched and built upon, but it does not add syntax or format details beyond the schema.

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?

The description states a specific verb and resource: setting TipTap JSON content on a template so it can be visually edited in the Resend dashboard. It clearly distinguishes this from raw HTML updates via update-template and explains that metadata can be updated in the same call.

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?

It gives explicit when-to-use cases, a required workflow (get-tiptap-json-content with include_schema: true first), and a named alternative (update-template for raw HTML). It also advises asking the user before switching modes when HTML content exists.

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