Skip to main content
Glama

Update template

update_template
Destructive

Change a template. Send base_revision, the revision you read; a newer revision answers template_version_conflict. What you leave out stays as it was: send body, markdown or html to replace the document, name to rename it.

Input Schema

NameRequiredDescriptionDefault
bodyNoAn editor document, as get_template returns it. Images are PNG or JPEG data URLs or asset ids. get_template_format describes every key.
htmlNoHTML to import; {{path}} becomes a field.
nameNoA new name. Omit to keep the name.
markdownNoMarkdown to import; {{path}} becomes a field.
templateYesThe template's id or its name, as list_templates gives them.
base_revisionYesThe revision you read with get_template or list_templates.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / body / description
      Previous value: -"An editor document (ldoc version 0), as get_template returns it. Images are PNG or JPEG data URLs or asset ids. get_template_format describes every key."New value: +"An editor document, as get_template returns it. Images are PNG or JPEG data URLs or asset ids. get_template_format describes every key."
  2. Added

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=false and destructiveHint=true, and the description meaningfully supplements them: it discloses optimistic concurrency control, the exact conflict signal, and the partial-update contract. It never says that supplying body/html/markdown replaces the entire document irreversibly — that is implied by "replace the document" but not spelled out as a warning.

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?

Three short sentences, front-loaded with the operation and immediately followed by the required concurrency input and the conflict outcome. No restatement of the tool name or schema details, and every clause carries distinct information.

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 6-parameter mutation with a nested body object and no output schema, the description covers the required inputs, the failure mode, and the update semantics adequately. Gaps are the destructive nature of document replacement and what to do after a conflict (re-read with get_template); otherwise an agent can call this correctly.

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 the schema baseline is 3; the description earns above that by adding conflict semantics to base_revision ("the revision you read; a newer revision answers template_version_conflict") and the omit-to-keep rule that governs name, body, markdown, and html. It adds no guidance on choosing between the three document-input parameters (body vs markdown vs html), which the schema only hints at.

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?

"Change a template" states a specific verb and resource, and the follow-up sentences sharpen it into a partial-update operation on a document plus name. It does not name any sibling (create_template, delete_template, preview_template) to draw the boundary, so it falls short of a 5.

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?

It gives clear preconditions for calling: you must send base_revision, the revision you actually read, or the call answers template_version_conflict. The omission rule ("what you leave out stays as it was") tells the agent not to resend untouched fields. There is no explicit routing to alternatives such as preview_template before saving or get_template to re-read after a conflict.

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.

Resources