Skip to main content
Glama

Update email template

update_email_template
DestructiveIdempotent

📧 BIBLIOTECA DE TEMPLATES DE E-MAIL — Atualiza nome, assunto, corpo ou formato de um template existente. ⚠️ Não afeta nenhuma cadência já em produção — o StepEditor só copia o conteúdo no momento do clique (ver list_email_templates); use update_sequence se precisar corrigir uma cadência que já está rodando.

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_email_template"
  }
}

Input Schema

NameRequiredDescriptionDefault
bodyNoNovo corpo (opcional)
nameNoNovo nome (opcional)
is_htmlNo"true"/"false" (opcional)
subjectNoNovo assunto (opcional)
template_idYesID do template a atualizar (obtido via list_email_templates)
target_user_idNoID da conta-alvo (opcional; APENAS o admin da plataforma pode usar). Padrão: a conta autenticada.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations declare destructiveHint=true and idempotentHint=true, so the safety profile is already structured; the description adds real value by explaining the blast radius — StepEditor snapshots content at click time, so live cadences are unaffected. That clarifies a non-obvious consequence of an overwrite operation. It doesn't cover the admin-only restriction on target_user_id beyond what the schema already says, nor failure behavior on a bad id.

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?

Two sentences, front-loaded with the mutation scope and followed immediately by the side-effect caveat and the alternative tool. The emoji markers are decorative but do not pad the content; every clause carries information.

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 6-param, fully-documented-schema mutation with annotations and no output schema, the description covers purpose, impact scope, and sibling routing adequately. Minor gap: nothing about what a successful update returns or how partial updates behave when only one field is supplied, though the schema implies optionality.

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 all six parameters including target_user_id's admin restriction and the is_html enum are already documented in the schema. The description's field list (nome, assunto, corpo, formato) mirrors the schema rather than adding syntax, limits, or format constraints. Baseline 3 applies.

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 (Atualiza) plus the exact resource and the mutable fields (nome, assunto, corpo, formato) of an existing template. The 'BIBLIOTECA DE TEMPLATES DE E-MAIL' framing and the contrast with update_sequence make it distinguishable from create_email_template, delete_email_template and list_email_templates 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 Guidelines4/5

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

Explicitly says the edit does not touch cadences already in production and names update_sequence as the correct tool for that case, plus points at list_email_templates for obtaining the id. It never states the when-not for editing vs. creating a new template, but the actionable routing guidance is there.

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