Skip to main content
Glama
dienhokhanh

gtm-mcp-server

by dienhokhanh

gtm_delete_trigger

Destructive

Delete a Google Tag Manager trigger from a specified workspace draft. Use it to remove unwanted triggers before publishing changes.

Instructions

Delete a trigger from an explicitly selected workspace draft.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
accountYesName or ID of the GTM account (e.g. 'My Company' or '1234567').
containerYesName, GTM container ID (publicId, e.g. GTM-XXXX), or internal container ID.
triggerIdYes
workspaceYesWorkspace name or ID. Required for every mutating operation.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
dataNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare destructiveHint=true and idempotentHint=false, so the safety profile is covered. The description adds the useful nuance that the deletion is confined to the draft workspace rather than the live container, but it says nothing about irreversibility or required permissions.

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?

A single front-loaded sentence with zero filler; the scope qualifier (workspace draft) is placed where it matters most.

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?

An output schema exists, so return values need not be explained. For a destructive mutation, though, the description remains thin on side effects and downstream implications (e.g., whether the trigger still exists live), which is the kind of context an agent needs before deleting.

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 description coverage is 75% (account, container, workspace documented; triggerId self-evident), so the schema does most of the work. The description's phrase "workspace draft" reinforces the workspace parameter's own note that it is required for every mutating operation but adds no new syntax or 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?

States a specific verb (delete), resource (trigger), and scope (workspace draft), so the operation is unambiguous. It does not, however, distinguish itself from the sibling revert_trigger, which is the closest alternative an agent might confuse it with.

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?

"Explicitly selected workspace draft" implies that a workspace must be chosen first, giving some context. But there is no explicit when-to-use vs revert_trigger guidance, no stated prerequisites, and no exclusions, leaving the selection logic to inference.

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