Skip to main content
Glama
Lettr MCP Server

Lettr MCP Server

Official
by lettr-com

Delete Template

delete-template

Permanently delete an email template and all its versions by slug. This action is irreversible, and any emails referencing the deleted template will fail to send.

Instructions

Permanently delete an email template and all its versions. Before using this tool, you MUST double-check with the user that they want to delete this template. Warn them that this action is irreversible and any emails referencing this template slug will fail.

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": "delete-template"
  }
}

Input Schema

NameRequiredDescriptionDefault
slugYesThe template slug to delete
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

A4.1/5.0
Behavior5/5

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

With no annotations provided, the description carries the full burden and does so well: it discloses permanence, that all versions are destroyed, that emails referencing the slug will break, and that user confirmation is mandatory. These are exactly the consequences an agent needs before invoking an irreversible mutation.

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 destructive scope and followed by the required confirmation step. No filler and nothing redundant.

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 simple two-parameter delete tool with no output schema, the description covers consequences, irreversibility, and the confirmation protocol. It omits permission requirements and what the call returns on success, which are minor for this complexity.

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 coverage is 100%, so both slug and project_id are already documented in the schema. The description adds only indirect meaning for slug (it is referenced by emails), and says nothing about the optional project_id's scoping effect, so baseline 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 gives a specific verb and resource ('Permanently delete an email template and all its versions'), adding the important cascade scope that the name alone does not convey. It does not explicitly contrast itself with update-template or get-template, but the destructive operation is unambiguous against those siblings.

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?

It states a clear precondition for invocation: the agent MUST confirm with the user and warn about irreversibility before calling. It gives no guidance on alternatives (e.g., update-template if the user only wants to change a template), so it stops short of full when-to-use/when-not guidance.

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