Skip to main content
Glama

Create template

create_template

Create a transactional template from one of 18 starters (password-reset, magic-link, email-verification, verification-code, welcome, receipt, invoice, order-confirmation, shipping-notification, subscription-renewal, payment-failed, trial-ending, team-invite, login-alert, account-deleted, refund-issued, feedback-request, waitlist-confirmation) or a blank one, and publish it so it can be sent. Errors: template_slug_taken, unknown_starter, invalid_template_slug. Next: send_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": "create_template"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNoTemplate name. Defaults to the starter name.
slugNoURL-safe slug used in code. Defaults to the starter slug or the slugified name.
from_starterNoA built-in starter slug such as "password-reset" or "welcome".

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare non-readonly, non-destructive, non-idempotent, closed-world, so the description is not required to restate safety. It still adds real behavior beyond them: the template is published (a live side effect, not just a draft record) and three concrete failure modes are enumerated (template_slug_taken, unknown_starter, invalid_template_slug), which tells the agent slug uniqueness is enforced. It omits permission requirements and whether publishing can be undone.

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?

Front-loaded with the core action, then clearly delimited 'Errors:' and 'Next:' segments — an efficient structure for an agent to parse. The 18-item starter list is long but earns its place by defining valid input, though it makes the first sentence heavy.

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 three-optional-parameter creation tool with no output schema, the definition covers what is created, what it is created from, that it is immediately published, what can go wrong, and what to call next. The main omission is that it never says what identifying value comes back (slug or id) that send_template would need.

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 a 3 is the floor. The description goes beyond the schema by fully enumerating the accepted from_starter values, where the schema only gives two illustrative examples — this materially reduces the chance of an unknown_starter error. It adds nothing further about name or slug beyond what the schema already documents.

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?

Names a specific verb+resource (create a transactional template) and gives the material scope: it is instantiated from one of 18 named starters or left blank, and it is published on creation. The enumeration of starter slugs and the 'transactional' qualifier let an agent distinguish this from create_campaign or generate_email without opening a schema.

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?

'Next: send_template' explicitly routes the agent to the follow-up tool, and 'publish it so it can be sent' clarifies the workflow context in which this tool belongs. The gap is that it never says when NOT to use it — e.g. starter vs. blank selection criteria, or how it differs from other create_* siblings for marketing content.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.