Skip to main content
Glama

Update Template Metadata

update_template_metadata
DestructiveIdempotent

Modify a template version’s name, comment, category, tags, deployment or expiry schedule, or move it to another template ID.

Instructions

Change ONE template version: name, comment, category, tags, deployment (deployedAt), scheduled deletion (expireAt), or the Template ID it belongs to (moveToTemplateId). A Template ID patches its deployed version; a Version ID, that exact version. To delete now, use delete_template.

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": {
      "templateId": "<templateId>"
    },
    "name": "update_template_metadata"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNoNew name (max 200 characters).
tagsNoNew tags, replacing the current ones: sorted, deduplicated, 100 characters in all.
commentNoNew comment (max 200 characters).
categoryNoNew category (max 200 characters).
expireAtNoDelete this version at this UTC Unix time (seconds); 0 cancels a scheduled deletion.
deployedAtNo42000000000 deploys this version now: renders by Template ID use the most recently deployed version.
templateIdYesThe version to change: a Version ID, or a Template ID for its deployed version.
moveToTemplateIdNoOnly when the user asks to move a version: moves it to this other Template ID. Not the template to change (that is templateId).

Output Schema

NameRequiredDescriptionDefault
idNoTemplate ID the version now belongs to (returned when moveToTemplateId was used).
nameNoName, returned if updated.
tagsNoTags, returned if updated.
commentNoComment, returned if updated.
categoryNoCategory, returned if updated.
expireAtNoDeletion timestamp (0 = never expires), returned if updated.
versionIdYesVersion ID of the patched version.
deployedAtNoDeployment timestamp, returned if updated.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed5 schema fields changedv2.5.1
    • changedInput schema / properties / moveToTemplateId / description
      Previous value: -"Only when the user asks to move a version: moves it to this other Template ID (digits). Not the template to change (that is templateId)."New value: +"Only when the user asks to move a version: moves it to this other Template ID. Not the template to change (that is templateId)."
    • addedInput schema / properties / moveToTemplateId / maxLength
      Added value: +256
    • addedInput schema / properties / moveToTemplateId / minLength
      Added value: +1
    • removedInput schema / properties / moveToTemplateId / pattern
      Removed value: -"^\\d+$"
    • addedInput schema / properties / templateId / maxLength
      Added value: +256
  2. Changed14 schema fields changedv2.2.0
    • changedInput schema / properties / category / description
      Previous value: -"New category, max 200 characters."New value: +"New category (max 200 characters)."
    • changedInput schema / properties / comment / description
      Previous value: -"New free-text comment, max 200 characters."New value: +"New comment (max 200 characters)."
    • changedInput schema / properties / deployedAt / description
      Previous value: -"Unix timestamp (seconds) to set as the deployment time for this version. Carbone picks the version with the most recent deployedAt when rendering by Template ID. Use 42000000000 to deploy immediately (special \"NOW\" value). Future values are not allowed, and the deployed version's deployedAt cannot move back in time."New value: +"42000000000 deploys this version now: renders by Template ID use the most recently deployed version."
    • removedInput schema / properties / deployedAt / maximum
      Removed value: -9007199254740991
    • removedInput schema / properties / deployedAt / minimum
      Removed value: --9007199254740991
    • changedInput schema / properties / expireAt / description
      Previous value: -"Schedule deletion of the patched version at a UTC Unix timestamp (seconds). After that time it is no longer listed, downloadable or renderable (404), and the file is purged after the retention delay. Send 0 to cancel a scheduled deletion (permanent again); omit to leave it unchanged. To delete now, use delete_template."New value: +"Delete this version at this UTC Unix time (seconds); 0 cancels a scheduled deletion."
    • removedInput schema / properties / expireAt / maximum
      Removed value: -9007199254740991
    • removedInput schema / properties / id
      Removed value: -{
      -  "description": "DEPRECATED: the 1.6.0 name of moveToTemplateId, kept so existing callers keep working. Use moveToTemplateId; passing both with different values is rejected.",
      -  "minLength": 1,
      -  "type": "string"
      -}
    • changedInput schema / properties / moveToTemplateId / description
      Previous value: -"CAUTION, structural change: moves the patched version to this other Template ID (64-bit; a Version ID is rejected). It is NOT the template to patch (that is templateId). Pass the version's Version ID as templateId; with a Template ID, its currently deployed version is moved and that Template ID falls back to its next most recent version (or stops resolving if none is left). Fails if the move creates a deployedAt conflict at the destination. Only use it when the user asks to move a version."New value: +"Only when the user asks to move a version: moves it to this other Template ID (digits). Not the template to change (that is templateId)."
    • removedInput schema / properties / moveToTemplateId / minLength
      Removed value: -1
    • addedInput schema / properties / moveToTemplateId / pattern
      Added value: +"^\\d+$"
    • changedInput schema / properties / name / description
      Previous value: -"New display name, max 200 characters."New value: +"New name (max 200 characters)."
    • changedInput schema / properties / tags / description
      Previous value: -"New list of tags, replacing the existing ones. Duplicates are removed and the list is sorted; the whole list is limited to 100 characters (about 8 tags of 9 characters)."New value: +"New tags, replacing the current ones: sorted, deduplicated, 100 characters in all."
    • changedInput schema / properties / templateId / description
      Previous value: -"Template ID (64-bit) or Version ID (SHA-256) of the version to update. A Template ID patches only its currently deployed version (not every version). A Version ID patches that exact version."New value: +"The version to change: a Version ID, or a Template ID for its deployed version."
  3. Changed3 schema fields changedv2.1.4
    • addedInput schema / properties / tags / items / maxLength
      Added value: +96
    • addedInput schema / properties / tags / items / minLength
      Added value: +1
    • addedInput schema / properties / tags / maxItems
      Added value: +100
  4. Changed16 schema fields changedv2.0.0
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
    • changedInput schema / properties / category / description
      Previous value: -"New category."New value: +"New category, max 200 characters."
    • addedInput schema / properties / category / maxLength
      Added value: +200
    • changedInput schema / properties / comment / description
      Previous value: -"New free-text comment."New value: +"New free-text comment, max 200 characters."
    • addedInput schema / properties / comment / maxLength
      Added value: +200
    • changedInput schema / properties / deployedAt / description
      Previous value: -"Unix timestamp (seconds) to set as the deployment time for this version. Carbone picks the version with the most recent deployedAt when rendering. Use 42000000000 to deploy immediately (special \"NOW\" value)."New value: +"Unix timestamp (seconds) to set as the deployment time for this version. Carbone picks the version with the most recent deployedAt when rendering by Template ID. Use 42000000000 to deploy immediately (special \"NOW\" value). Future values are not allowed, and the deployed version's deployedAt cannot move back in time."
    • changedInput schema / properties / expireAt / description
      Previous value: -"Unix timestamp (seconds) at which this template will be automatically deleted. Use 42000000000 to delete immediately."New value: +"Schedule deletion of the patched version at a UTC Unix timestamp (seconds). After that time it is no longer listed, downloadable or renderable (404), and the file is purged after the retention delay. Send 0 to cancel a scheduled deletion (permanent again); omit to leave it unchanged. To delete now, use delete_template."
    • changedInput schema / properties / expireAt / minimum
      Previous value: --9007199254740991New value: +0
    • changedInput schema / properties / id / description
      Previous value: -"Move this version under a DIFFERENT Template ID, re-parenting it so both share a version history. Pass the destination Template ID (64-bit). Leave unset to keep the version where it is — this does not rename anything, use name for that."New value: +"DEPRECATED: the 1.6.0 name of moveToTemplateId, kept so existing callers keep working. Use moveToTemplateId; passing both with different values is rejected."
    • addedInput schema / properties / id / minLength
      Added value: +1
    • addedInput schema / properties / moveToTemplateId
      Added value: +{
      +  "description": "CAUTION, structural change: moves the patched version to this other Template ID (64-bit; a Version ID is rejected). It is NOT the template to patch (that is templateId). Pass the version's Version ID as templateId; with a Template ID, its currently deployed version is moved and that Template ID falls back to its next most recent version (or stops resolving if none is left). Fails if the move creates a deployedAt conflict at the destination. Only use it when the user asks to move a version.",
      +  "minLength": 1,
      +  "type": "string"
      +}
    • changedInput schema / properties / name / description
      Previous value: -"New display name."New value: +"New display name, max 200 characters."
    • addedInput schema / properties / name / maxLength
      Added value: +200
    • changedInput schema / properties / tags / description
      Previous value: -"New list of tags — replaces existing tags entirely."New value: +"New list of tags, replacing the existing ones. Duplicates are removed and the list is sorted; the whole list is limited to 100 characters (about 8 tags of 9 characters)."
    • changedInput schema / properties / templateId / description
      Previous value: -"Template ID (64-bit) or Version ID (SHA-256) to update. Using a Template ID updates the metadata shared by all versions. Using a Version ID updates only that specific version."New value: +"Template ID (64-bit) or Version ID (SHA-256) of the version to update. A Template ID patches only its currently deployed version (not every version). A Version ID patches that exact version."
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "$schema": "https://json-schema.org/draft/2020-12/schema",
      +  "additionalProperties": false,
      +  "properties": {
      +    "category": {
      +      "description": "Category, returned if updated.",
      +      "type": "string"
      +    },
      +    "comment": {
      +      "description": "Comment, returned if updated.",
      +      "type": "string"
      +    },
      +    "deployedAt": {
      +      "description": "Deployment timestamp, returned if updated.",
      +      "type": "number"
      +    },
      +    "expireAt": {
      +      "description": "Deletion timestamp (0 = never expires), returned if updated.",
      +      "type": "number"
      +    },
      +    "id": {
      +      "description": "Template ID the version now belongs to (returned when moveToTemplateId was used).",
      +      "type": "string"
      +    },
      +    "name": {
      +      "description": "Name, returned if updated.",
      +      "type": "string"
      +    },
      +    "tags": {
      +      "description": "Tags, returned if updated.",
      +      "items": {
      +        "type": "string"
      +      },
      +      "type": "array"
      +    },
      +    "versionId": {
      +      "description": "Version ID of the patched version.",
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "versionId"
      +  ],
      +  "type": "object"
      +}
  5. Changed1 schema field changedv1.6.0
    • addedInput schema / properties / id
      Added value: +{
      +  "description": "Move this version under a DIFFERENT Template ID, re-parenting it so both share a version history. Pass the destination Template ID (64-bit). Leave unset to keep the version where it is — this does not rename anything, use name for that.",
      +  "type": "string"
      +}
  6. First observedv1.1.2

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and idempotentHint=true, so the safety profile is carried structurally. The description adds real behavioral context beyond that: only one version is touched, a Template ID resolves to its deployed version, expireAt=0 cancels a scheduled deletion, and moveToTemplateId is a move rather than a normal edit. It doesn't say what happens when multiple fields are supplied at once, which is the main remaining behavioral gap.

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 with zero padding; the scope constraint is front-loaded and the sibling redirect closes it. Every clause carries either field scope, ID semantics, or a routing rule.

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 annotations, full schema coverage, and an output schema, the description is nearly complete for a mutation tool. The one thing an agent might still wonder is whether supplying several fields edits them all in a single call or only one field is honored, which the description does not resolve.

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%, so every parameter is already documented with limits and semantics. The description largely restates the templateId/moveToTemplateId distinction that the schema already spells out; the notable added nuance is the emphasis that moveToTemplateId is not the template being changed. Baseline 3 is appropriate when the schema does the heavy lifting.

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 description names a specific verb ('Change') and a bounded resource ('ONE template version'), then enumerates the exact fields affected (name, comment, category, tags, deployedAt, expireAt, moveToTemplateId). It also distinguishes itself from the delete_template sibling, so an agent can identify the operation without opening the schema.

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 an explicit alternative for a common confusion ('To delete now, use delete_template') and clarifies the ID semantics that determine what gets patched. It does not cover when to prefer this over inspect_template or other siblings, but the core when-to-use versus when-not guidance is present.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.