Skip to main content
Glama

rename_custom_variable

Idempotent

Rename a custom variable, i.e. change the {{token}} it is written as. THIS IS SAFE AND CHEAP: values stored on leads and the bodies of campaign messages reference the variable by its id, never by its name, so a rename updates one registry row and leaves every stored value and every message body byte-for-byte identical. Nothing is orphaned, no campaign breaks, and nothing has to be re-pushed. It costs the same on a workspace with four million leads as on one with four. Use this whenever the user wants a different name for an existing variable, INSTEAD of creating a new variable and migrating; creating a duplicate is the wrong move and leaves two half-populated variables behind. Use update_custom_variable instead when the label, default value, or description is what needs to change. The new token is normalized ('Recent Funding' becomes recent_funding); renaming to the name it already has succeeds quietly. Errors: 409 token_taken (another variable already uses that name, so pick a different one, this API will not merge two variables), 400 reserved_token (collides with a built-in), 400 invalid_token (the name normalizes to nothing, e.g. '###').

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>",
      "token": "<token>"
    },
    "name": "rename_custom_variable"
  }
}

Input Schema

NameRequiredDescriptionDefault
tokenYesThe NEW name, WITHOUT braces, e.g. 'recent_round' for {{recent_round}}.
idempotency_keyNoUUID for safe retry.
custom_variable_idYesId of the variable to rename, from list_custom_variables.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior3/5

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

The description goes well beyond the annotations by explaining why the operation is safe (values and campaign bodies reference the id, not the name), that nothing is orphaned or needs re-pushing, and by enumerating the failure modes 409 token_taken, 400 reserved_token and 400 invalid_token. However, it repeats and dramatizes safety points the annotations already partly imply (destructiveHint=false, idempotentHint=true) across several sentences rather than adding distinct operational facts each time.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The safety rationale is front-loaded and the alternatives follow, but several phrases are rhetorical padding rather than specification ('nothing has to be re-pushed', 'the same on a workspace with four million leads as on one with four'), and the orphan/break/re-push list restates the preceding sentence.

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?

Errors, normalization, idempotent no-op behavior and the sibling alternative are all covered, which is ample for a 3-parameter mutation with no output schema. Only the return value's shape (e.g. whether the updated token is echoed) is left unstated.

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 token, idempotency_key and custom_variable_id are already documented. The description still adds real meaning: normalization behavior ('Recent Funding' becomes recent_funding), the silent success on a no-op rename, and the exact error semantics attached to an unacceptable token.

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 ('Rename a custom variable') and immediately scopes it to changing the {{token}}, which distinguishes it from update_custom_variable and create_custom_variable by name.

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?

Explicitly says to use this whenever the user wants a different name for an existing variable INSTEAD of creating and migrating, names the wrong move (duplicating) and its consequence, and routes label/default/description changes to update_custom_variable.

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