Skip to main content
Glama
rgellis

Google Tag Manager MCP Server

by rgellis

Delete Variable

delete_variable

Remove a variable from a Tag Manager workspace. The change applies only to that workspace; production remains unchanged until a new version is published.

Instructions

Delete a variable from a workspace.

This affects the workspace only. The variable stays in production until a version without it is published.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
account_idYesNumeric Tag Manager account ID.
variable_idYesNumeric variable ID.
container_idYesNumeric container ID.
workspace_idYesNumeric workspace ID.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4/5.0
Behavior4/5

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

With no annotations provided, the description carries the full behavioral disclosure. It reveals a non-obvious behavior: the variable stays in production until a version without it is published. This adds significant value beyond the schema, though it does not cover permissions or reversibility.

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?

Two concise sentences, front-loaded with the primary action and a crucial behavioral note. No filler or redundant information.

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?

For a delete operation with four straightforward parameters and an output schema, the description covers the essential nuance about production persistence. It is complete enough for an agent to call correctly, though it could explicitly mention the variable is immediately removed from the workspace.

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?

The input schema provides 100% coverage with clear descriptions for all four parameters (account_id, container_id, workspace_id, variable_id). The description adds no additional parameter-specific meaning, so the baseline of 3 is appropriate.

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 the action 'Delete a variable from a workspace' with a specific verb and resource. It distinguishes from sibling deletion tools like delete_built_in_variable by specifying 'a variable' (user-defined) in the context of a workspace.

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

Usage Guidelines3/5

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

The description provides context on the effect (workspace-only, persists in production) but does not explicitly state when to use this tool over alternatives like revert_variable or delete_built_in_variable. It implies usage for user-defined variables but lacks explicit exclusions or alternative routing.

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

Deploy Server

Other Tools