Skip to main content
Glama

Update Template

update_template
DestructiveIdempotent

Update an existing HTML email template. Only the fields you pass change; the current name, HTML, plain text and category are kept otherwise. It can't change drag-and-drop templates: revise those with update_dnd_email_template, and design new ones with create_dnd_email_template. Personalise with [[key]] merge tags, e.g. [[name]] for the first name (keys from list_custom_fields); {{…}} is not replaced in campaigns. Templates that would send broken (raw or unknown tags, a tag after a greeting, http images, missing alt text, placeholder links, over 102 KB) are refused with the fixes.

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>"
    },
    "name": "update_template"
  }
}

Input Schema

NameRequiredDescriptionDefault
htmlNoNew HTML content (leave out to keep the current HTML)
nameNoNew template name (leave out to keep the current name)
dry_runNoShow what would change without changing anything
plain_textNoNew plain text (leave out to keep it; if only html changes it is regenerated from the new HTML)
category_idNoCategory ID from list_template_categories; 0 = uncategorized (leave out to keep the current category)
template_idYesTemplate ID

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / template_id / description
      Previous value: -"Template ID,required"New value: +"Template ID"
  2. Changed7 schema fields changed
    • addedInput schema / properties / category_id
      Added value: +{
      +  "description": "Category ID from list_template_categories; 0 = uncategorized (leave out to keep the current category)",
      +  "type": [
      +    "null",
      +    "integer"
      +  ]
      +}
    • changedInput schema / properties / html / description
      Previous value: -"HTML content"New value: +"New HTML content (leave out to keep the current HTML)"
    • changedInput schema / properties / html / type
      Previous value: -"string"New value: +[
      +  "null",
      +  "string"
      +]
    • changedInput schema / properties / name / description
      Previous value: -"Template name"New value: +"New template name (leave out to keep the current name)"
    • changedInput schema / properties / name / type
      Previous value: -"string"New value: +[
      +  "null",
      +  "string"
      +]
    • changedInput schema / properties / plain_text / description
      Previous value: -"Plain text content"New value: +"New plain text (leave out to keep it; if only html changes it is regenerated from the new HTML)"
    • changedInput schema / properties / plain_text / type
      Previous value: -"string"New value: +[
      +  "null",
      +  "string"
      +]
  3. Changed2 schema fields changed
    • removedInput schema / properties / api_key
      Removed value: -{
      -  "description": "MailerCloud API key",
      -  "type": "string"
      -}
    • addedInput schema / properties / dry_run
      Added value: +{
      +  "description": "Show what would change without changing anything",
      +  "type": "boolean"
      +}
  4. First observed

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true, idempotentHint=true and openWorldHint=true, but the description adds real substance on top: partial-update semantics (unpassed fields are preserved), the merge-tag substitution rule ({{…}} is not replaced in campaigns), and a concrete list of validation refusals with the class of fixes required. It does not describe what the tool returns or how a refusal surfaces, so it stops short of the top score.

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?

Front-loaded with the purpose and the sibling routing in the first two sentences, then the merge-tag and validation detail. Dense but each sentence carries distinct information; the final parenthetical validation list is a long run-on that slightly hurts skimability.

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 partial-update tool with no output schema, the definition covers the critical gaps: what is preserved, what is rejected, and which sibling handles the excluded template type. The only shortfall is the return side — what dry_run emits and how a validation refusal is reported back to the caller.

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 per-field meaning is already carried by the schema; the baseline would be 3. The description earns above that by adding rules the schema cannot express — the [[key]] syntax for html, where keys come from (list_custom_fields), and the 102 KB / alt-text / http-image constraints that govern what a valid html value may contain.

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?

"Update an existing HTML email template" gives a specific verb and resource, and the description immediately scopes it against the drag-and-drop variant (update_dnd_email_template / create_dnd_email_template). An agent can separate this from create_template, clone_template and update_dnd_email_template without opening any 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?

Explicit when-not-to-use guidance: drag-and-drop templates must go to update_dnd_email_template, and new DnD designs to create_dnd_email_template. It also routes the agent to list_custom_fields for merge tag keys, so the alternative/reference tools are named alongside the condition that selects them.

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