Skip to main content
Glama
Google Workspace MCP connector

Google Workspace MCP connector

by animesh-ex

gtm_delete

Destructive

Deletes a tag, trigger, or variable from a Google Tag Manager workspace; changes are not live until published, so confirm with the user first.

Instructions

Delete a tag, trigger or variable from a workspace (not live until published). Confirm with the user first.

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": {
      "workspace": "<workspace>",
      "entity": "<entity>",
      "id": "<id>"
    },
    "name": "gtm_delete"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYes
entityYes
workspaceYesWorkspace path (accounts/…/containers/…/workspaces/…), or a container public ID like GTM-XXXX (uses its Default Workspace)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.7.0

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare destructiveHint=true, readOnlyHint=false and openWorldHint=true, so the safety profile is known. The description does add genuinely useful nuance the annotations lack: the deletion is deferred until a version is published, and user confirmation is required. It still says nothing about permissions, failure modes, or whether the deletion is reversible before publishing.

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?

Two short clauses, front-loaded with the action and scope, followed by the caveat and the safety instruction. No filler, though the parenthetical and the confirmation sentence could be merged more tightly.

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

Completeness3/5

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

For a 3-required-parameter destructive mutation with no output schema and no annotations gap, the description covers intent, deferral semantics and a safety gate. It leaves the 'id' parameter undefined and gives no indication of what a successful response looks like or what happens if the workspace or entity ID is invalid.

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?

Only the workspace parameter is documented in the schema (33% coverage); the entity enum values are self-describing, but the 'id' parameter is completely undocumented and the description does not clarify that it is the ID of the tag/trigger/variable inside the workspace. The phrase 'a tag, trigger or variable from a workspace' loosely maps to the entity enum but adds no format detail.

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 names a specific verb (delete) and enumerates the exact resources affected (tag, trigger, variable) plus the container scope (workspace). The parenthetical 'not live until published' distinguishes it from publish-time effects, though no sibling tool is named explicitly.

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?

It gives a procedural prerequisite ('Confirm with the user first') and hints at the publish workflow, which tells the agent how to sequence the call. It does not state when to choose a different tool (e.g., gtm_upsert or gtm_publish) or when deletion should be avoided.

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