Skip to main content
Glama
Lettr MCP Server

Lettr MCP Server

Official
by lettr-com

Update Template

update-template

Modify an existing template's name or content. Supplying new HTML or JSON automatically creates a new active version; HTML and JSON are mutually exclusive.

Instructions

Update an existing template's name and/or content. Providing new html or json content creates a new version automatically. The html and json fields are mutually exclusive.

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": {
      "slug": "<slug>"
    },
    "name": "update-template"
  }
}

Input Schema

NameRequiredDescriptionDefault
htmlNoNew HTML content. Creates a new active version. Mutually exclusive with json.
jsonNoNew JSON content for visual editor. Creates a new active version. Mutually exclusive with html.
nameNoNew name for the template
slugYesThe template slug to update
project_idNoProject ID to find the template in. If not provided, uses the team's default project.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.7.0

TDQS

A3.5/5.0
Behavior3/5

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

With no annotations, the description must carry the behavioral load. It does disclose the significant trait that content changes auto-create a new active version, but omits whether prior versions are retained/recoverable, what permissions or project scoping apply, and what the response contains. The versioning disclosure is the main value-add; the rest of the mutation profile is unstated.

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?

Three short sentences, front-loaded with the core action and followed by the versioning consequence and the constraint. The final sentence duplicates schema-stated information but functions as a useful guardrail; no filler wording.

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 5-parameter mutation with full schema coverage and no output schema, the definition covers the action, the auto-versioning consequence, and the html/json constraint. Missing only the return value and failure/permission behavior, which are minor given schema richness.

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 the schema already documents all five parameters including the mutual exclusivity and the project_id fallback. The description's 'mutually exclusive' line restates the schema rather than adding new meaning, so the baseline of 3 applies.

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 description opens with a specific verb+resource ('Update an existing template') and scopes the mutable fields to name and/or content. It is clearly distinguishable from create-template/delete-template/get-template by the word 'update' and by the versioning note, though it never names a sibling explicitly.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

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

It gives useful conditional guidance for the content parameters ('Providing new html or json creates a new version automatically' and they are mutually exclusive), but says nothing about when to use this versus create-template or get-template-html, nor about what happens if only slug is supplied. Usage is implied rather than framed as when/when-not.

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