Skip to main content
Glama

Create template

create_template

Create a draft email template (html or blocks format).

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

Input Schema

NameRequiredDescriptionDefault
htmlNoHTML body
nameYesTemplate name
textNoPlain-text body
aliasNoOptional short alias to reference the template by instead of its id
folderNoOptional folder to file the template in; created if it does not exist
formatNoTemplate format (html or blocks)
senderNoSaved sender handle or id the template goes out as when a send sets neither from nor sender
subjectYesSubject line, may contain {{variables}}

Output Schema

NameRequiredDescriptionDefault
templateYesThe template

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedOutput schema / properties / template / properties / category / description
      Previous value: -"transactional or product"New value: +"Deprecated and ignored: Groundmail decides the category from the published content"
  2. Changed1 schema field changed
    • changedInput schema / properties / sender / description
      Previous value: -"Sender handle or id (list_senders) the template goes out as when a send sets neither from nor sender"New value: +"Saved sender handle or id the template goes out as when a send sets neither from nor sender"
  3. Changed2 schema fields changed
    • addedInput schema / properties / sender
      Added value: +{
      +  "description": "Sender handle or id (list_senders) the template goes out as when a send sets neither from nor sender",
      +  "type": "string"
      +}
    • addedOutput schema / properties / template / properties / sender_id
      Added value: +{
      +  "description": "Sender the template goes out as when a send sets neither from nor sender; null uses the default sender",
      +  "type": [
      +    "string",
      +    "null"
      +  ]
      +}
  4. Changed2 schema fields changed
    • addedInput schema / properties / folder
      Added value: +{
      +  "description": "Optional folder to file the template in; created if it does not exist",
      +  "type": "string"
      +}
    • addedOutput schema / properties / template / properties / folder
      Added value: +{
      +  "description": "Folder the template is filed in, or null",
      +  "type": [
      +    "string",
      +    "null"
      +  ]
      +}
  5. Changed1 schema field changed
    • changedOutput schema / properties / template / properties / category / description
      Previous value: -"transactional, product or newsletter"New value: +"transactional or product"
  6. First observed

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare this is a non-read-only, non-idempotent, non-destructive, closed-world write, so the safety profile is covered. The description adds the meaningful behavioral fact that the result is a *draft* (not live), but says nothing about name/alias uniqueness collisions, whether repeated calls duplicate templates, or required permissions.

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?

A single front-loaded sentence with no filler; nothing is redundant. It is arguably too terse for an 8-parameter mutation, but there is no wasted wording.

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

Completeness3/5

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

Output schema and rich parameter descriptions are supplied, so return values and parameter meaning need not be repeated. However, for a create tool with a draft→publish lifecycle and 8 params, the description omits the lifecycle context and duplicate-alias/name behavior that would help an agent call it correctly.

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% and each of the 8 parameters is documented there, including the html/blocks enum and variables in subject. The description only restates the format enum, adding no meaning beyond the schema, so the baseline 3 applies.

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

Purpose4/5

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

States a specific verb and resource ('Create a draft email template') plus the supported formats, which lets an agent distinguish it from the read/publish siblings by the word 'draft'. It does not name publish_template as the follow-up, so sibling differentiation is only implicit.

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

Usage Guidelines3/5

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

The word 'draft' implies this is the pre-publication step and that publish_template must follow, but the description never says so explicitly and gives no when-not-to-use conditions. Usage is inferable rather than stated.

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.