Skip to main content
Glama

Update Template

update_template
DestructiveIdempotent

Change a template. Pass template_id or template_name, then the fields to overwrite; omitted fields stay. parameters, model_params and reference_asset_ids are replaced entirely. Kind cannot change. If html or prompt is replaced, every {{token}} must match a parameter, using the new parameters when passed in the same call.

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

Input Schema

NameRequiredDescriptionDefault
htmlNohtml kind: replacement markup.
nameNoNew name.
sizesNoPass [] to clear and use width/height.
widthNohtml kind: new width.
heightNohtml kind: new height.
promptNogenerative kind: replacement prompt.
parametersNoReplacement parameter list.
descriptionNoNew description.
skills_usedNoOptional workflow analytics: names of the skills (or skill/reference paths) followed for this call. Stored with generation jobs only. Never include private data, local paths or media URLs.
template_idNoTemplate ID. Pass this or template_name.
model_paramsNogenerative kind: replacement model parameters.
template_nameNoTemplate name, ignoring case. Pass this or template_id.
recommended_modelNogenerative kind: new model ID.
reference_asset_idsNogenerative kind: replacement reference assets.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior5/5

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

Annotations already flag destructiveHint=true and idempotentHint=true, but the description explains *why* it is destructive in specific terms: omitted fields stay, while parameters, model_params and reference_asset_ids are wholesale replacements rather than merges. It also discloses two non-obvious constraints — kind is immutable, and replacing html/prompt requires every {{token}} to resolve against the parameter list (including parameters passed in the same call).

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?

Four short sentences, each carrying a distinct rule: addressing, partial-update semantics, replace-list, kind immutability, token validation. No filler, and the risky behavior (wholesale replacement) is placed early rather than buried.

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 14-parameter destructive mutation with nested objects and no output schema, the description covers the hazards an agent must know before calling. Minor gaps remain: with zero required parameters it does not say whether an empty call is a no-op or an error, nor how to learn the template's current kind, which determines which fields are legal.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the schema alone would earn a 3, but the description adds cross-field semantics the schema cannot express: the id/name alternative resolution, the replace-vs-merge distinction for three specific array/object fields, and the validation coupling between html/prompt and parameters. This is meaning beyond the per-property descriptions.

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" names a specific verb and resource, and the following sentences scope the operation to a partial overwrite identified by template_id or template_name. It is clearly distinct from create_template/render_template by implication, though it never names a sibling explicitly.

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 tells the agent how to address the target (id or case-insensitive name) and what happens to fields not supplied, which is the core usage decision for an update. There is no explicit "use create_template for new templates" routing or prerequisite/auth statement, so it stops short of full when/when-not 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.