Skip to main content
Glama

Publish template

publish_template
Destructive

Publish a template, snapshotting an immutable version for sends. Automation email steps send templates by reference, so publishing changes every automation step that uses this template as well as sends by its alias.

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": "publish_template"
  }
}

Input Schema

NameRequiredDescriptionDefault
idNoTemplate id (tpl_…)
aliasNoTemplate alias (alternative to id)

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
    • 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"
      +  ]
      +}
  3. Changed1 schema field changed
    • addedOutput schema / properties / template / properties / folder
      Added value: +{
      +  "description": "Folder the template is filed in, or null",
      +  "type": [
      +    "string",
      +    "null"
      +  ]
      +}
  4. Changed1 schema field changed
    • changedOutput schema / properties / template / properties / category / description
      Previous value: -"transactional, product or newsletter"New value: +"transactional or product"
  5. First observed

TDQS

A4.3/5.0
Behavior5/5

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

Annotations already declare destructiveHint=true and idempotentHint=false, but the description adds the blast radius that annotations cannot express: the publish propagates to automation email steps and alias-based sends, not just the template object. The immutability/snapshot wording also explains why the action is effectively irreversible, which is the decision-critical context an agent needs before invoking a destructive 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?

Two tight sentences, with the core action and its snapshot semantics front-loaded before the consequences. Dense but every clause carries information; the only mild density issue is that the second sentence packs automation steps and alias sends into one breath.

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?

With an output schema present, return values need no explanation, and the description covers purpose, immutability, and side effects well. The remaining gap is modest: it does not state whether republishing creates a new version each time or whether permissions/validation can block the call, which matters given idempotentHint=false.

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 both properties (tpl_ id and alias as an alternative to id) are documented in the schema itself. The description adds no additional constraint — it does not say whether id or alias is preferred, or what happens if both are supplied — so baseline 3 applies.

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 (publish) and resource (template) and immediately qualifies it with the mechanism: snapshotting an immutable version for sends. That verb/mechanism pairing distinguishes it cleanly from create_template and get_template without needing to name them, since neither creates a frozen sendable version.

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 a clear usage consequence — publishing changes every automation step referencing this template and all sends by its alias — which implicitly tells the agent to treat this as a deliberate, high-impact action rather than a routine call. It stops short of explicit when-not-to-use language or naming an alternative (e.g., editing a draft instead), so it is strong context rather than full routing guidance.

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.