Skip to main content
Glama
Lettr MCP Server

Lettr MCP Server

Official
by lettr-com

Get Template Merge Tags

get-merge-tags

Retrieve a template's merge tags to discover the substitution_data keys it expects when sending an email, defaulting to the active version.

Instructions

Retrieve the merge tags (variables) for a template. Use this to discover which substitution_data keys a template expects when sending an email. By default returns merge tags for the active version.

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": "get-merge-tags"
  }
}

Input Schema

NameRequiredDescriptionDefault
slugYesThe template slug
versionNoTemplate version number. If not provided, uses the active version.
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/5.0
Behavior3/5

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

With no annotations, the description must carry behavior itself; it does convey that this is a non-mutating retrieval and discloses the important default that the active version is used. It says nothing about auth requirements, error behavior for a missing slug, or the shape of what comes back, which leaves real gaps for a tool with zero annotation coverage.

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?

Three short sentences, front-loaded with what the tool returns, then why to use it, then the default scope. No filler and no repetition of the title.

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 read tool with fully described parameters and no output schema, the description covers what is returned conceptually and the version default. The only shortfall is not characterizing the return value (e.g., a list of tag names/keys), which an agent would otherwise have to discover at call time.

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 slug, version, and project_id including their defaults. The description only reinforces the version default ("By default returns merge tags for the active version") and adds no format or lookup nuance beyond that, making the baseline 3 appropriate.

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 and resource ("Retrieve the merge tags") and immediately glosses the term as "(variables)" and "substitution_data keys a template expects." That gloss distinguishes it from sibling readers like get-template or get-template-html without ambiguity.

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?

Gives an explicit use case: "Use this to discover which substitution_data keys a template expects when sending an email." That tells an agent when to reach for it. It stops short of naming an alternative or a when-not-to-use condition, so it is clear context rather than full routing guidance.

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