Skip to main content
Glama
mailgun

Mailgun MCP Server

Official
by mailgun

post--v3-domain_name-templates

Create email templates for Mailgun domains to standardize message formatting, headers, and content for consistent email delivery.

Instructions

Create a template

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
domain_nameYes
nameYesName of the template being stored. Supports utf-8 characters and name will be down cased.
descriptionNoDescription of the template being stored
createdByNoOptional metadata field api user can indicate who created the template.
templateNoContent of the template.
tagNoInitial tag of the created version. If the template parameter is provided and the tag is missing, the default value `initial` is used.
commentNoVersion comment. This is valid only if a new version is being created. (template parameter is provided.)
headersNoKey value JSON object of headers to be stored with the template. Where key is the header name and value is the header value. The header names `From`, `Subject`, and `Reply-To` are the only ones currently supported. These headers will be inserted into the MIME at the time we attempt delivery. Headers set at the message level will override headers set on the template. e.g. Setting the From header at the time of sending will override the From header saved on the template. Additionally, headers generated by templates are not reflected on the accepted event as they are not prepended to the message until the message is prepped for delivery. if a From header is not provided either in the message or template, we will default to `postmaster@your-sending-domain.tld`
Behavior2/5

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

No annotations are provided, so the description must fully disclose behavioral traits. 'Create a template' implies a write operation but doesn't specify permissions needed, whether it's idempotent, rate limits, or what happens on success/failure (e.g., returns a template ID). It mentions creation but lacks details like whether it overwrites existing templates or requires unique names. For a mutation tool with zero annotation coverage, this is insufficient.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness2/5

Is the description appropriately sized, front-loaded, and free of redundancy?

While concise with two words, this is under-specification rather than effective brevity. The description fails to front-load critical information (e.g., 'Create an email template for a domain') and doesn't earn its place by adding value. It's too sparse to be helpful, scoring low for structure despite being short.

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

Completeness2/5

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

Given the tool's complexity (8 parameters, mutation operation, no output schema, and no annotations), the description is incomplete. It doesn't explain the purpose, usage, or behavioral aspects needed for an agent to invoke it correctly. The high schema coverage helps with parameters, but overall context is lacking for a creation tool in a domain with multiple sibling tools.

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 high (88%), with most parameters well-documented in the schema (e.g., 'name' supports utf-8 and downcasing, 'headers' specifies supported keys). The description adds no parameter information beyond the schema. According to rules, with high coverage (>80%), the baseline is 3 even with no param info in the description, as the schema carries the burden.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose2/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description 'Create a template' is a tautology that merely restates the tool name 'post--v3-domain_name-templates'. It lacks specificity about what kind of template is being created (e.g., email template for a domain) and doesn't distinguish it from sibling tools like 'post--v3-domain_name-templates-template_name-versions', which also creates template versions. A more helpful description would specify the resource and context.

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

Usage Guidelines1/5

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

The description provides no guidance on when to use this tool versus alternatives. It doesn't mention prerequisites (e.g., requiring a domain_name), compare it to sibling tools like 'put--v3-domain_name-templates-template_name' (which updates templates) or 'get--v3-domain_name-templates' (which lists templates), or indicate any constraints. This leaves the agent with no context for tool selection.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/mailgun/mailgun-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server