Skip to main content
Glama

Create template

create_template

Create an email template: name, html, optional subject, text and alias (a stable handle, unique per team). Live immediately. A template created with html opens in the dashboard's code mode and keeps its HTML byte for byte; converting it to blocks is the user's explicit choice there. from, reply_to and variables are not supported yet; passing them is a 422.

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": {
      "name": "<name>",
      "html": "<html>"
    },
    "name": "create_template"
  }
}

Input Schema

NameRequiredDescriptionDefault
fromNoNot supported yet: any value is a 422
htmlYesStored as sent; the dashboard sanitizes at render
nameYes
textNo"" or null clears the text part
aliasNo
subjectNo"" or null clears the subject
reply_toNoNot supported yet: any value is a 422
variablesNoNot supported yet: a non-empty list is a 422

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.4/5.0
Behavior4/5

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

Adds real behavior beyond the annotations: the template goes live immediately, HTML is stored byte-for-byte and only sanitized at render, code mode is preserved and block conversion is an explicit user choice, and unsupported fields yield a 422. Annotations only state that this is a non-destructive, non-open-world write; the description carries the substantive side effects.

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?

Front-loads the verb and required fields, then layers constraints and gotchas in short clauses with no filler. Every sentence carries information an agent needs before calling.

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 an 8-parameter create tool with no output schema, it covers creation preconditions, storage semantics, and failure modes well. The remaining gap is the response shape — there is no output schema, so the description could say what the call returns (e.g. the created template or its alias).

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 75% and the schema already documents the 422 semantics and alias uniqueness, but the description goes further by framing alias as a stable handle and clarifying the storage/edit-mode consequences of html. It does not add syntax or limits (maxLength, pattern) beyond 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 (create an email template) and enumerates the fields it accepts, so it is immediately distinguishable from get_template, update_template and delete_template in the sibling list. No tautology and no ambiguity about what is produced.

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 concrete call conditions: name and html are required, alias must be unique per team, and from/reply_to/variables will 422 because they are unsupported. It does not explicitly route the agent to update_template for modifying an existing template, so the when-not/alternative guidance is incomplete but the context is clear.

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.