Skip to main content
Glama

Delete a Tag Manager tag, trigger or variable

gtm_remove
Destructive

Delete from the workspace draft. Requires the user's explicit yes in chat: call first without confirm to preview, then with confirm=true and confirm_name equal to the exact item name. The deletion goes live only on gtm_publish.

Input Schema

NameRequiredDescriptionDefault
nameYes
entityYes
folderNoClient folder name.
confirmNo
languageNoLanguage of the card (ar for Arabic, en for English).
containerNoContainer name, public ID (GTM-XXXX) or container ID. Required when several containers are enabled.
workspaceNoWorkspace name or ID. Defaults to 'Default Workspace'.
confirm_nameNo

Schema Changelog

Changes observed during successful MCP inspections.

No schema history has been recorded yet.

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and openWorldHint=true, so the safety profile is known; the description adds genuinely non-derivable behavior: the delete is confined to the workspace draft and only takes effect at gtm_publish. It also discloses a human-confirmation gate and an exact-name match requirement. It does not say what happens on a confirm_name mismatch or on an unpublished leftover draft.

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 scope constraint, then the confirmation protocol, then the publish caveat. No filler and no repetition of schema or annotation data.

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 destructive mutation with no output schema, the description supplies the essential safety flow and the staging-vs-live distinction. Missing are failure behavior when confirm_name mismatches and any note about selecting the right container/workspace when multiple exist, which matters given 8 parameters.

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?

Schema coverage is only 50%, so the description must compensate, and it does explain the two most confusing parameters: confirm (preview vs execute) and confirm_name (must equal the exact item name, which also clarifies the 'name' param). However, folder, container and workspace interplay — including 'required when several containers are enabled' — is left to the schema, and entity's effect on name resolution is unaddressed, so the coverage gap is only partly closed.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states a specific verb and scope: 'Delete from the workspace draft', making clear this mutates a staged draft rather than a live container. It distinguishes itself from gtm_publish by saying the deletion 'goes live only on gtm_publish', but the entity types (tag/trigger/variable) appear only in the title and the entity enum, not in the description itself.

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?

It gives explicit procedural guidance: an explicit user 'yes' in chat is required, call first without confirm to preview, then with confirm=true and confirm_name. That is a concrete when-and-how. It stops short of naming alternatives (e.g., using gtm_discard_change to revert staged work rather than deleting), so it is not a full when/when-not map.

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