Skip to main content
Glama

Update a template variable

update_template_variable
DestructiveIdempotent

Change a custom variable's description or default value. The name cannot change (create a new variable instead). Posts already made keep the text they were made with; templates pick the new value up the next time a post is made from them.

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": {
      "variableId": "<variableId>"
    },
    "name": "update_template_variable"
  }
}

Input Schema

NameRequiredDescriptionDefault
variableIdYesThe variable's ID (from list_template_variables)
descriptionNoNew description (max 200 characters)
defaultValueNoNew replacement text (max 500 characters)
organizationIdNoOrganization to act in — an id from list_organizations. Required when this connection was authorized for more than one organization; omit it when there is only one.

Output Schema

NameRequiredDescriptionDefault
variableNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.4/5.0
Behavior4/5

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

Adds real behavioral context beyond the annotations: existing posts retain their original text and templates only pick up the new value on the next post. This clarifies propagation timing and the blast radius of the mutation, which is more than destructiveHint/idempotentHint convey. It doesn't mention permissions or whether the prior value is recoverable, so not a 5.

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 action and followed by the two constraints that actually affect an agent's call. No filler or restatement of the title.

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?

An output schema exists, so return values need not be explained, and the annotations cover the safety profile; the description fills in the immutability and propagation semantics. Organization scoping is left entirely to the schema, which is acceptable given its 100% coverage.

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 baseline is 3; the description adds meaning by explicitly stating that only description and defaultValue are mutable and that name is not, which the schema does not say (name is absent from the schema, so an agent could otherwise attempt it).

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 and resource plus the exact mutable fields: "Change a custom variable's description or default value." It also rules out renaming and points to the create path, so an agent can distinguish this from create_template_variable without opening schemas.

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 conditional boundary: use this for description/defaultValue changes, but create a new variable when the name must change. That covers the main alternative but does not explicitly contrast with delete_template_variable or update_template.

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