Skip to main content
Glama
dienhokhanh

gtm-mcp-server

by dienhokhanh

gtm_sync_workspace

Destructive

Sync a Google Tag Manager workspace with its container's current version to update draft entities and reveal conflicts before publishing.

Instructions

Sync a workspace with the latest container version. This can modify workspace entities and reveal conflicts.

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.
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.6/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true, idempotentHint=false and openWorldHint=true, so the safety profile is covered. The description goes beyond that by disclosing the concrete behavioral outcome — workspace entities may be modified and conflicts may be surfaced — which tells the agent something the annotations alone do not.

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 sentences, no filler, and the core action is front-loaded before the side-effect caveat. Every clause earns its place.

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?

An output schema exists, so return values need not be described. The description covers the action and its mutation/conflict side effects adequately; only minor gaps remain (permission requirements, whether conflicts are reported or block the sync).

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 100%, with each of account/container/workspace documented in the schema itself (including the note that workspace is required for mutating operations). The description adds no parameter-level detail, so the baseline 3 applies.

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 (sync) and resource (workspace) plus the counterpart it syncs against (latest container version), which is far more informative than a tautology. It does not, however, distinguish itself from adjacent siblings such as gtm_workspace_status or gtm_quick_preview_workspace.

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

Usage Guidelines2/5

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

The description never says when to reach for this tool versus gtm_workspace_status, gtm_quick_preview_workspace, or gtm_list_workspaces. Usage is only implicitly suggested by the word 'sync'; there are no exclusions, prerequisites, or alternative routing.

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