Skip to main content
Glama
Replaced by its MCP Registry listing

This endpoint is listed in the official MCP Registry as Nunify. If you published it, claim ownership there.

Update Email Template

update_email_template
Idempotent

Update an email template's subject and body. Cannot update a template linked to an active reminder/promotion mailer. Two update modes: - is_custom=false (recommended): provide 'content' as valid MJML markup. MJML is validated and compiled to HTML server-side; source is stored in content_template. - is_custom=true: provide 'body' as raw rendered HTML. Use this when you want full control and don't need MJML's responsive primitives. Template variables — use ||Variable Name|| in subject or body; they are substituted per-recipient at send time. Event: ||Start Date||, ||Start Time||, ||End Date||, ||End Time||, ||Venue Name||, ||Venue Link||, ||Venue Address||, ||App Name||, ||iOS App Link||, ||Android App Link||, ||Web App Link||, ||Web Site Link|| Recipient (user): ||First Name||, ||Last Name||, ||Full Name||, ||User Name||, ||Email||, ||Phone||, ||Designation||, ||Company||, ||User QR Code|| (renders as QR image URL), ||External Id||, ||Attendee Id||, ||Ticket Id||, ||Ticket Type||, ||Ticket Type Description||, ||Certificate Link|| Also supported: any additional user field defined on the event — reference it by the field's display name, e.g. ||Company Size||.

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": {
      "event_id": "<event_id>",
      "template_id": "<template_id>",
      "subject": "<subject>"
    },
    "name": "update_email_template"
  }
}

Input Schema

NameRequiredDescriptionDefault
bodyNoFull rendered HTML body (required when is_custom=true).
contentNoMJML markup (required when is_custom=false).
subjectYesEmail subject template. May include ||*Variable*|| placeholders.
event_idYesEvent UUID returned by search_events.
is_customNofalse means provide MJML in 'content'; true means provide raw HTML in 'body'.
template_idYesEmail template UUID.

Output Schema

NameRequiredDescriptionDefault
hintYes
messageYes
templateYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare non-read-only, idempotent, non-destructive, closed-world, so the description earns credit for disclosing behavior beyond that: MJML is validated and compiled to HTML server-side, the source is persisted in content_template, and template variables are substituted per-recipient at send time rather than stored expanded. The blocking precondition on active mailers is a genuinely useful operational constraint. It does not mention permissions/authorization or what happens when MJML validation fails, which keeps it off a 5.

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 operative instructions — purpose, restriction, mode selection — are front-loaded in the first few sentences, so an agent gets what it needs immediately. The trailing variable catalog is long (roughly thirty entries) and is the only bloat, though it carries information available nowhere else in the definition. Acceptable, but a shorter pointer plus the most common variables would have been tighter.

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?

With an output schema present and full schema description coverage, the description need not explain returns, and it correctly spends its space on the parts structured data cannot express: mode selection, the mailer-linked restriction, server-side MJML compilation, and placeholder syntax. For a six-parameter idempotent update tool, an agent has enough to invoke it correctly on the first try.

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: the coupling between is_custom and which of content/body is required, and the distinction that content is MJML source while body is already-rendered HTML. It also documents the ||*Variable Name*|| placeholder syntax and enumerates available variables, which the schema does not. Minor gap: it does not say what happens if both content and body are supplied.

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 first sentence gives a specific verb and resource plus the exact mutable fields: "Update an email template's subject and body." It also states a hard eligibility rule (cannot update a template linked to an active reminder/promotion mailer), which lets an agent rule out the call before attempting it. It stops short of naming a sibling (e.g. read_email_templates) for the read path, so the boundary with the rest of the catalog is implied 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 Guidelines4/5

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

The two update modes are explicitly laid out with a recommendation (is_custom=false is "recommended") and a stated condition for the alternative (is_custom=true "when you want full control and don't need MJML's responsive primitives"). It also gives an exclusion condition up front about mailer-linked templates. What is missing is any guidance on which sibling to use for reading or duplicating a template, or what to do if the update is rejected.

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