Skip to main content
Glama
jinchliu

tagmanager-mcp

by jinchliu

update_variable

Update a Google Tag Manager variable by merging changes into its current configuration, preserving concurrent edits with fingerprint checks.

Instructions

Updates a variable by merging changes into its current config.

The merge is shallow: each top-level key in changes replaces the current value, a null value removes the key, and lists are replaced whole (e.g. the parameter list must be passed complete). The current config is re-read in the same call and its fingerprint sent along, so concurrent edits fail cleanly instead of being clobbered. Changes stay in the workspace draft until a version is published. Returns the updated variable.

Args: account_id: Numeric account ID or full resource path. container_id: Numeric container ID or full resource path. workspace_id: Numeric workspace ID; find it via list_workspaces. variable_id: Numeric variable ID; find it via list_variables. changes: Partial variable body, e.g. {'name': 'New name'}.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
changesYes
account_idYes
variable_idYes
container_idYes
workspace_idYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior5/5

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

The description goes well beyond annotations, detailing shallow merge behavior, null value handling, list replacement, concurrent edit detection via fingerprint, and that changes stay in draft until publishing. Annotations were minimal (readOnlyHint=false, destructiveHint=false), so the description adds significant value.

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?

The description is well-structured: a concise one-line summary, followed by a clear explanation of merge behavior, then an ordered Args list. Every sentence adds value without unnecessary verbosity.

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?

Given the 5 required parameters and no schema descriptions, the description covers parameter semantics and output behavior (returns updated variable). It also notes draft persistence and concurrent edit safety. However, it could include error handling details or more on return structure, but overall it's fairly complete.

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?

The input schema has 0% coverage (no descriptions), but the description's Args section explains each parameter, especially changes as a partial variable body with an example. While it doesn't fully enumerate allowed fields (since changes is flexible), it adds meaningful context beyond the schema.

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 clearly states 'Updates a variable by merging changes into its current config.' It specifies the verb (updates) and resource (variable), and distinguishes it from sibling tools like create_variable and delete_variable. The merge semantics are explained, making the purpose unambiguous.

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?

The description implies usage is for modifying existing variables, and provides context like requiring variable_id from list_variables and workspace_id from list_workspaces. However, it does not explicitly state when to use this tool versus alternatives (e.g., create_variable for new variables) or when not to use it.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/jinchliu/tagmanager-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server