Skip to main content
Glama

update_custom_variable

Idempotent

Update a custom variable's presentation and fallback behaviour: its label, default_value, or description. Pass an empty string to clear a default. This tool does NOT change the token. To change the token call rename_custom_variable, which is safe and cheap; do NOT create a second variable just to get a different name, that leaves the workspace with two half-populated variables.

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": {
      "custom_variable_id": "<custom_variable_id>"
    },
    "name": "update_custom_variable"
  }
}

Input Schema

NameRequiredDescriptionDefault
labelNoNew display label for the variable.
descriptionNoNew description of what the variable holds.
default_valueNoSubstituted when a lead has no value of its own. Trimmed and truncated at 500 characters; the response echoes the stored variable, so a shortened default is visible in what comes back.
custom_variable_idYesId of the custom variable (from list_custom_variables).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.9/5.0
Behavior5/5

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

Goes well past the annotations (readOnlyHint=false, idempotentHint=true, destructiveHint=false) by disclosing that an empty string clears a default, that default_value is trimmed and truncated at 500 characters, and that the response echoes the stored variable so truncation is observable. It also explains a downstream consequence of misuse (two half-populated variables in the workspace).

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 sentences, front-loaded with what changes and what does not, then the corrective routing, then the anti-pattern warning. Each sentence carries distinct information; nothing is restated from the title or schema alone.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

No output schema exists, and the description compensates by noting that the response echoes the stored variable. Combined with the clear field list, idempotency annotation, and the explicit token-change exclusion, an agent has everything needed to 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 baseline is 3, but the description adds the non-obvious semantics that an empty string clears a default — behavior not stated in the schema. The truncation detail duplicates the schema's own default_value description, so it is not purely additive.

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 ('Update a custom variable') and enumerates the exact mutable fields: label, default_value, description. It also explicitly bounds scope by declaring 'This tool does NOT change the token', which separates it from rename_custom_variable among the many update_* siblings.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

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

Gives an explicit when-not rule with the named alternative: to change the token call rename_custom_variable. It further anticipates a likely mistake and forbids it ('do NOT create a second variable just to get a different name'), which is actionable routing guidance rather than passive context.

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