Skip to main content
Glama
Resend Email MCP

Resend Email MCP

Compose Broadcast

compose-broadcast

Set a broadcast's TipTap JSON content so users can visually edit the email in the Resend dashboard editor, and optionally update subject, preview text, and name in one call.

Instructions

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

This is the recommended way to set email content. Content set via compose-broadcast can be visually edited by the user in the dashboard. Use this for newsletters and any broadcast where the user may want to refine the content.

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

When to use:

  • After create-broadcast, 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 broadcast 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": {
      "broadcastId": "<broadcastId>",
      "content": "<content>"
    },
    "name": "compose-broadcast"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNoUpdate the broadcast name (internal label).
contentYesTipTap JSON content. Call get-tiptap-json-content (with include_schema: true) first to get the existing content and the schema reference.
subjectNoUpdate the email subject line.
broadcastIdYesBroadcast ID or Resend dashboard URL (e.g. https://resend.com/broadcasts/<id>)
previewTextNoUpdate the preview text (shown in inbox before opening the email).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv2.28.2
    • changedInput schema / required
      Previous value: -[
      -  "broadcastId"
      -]New value: +[
      +  "broadcastId",
      +  "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.5/5.0
Behavior5/5

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

With no annotations supplied, the description carries the full burden and does so: it discloses automatic editor connect/disconnect, that skipping the prerequisite read will overwrite all existing content, and that switching between compose and update modes is lossy. These are non-obvious destructive and side-effect behaviors an agent could not infer from the schema.

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?

Purpose is front-loaded and the sections (Purpose, Workflow, When to use, Important, Note) are scannable. There is mild redundancy: the prerequisite call to get-tiptap-json-content is repeated in the Workflow, Important, and content-parameter text, costing a little density but reinforcing a critical safety step.

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 mutation tool taking a nested TipTap object with no annotations and no output schema, the definition covers the prerequisite workflow, destructive overwrite risk, and mode-switching caveats. It does not say what the call returns or whether it touches draft/published state, which keeps it short of full completeness.

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 five parameters are already documented in the schema, including broadcastId accepting a dashboard URL and content requiring a prior get-tiptap-json-content call. The description reinforces that content must be built on top of existing JSON but adds no new syntax, defaults, or constraints beyond the schema baseline.

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: 'Set the TipTap JSON content of a broadcast' and adds the secondary capability of updating metadata in the same call. It explicitly distinguishes itself from update-broadcast by naming the compose (TipTap) vs update (raw HTML) modes, so an agent can route between them without reading either schema.

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?

Provides an explicit workflow (get-tiptap-json-content with include_schema: true → compose-broadcast) plus a three-item 'When to use' list covering post-create body setting, editing, and dashboard collaboration. It also names a condition to pause: ask the user before switching if the broadcast already has HTML content.

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