Skip to main content
Glama

Update Drag-and-Drop Email Template

update_dnd_email_template
DestructiveIdempotent

Revise a drag-and-drop template that create_dnd_email_template saved, for changes the user asks for after saving. Send the full revised email, built the same way as for create_dnd_email_template: it replaces the whole design. It only changes a template that hasn't been edited in Mailercloud since it was saved; otherwise make the change in Mailercloud's drag-and-drop editor or create a new template. Use dry_run: true to check and preview first.

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": {
      "template_id": "<template_id>",
      "email": "<email>"
    },
    "name": "update_dnd_email_template"
  }
}

Input Schema

NameRequiredDescriptionDefault
emailYesThe full revised email as rows and blocks (it replaces the whole design), never HTML
dry_runNoCheck and preview the change without saving it
category_idNoNew category ID from list_template_categories
template_idYesID of a template saved by create_dnd_email_template

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / email / properties / rows / items / properties / slots / description
      Previous value: -"Section slot values by slot name: text slots take text; image slots take {src, alt, link, decorative}; button slots take {text, href}"New value: +"Section slot values by slot name: text slots take text; image slots take {src, alt, link, width, decorative}; button slots take {text, href}"
  2. Added

TDQS

A4.6/5.0
Behavior4/5

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

Beyond the annotations (destructiveHint=true, idempotentHint=true, openWorldHint=true), the description spells out the destructive scope (it replaces the whole design) and a real precondition (only templates untouched in Mailercloud since saving can be updated). Residual gaps remain: no mention of what is returned, whether the template ID or version survives, or what an error looks like when the precondition fails.

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?

Three sentences, front-loaded with the core action, then the destructive semantics, then the routing guardrail and the preview flag. Nothing is wasted, though the phrase 'built the same way as for create_dnd_email_template' reads slightly dense.

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 destructive tool with a deeply nested input and no output schema, the description covers what it does, when it is allowed, and how to preview safely. The main shortfall is post-call behavior: with no output schema, an agent gets no hint of the response shape or confirmation that the new design replaced the old one.

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 already 100%, so the baseline is 3, but the description adds meaning the schema cannot: the email must be built the same way as the create_dnd_email_template payload and is never HTML, and template_id must come from a template saved by that tool. It also frames dry_run as a check-and-preview rather than a separate mode.

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?

"Revise a drag-and-drop template that create_dnd_email_template saved" states a specific verb and resource and anchors the resource to its origin in the sibling that created it. The description also clarifies the scope (whole design replacement) and thereby separates it from edit_dnd_email and update_template, which an agent could otherwise confuse.

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 an explicit use case (changes the user asks for after saving) and an explicit when-not with alternatives: if the template has been edited in Mailercloud since saving, make the change in Mailercloud's drag-and-drop editor or create a new template. The dry_run: true path is named for a preview-first workflow.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources