Skip to main content
Glama
Lettr MCP Server

Lettr MCP Server

Official
by lettr-com

List Templates

list-templates

Lists email templates with pagination and filters by project, folder, or purpose. Use it to find template names and slugs before sending a template-based email.

Instructions

Purpose: List email templates with pagination. Returns template names, slugs, and project info.

Returns: Paginated list of templates with id, name, slug, project_id, folder_id, purpose, preparation status and timestamps.

When to use:

  • User asks "show my templates", "what templates do I have?"

  • Before sending a template-based email, to find the template slug

  • Filter by purpose=campaign to find templates a campaign can actually use

  • Filter by folder_id to reconcile a bulk import in one call instead of one get-template per template

  • Use get-template for full details of a specific template

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "list-templates"
  }
}

Input Schema

NameRequiredDescriptionDefault
pageNoPage number. Default: 1
purposeNoOnly return templates of this purpose. Use campaign to find templates that a campaign can send.
per_pageNoNumber of results per page (1-100). Default: 25
folder_idNoOnly return templates in this folder. A folder outside the resolved project is an error, not an empty list, so a wrong id cannot be misread as "nothing there yet". Use list-folders to find one.
project_idNoProject ID to filter templates. If not provided, uses the team's default project.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.7.0

TDQS

A4.6/5.0
Behavior4/5

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

No annotations are supplied, so the description carries the full burden, and it does disclose the paginated, read-only nature of the call and the shape of the returned records. It stops short of stating auth/permission requirements, ordering guarantees, or total-count behavior, which leaves some behavioral gaps for a zero-annotation tool.

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?

Headers and bullets front-load purpose, then returns, then usage, which is easy to scan. There is minor redundancy between the Purpose line ('template names, slugs, and project info') and the fuller Returns line that repeats the same field set.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With no output schema, the description compensates by enumerating the returned fields (id, name, slug, project_id, folder_id, purpose, preparation status, timestamps) and noting pagination. Combined with filter intents and sibling routing, an agent has what it needs to call this correctly.

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 the baseline is 3, but the description adds intent the schema lacks: purpose=campaign is framed as 'templates a campaign can actually use' and folder_id is tied to reconciling a bulk import in one call instead of per-template gets. project_id's default-project fallback is left entirely to the schema.

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 ('List email templates') and immediately scopes it with pagination and the returned fields. It also explicitly differentiates itself from get-template, so an agent can route between list vs. detail without opening either 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?

The 'When to use' block gives concrete trigger phrases, a workflow prerequisite (find the slug before sending), and two specific filtering intents. It also names the alternative tool (get-template) and the condition that selects it, plus points to list-folders for obtaining a folder id.

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