Skip to main content
Glama

Update template

update_template

Change a template's name, subject, html, text or alias (null clears the alias). Omitted fields are left unchanged; the change is live immediately. Writing html makes the template html-authored: it 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.

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": {
      "id": "<id>"
    },
    "name": "update_template"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesTemplate id or alias
fromNoNot supported yet: any value is a 422
htmlNo
nameNo
textNo
aliasNonull clears the alias
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.3/5.0
Behavior5/5

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

Annotations only give the safety profile (not read-only, not destructive, closed-world). The description goes well beyond that: partial-update semantics, that changes are live immediately with no draft/publish step, and that writing html locks the template into html-authored mode where the dashboard preserves the HTML byte for byte. Those are exactly the traits annotations cannot carry.

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?

Three sentences, front-loaded with the field list, then partial-update/effect semantics, then the html caveat. Every sentence earns its place, though the html sentence is slightly long with 'byte for byte' and dashboard detail that could be tightened.

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 9-parameter mutation tool with no output schema, the description covers the meaningful writable fields and their side effects, which is most of what an agent needs. It omits any mention of the unsupported from/reply_to/variables parameters (left entirely to the schema) and says nothing about errors or return payload, though an output schema is absent.

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?

With 67% schema coverage, the schema documents most parameters (including the unsupported from/reply_to/variables as 422s). The description nonetheless adds real meaning for html — that supplying it switches the template to html-authored code mode — which the schema type/maxLength does not convey. It repeats the alias-clearing note already in the schema and stays silent on id and the unsupported params.

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?

The first sentence names a specific verb (change/update) and resource (template) and enumerates exactly which fields are mutable (name, subject, html, text, alias). That is enough to separate it from create_template, get_template, list_templates and delete_template 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 Guidelines3/5

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

It states how to invoke the tool correctly — omitted fields are left unchanged, null clears the alias — but it never says when to reach for this tool versus siblings (e.g. create_template for new templates) or what prerequisites exist. Usage is implied rather than framed as 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.