Skip to main content
Glama
Google Tag Manager MCP

Google Tag Manager MCP

Google Tag Manager MCP

English | Русский

npm CI Glama License: MIT

A1 Google Tag Manager MCP ermöglicht einer KI-Anwendung, Google‑Tag‑Manager‑Container in normaler Sprache zu inspizieren und zu verwalten. Sie sehen, welche Tags auf einer Seite ausgelöst werden, arbeiten in einem Entwurfs‑Workspace mit Tags, Triggern und Variablen und bringen erst dann bewusst eine Version heraus, wenn Sie bereit sind.

Es verbindet sich über Ihr Google-Konto mit der Google Tag Manager API v2. Der Unterschied zum Ansatz, eine KI einfach eine GTM-Konfiguration erraten zu lassen, ist offensichtlich: Der Server arbeitet mit dem tatsächlich ausgewählten Container, Workspace und der tatsächlich ausgewählten Version.

  • 19 Tools. 10 Operationen erhalten nur GTM‑Daten; 4 erstellen Entwürfe oder ändern integrierte Variablen; 5 können Live‑Konfigurationen ändern, löschen, kompilieren oder veröffentlichen.

  • Entwurf zuerst. Tags, Trigger und Variablen werden in einem Workspace angelegt. Das Veröffentlichen ist ein eigener, ausdrücklich destruktiver Schritt.

  • Quota-bewusst. GTM erlaubt nur 0,25 Abrufe pro Sekunde und Projekt; der Server wartet daher mindestens 4,2 Sekunden zwischen zwei Ansprachen, anstatt die API zu überlasten.

  • Ihr Google-Zugang. Der Server verarbeitet Ihre OAuth‑Daten und verlangt von Ihnen nur die notwendigen Tag‑Manager‑Berechtigungen zum Lesen, Bearbeiten, Versionieren und Veröffentlichen.

Beginnen Sie mit einer reinen Lesefrage:

Welche Tags in meinen Containern werden beim page‑view‑Trigger ausgelöst?

Server verbinden · Anwendungsfälle zeigen · Technische Doku öffnen


Das Ganze in einer Minute ausprobieren

Sie: Listen meiner GTM‑Container und zeigen Sie, welche Tags beim Seitenaufruf feuern.

Assistent: Zeigt die Container, zugehörigen Arbeitsbereiche, Workgroups-Trigger und die daran hängen Tags. Es ändert sich nichts.

Sie: Im Standard‑Workspace von GTM-ABC123 ein GA4‑Konfigurations‑Tag für die Mess‑ID G-XXXXXXX auf allen Seiten vorbereiten.

Assistent: Zeigt Augenfällig den Workspace, das konkrete Tag sowie die Trigger‑Konfiguration und fragt um Bestätigung, ehe der Entwurf erstellt wird.

Sie: Ich bestätige den Entwurf.

Assistent: Legt das Tag in den Workspace an. Es veröffentlicht den Container noch nicht; das Kompilieren und Verabschieden einer Version ist ein eigenlastiger Schritt.

Related MCP server: unboundai-gtm-mcp-server

Inhaltsverzeichnis

Schnellstart

Sie benötigen Node.js 20+, ein Google-Konto mit Zugriff auf einen GTM‑Container und OAuth‑Legitimationsdaten aus einem Google‑Cloud‑Projekt, in dem die Tag‑Manager‑API aktiviert ist.

  1. Starten Sie den Google‑OAuth‑Zugriff.

  2. Fügen Sie den Server enthalten Ihrer KI‑App ein.

  3. Schaltung von demleseren frag oben.

In der App:

  1. Öffnen Sie die Einstellungen → Plugins → MCP server.

  2. Wählen Sie Server hinzufügen.

  3. Fügen Sie npx -y mcp-google-tagmanager@latest sowie die drei folgenden Umweltvariablen an.

Variable

Wert

GOOGLE_TAGMANAGER_CLIENT_ID

Ihre Google OAuth Client-ID

GOOGLE_TAGMANAGER_CLIENT_SECRET

Ihr Google OAuth Geheimnis

GOOGLE_TAGMANAGER_REFRESH_TOKEN

Ihr Google OAuth Aktualisierungs-Token

Befehlszeile:

codex mcp add google-tagmanager \
  --env GOOGLE_TAGMANAGER_CLIENT_ID=your_client_id \
  --env GOOGLE_TAGMANAGER_CLIENT_SECRET=your_client_secret \
  --env GOOGLE_TAGMANAGER_REFRESH_TOKEN=your_refresh_token \
  -- npx -y mcp-google-tagmanager@latest
codex mcp list

Codex MCP-Dokumentation

claude mcp add \
  --env GOOGLE_TAGMANAGER_CLIENT_ID=your_client_id \
  --env GOOGLE_TAGMANAGER_CLIENT_SECRET=your_client_secret \
  --env GOOGLE_TAGMANAGER_REFRESH_TOKEN=your_refresh_token \
  --transport stdio \
  --scope user \
  google-tagmanager \
  -- npx -y mcp-google-tagmanager@latest
claude mcp list

Claude Code MCP-Dokumentation

  1. Öffnen Sie Einstellungen → Entwickler → Konfiguration öffnen.

  2. Fügen Sie diesen Eintrag zu mcpServers hinzu:

{
  "mcpServers": {
    "google-tagmanager": {
      "command": "npx",
      "args": ["-y", "mcp-google-tagmanager@latest"],
      "env": {
        "GOOGLE_TAGMANAGER_CLIENT_ID": "your_client_id",
        "GOOGLE_TAGMANAGER_CLIENT_SECRET": "your_client_secret",
        "GOOGLE_TAGMANAGER_REFRESH_TOKEN": "your_refresh_token"
      }
    }
  }
}

Wenn Konfiguration öffnen nicht zur Verfügung steht, ändern Sie unter macOS die Datei ~/Library/Application Support/Claude/claude_desktop_config.json bzw. unter Windows %APPDATA%\Claude\claude_desktop_config.json.

Claude Desktop MCP-Dokumentation

Fügen Sie auf macOS/Linux eine benutzerweite Server-Konfiguration in ~/.cursor/mcp.json ein; unter Windows stattdessen in %USERPROFILE%\.cursor\mcp.json:

{
  "mcpServers": {
    "google-tagmanager": {
      "type": "stdio",
      "command": "npx",
      "args": ["-y", "mcp-google-tagmanager@latest"],
      "env": {
        "GOOGLE_TAGMANAGER_CLIENT_ID": "your_client_id",
        "GOOGLE_TAGMANAGER_CLIENT_SECRET": "your_client_secret",
        "GOOGLE_TAGMANAGER_REFRESH_TOKEN": "your_refresh_token"
      }
    }
  }
}

Cursor MCP-Dokumentation

Wählen Sie in der Befehlspalette MCP: Open User Configuration aus und ergänzen Sie:

{
  "servers": {
    "google-tagmanager": {
      "type": "stdio",
      "command": "npx",
      "args": ["-y", "mcp-google-tagmanager@latest"],
      "env": {
        "GOOGLE_TAGMANAGER_CLIENT_ID": "${input:gtm_client_id}",
        "GOOGLE_TAGMANAGER_CLIENT_SECRET": "${input:gtm_client_secret}",
        "GOOGLE_TAGMANAGER_REFRESH_TOKEN": "${input:gtm_refresh_token}"
      }
    }
  },
  "inputs": [
    { "type": "promptString", "id": "gtm_client_id", "description": "Google OAuth client ID" },
    { "type": "promptString", "id": "gtm_client_secret", "description": "Google OAuth client secret", "password": true },
    { "type": "promptString", "id": "gtm_refresh_token", "description": "Google OAuth refresh token", "password": true }
  ]
}

Vergewissern Sie sich mit MCP: List Servers.

VS Code MCP-Dokumentation

Was Sie dieses MCP ereihen können

Aktuelle Setup verstehen

  • GTM-Konten und Container auflisten, die mir zugänglich sind.

  • Welche Tags im aktuellen Workspace auf den page-view-Trigger feuern?

  • Trigger- und Variablen-Definition dieses Tags zeigen.

  • Welche integrierten Variablen sind aktiv?

Tracking-Änderungen als Entwurf vorbereiten

  • Einen Workspace für die Änderung des checkout-Trackings erstellen.

  • Ein GA4-Tag und den passenden Trigger one für one bestimmtes Ereignis vorbereiten.

  • Die Klick-Variablen aktivieren, die für diesen Trigger nötig sind.

  • Dieses Tag aktualisieren – Vorschau der vollständigen Ersetzung gezeigt.

Version gezielt freigeben

  • Diesen Workspace zu einer Version namen ? April „Release“ kompilieren.

  • Compiler-Fehler anzeigen, falls welche vorhanden sind.

  • Version „42“ veröffentlichen, nachdem ich release und alle Änderungen bestätigt habe.

Wie sind welche GTM-Änderungen miteinander verbunden?

GTM hat einen klaren Release-Pfad:

  1. Ein Konto enthält einen oder mehrere Container.

  2. In einem Container gibt es Arbeitsbereiche für Entwürfe.

  3. Tags, Trigger und Variablen gehören zu einem Arbeitsbereich.

  4. Beim Kompilieren eines Workspace entsteht eine Container-Version, der ursprüngliche Arbeitsbereich wird entfernt. GTM darauf heraus stellt einen Ersatz-Arbeitsbereich bereit.

  5. Durch Publishing wird eine gewählte Container-Version live geschaltet.

Der Server kann jeden dieser Schritte prüfen. Er behandelt einen Entwurf nicht bereits als Release: Version anlegen und Version publizieren sind für ihn explizit getrennte Aktionen.

Was sich an der Datenkonfiguration ändern kann

Aktion

Auswirkung

Accounts, Container, Workspaces, Tags, Trigger, Variablen, Versionen auflisten

Liest die GTM-Konfiguration

Keine Veränderung

Container oder Workspace anlegen

„neues Objekt“ in GTM anlegen

Ändert GTM

Tag, Trigger oder Variable anlegen

Entwurfsobjekt in einem Workspace hinzufügen

Ändert den Arbeitsbereichsentwurf

Integrierte Variablen ein-/ausschalten

verändert Konfiguration im Workspace

Änderung am Entwurf

Tag, Trigger oder Variable aktualisieren

Ersetzt die komplette Ressource – nur möglich über den Fingerprint

Kann Folgen für Produktion geben

Tag, Trigger oder Variable löschen

Entfernt das gewählte Objekt

Destruktiv

Workspace kompilieren

erstellt Version und löscht den Quell-Workspace

Destruktiv

Version publizieren

aktiviert die ausgewählte Version

Destruktiv

Roher API-Aufruf

Deklaration beliebiger API-Operationen ohne eigenes Tool

potenziell destruktiv

Welche der jeweiligen Auswirkungen eine Bestätigung erfordern, entscheidet der KI-Client. Der Server kennzeichnet Lesezugriff, Schreibzugriff und destruktive Operationen direkt, sodass der Client eindeutig zwischen bloßem Betrachten und tatsächlicher Änderung unterschiedlich.

Zugriff erhalten

Der Server benutzt den Google‑OAuth‑2.0‑Standard. Für diese Nutzerdaten gibt es bei Google Tag Manager keine API‑Schlüssel.

  1. Als Erstes ein Google‑Cloud‑Projekt auswählen (oder neu erstellen) und darin die Tag Manager API einschalten. Ein Projekt ohne diese API erhält nutzer quotas.

  2. Für dieses Projekt den Zustimmungsbild Fragen ausfüllen und eine OAuth‑Client‑ID erzeugen. Eine Desktop-App‑Client‑ID genügt für den lokalen Einsatz.

  3. Google-Konto autorisieren und ein Aktualisierungs‑/Refresh‑Token erlangen. Dafür gut der OAuth Playground auf einfachem Wege funktioniert, wenn man „Use your own OAuth credentials“ aktiviert.

  4. Bevor zum ersten Aufruf genau diese Scopes beantragen:

https://www.googleapis.com/auth/tagmanager.readonly
https://www.googleapis.com/auth/tagmanager.edit.containers
https://www.googleapis.com/auth/tagmanager.edit.containerversions
https://www.googleapis.com/auth/tagmanager.publish

Die Scopes sind voneinander getrennt: Lesen, Bearbeiten, Version kompilieren und Publikation verlangen jeweils das Lichtt . Client‑Secret und Refresh‑Token wie Passwörter aufpassen.

Konfiguration

Variable

Erforderlich

Beschreibung

GOOGLE_TAGMANAGER_CLIENT_ID

Ja*

OAuth Client ID.

GOOGLE_TAGMANAGER_CLIENT_SECRET

Ja*

Der Secret zum OAuth‑Client.

GOOGLE_TAGMANAGER_REFRESH_TOKEN

Ja*

Refresh‑Token für OAuth.

GOOGLE_TAGMANAGER_ACCESS_TOKEN

Ja*

Kurzfristigere Überschreiben des OAuth‑Gespans.

GOOGLE_TAGMANAGER_API_BASE

Nein

Überschreibt die API‑Basis‑URL des GTM-Dienstes.

GOOGLE_TAGMANAGER_TIMEOUT_MS

Nein

Timeout je Anfrage; Standard 60000 ms.

GOOGLE_TAGMANAGER_MAX_RETRIES

Nein

Maximale Wiederholungsversuche; Standard 3.

GOOGLE_TAGMANAGER_MIN_INTERVAL_MS

Nein

Zeitabstand zwischen Requests; Standard 4200 ms.

* Entweder das OAuth‑Trio aus Client-ID, Client‑Secret und Planwert‑Token anlegen oder eine Zugriffstoken. Zugriffstokens verfallen nach etwa einer Stunde und werden nicht automatisch erneuert.

Daten und Telemetrie

Der Server läuft lokal ab und sendet Anfragen an Google nur an (1) die GTM‑API und (2) die auf OAuth‑Refresh. Seine anonymisierte Telemetrie besteht aus einer generierten Installations‑ID, der Paketversion, dem KI‑Client, Node.js‑ und Angaben des Betriebssystems sowie den Namen der Tools. Nicht gesandet werden: OAuth‑Tokens, GTM‑Inhalte, Kind Argumente der Tools oder eingegebene Prompts.

Abschalten Telemetrie sperrt man für alle AI‑MCP‑Server mit:

ASKADS_TELEMETRY=0

Limits und Betriebshinter dem Grund

  • GTM nutzt ein API‑Quota. Wie in Dokumentaton nachgelesen, sind pro Sekunde gleichmax. 0,25 Abrufe pro Projekt erlaubt. Deshalb setzt der Server zwischen allen Abrufen mindestens 4,2 Sekunden Abstand. Umfangreiches Prüfen kann folglich etwas dauern.

  • Rate‑Limits werden vorsichtig behandelt. Bei HTTP 429 und 403 durch das Google-Quota wartet der Server via Exponential‑Backoff bzw. Retry‑After. Lesende Anfragen wiederholen nach Netzwerk- und 5xx‑Fehlern; schreibende Operationen auf nicht gültigen Zustand werden nicht wiederholt.

  • Kein Betrieb im Hintergrund. Der Server läuft ausschließlich, wenn ihn die KI‑App ruft. Flexible Apps können geplante Aufgaben nutzen und so Doktors einen Container bzw. seine Live‑Version in positiven zeitlichenfen prüfen.

  • Ein Workspace existiert nach dem Kompilieren nicht mehr. Vor Ausrufe create_version alle benötigten Arbeit erledigen und notfalls Inhalte zerlegen. Ausgabe zeigt anschließ den Pfad des Ersatz-Workspace.

Technische Dokumentation

Support

Einen Fehler gefunden oder brauchst du ein Szenario? Erstelle ein Issue oder schreib uns auf Telegram.

Available Tools

25 tools
auth_statusGoogle connection statusA
Read-onlyIdempotent

Shows whether this server is connected to Google: token presence and source (env variables or a stored in-chat login), expiry, the Google account email, granted vs missing OAuth scopes, where the credentials file lives and where the OAuth client comes from. Makes no network calls and never returns the token itself. Call it first when other tools report the server is not connected.

Inputs: no named parameters.

create_containerCreate a containerA

Creates a new container in a GTM account. usage_context declares the platform, e.g. ["web"]; other values include androidSdk5, iosSdk5, server. Returns the created Container with its server-assigned containerId and publicId. Requires the tagmanager.edit.containers scope.

Inputs: name (required), account_id (required), usage_context (required).

create_entityCreate a tag, trigger or variableA

Creates a tag, trigger or variable in a workspace. body is the resource JSON: minimally { name, type } plus type-specific parameter entries; tags also take firingTriggerId (array of trigger id strings). Example tag body: { "name": "GA4 event", "type": "gaawe", "parameter": [...], "firingTriggerId": ["12"] }. Returns the created resource with its server-assigned id and fingerprint. Requires the tagmanager.edit.containers scope.

Inputs: body (required), account_id (required), entity_type (required), container_id (required), +1 more.

create_versionCreate a container version from a workspaceA
Destructive

Compiles a workspace into an immutable Container Version (the unit that gets published). SIDE EFFECT: the source workspace is DELETED and replaced by a fresh one — the response's newWorkspacePath points to the replacement; use it for any further edits, or old workspace paths will 404. Returns { containerVersion (with containerVersionId and full tag/trigger/variable snapshots), syncStatus, newWorkspacePath }. A compile failure comes back as compilerError=true with HTTP 200 and is reported as an error. Requires the tagmanager.edit.containerversions scope (edit.containers is NOT sufficient).

Inputs: account_id (required), container_id (required), workspace_id (required), name, +1 more.

create_workspaceCreate a workspaceA

Creates a new workspace in a container — an isolated draft where tags, triggers and variables are edited before being compiled into a version. Returns the created Workspace with its server-assigned workspaceId. Requires the tagmanager.edit.containers scope.

Inputs: name (required), account_id (required), container_id (required), description.

delete_entityDelete a tag, trigger or variableA
DestructiveIdempotent

Deletes a tag, trigger or variable by its API path. The response is empty on success. Requires the tagmanager.edit.containers scope.

Inputs: path (required).

finish_loginFinish the Google loginA
Idempotent

Second step: waits up to 20 s for the browser consent to finish, saves the tokens to an owner-only file and verifies the login with a read-only identity call, returning the account email and the granted scopes. After success every tool works immediately — no client restart. If the user granted only part of the requested permissions, the login is still saved and missingScopes lists what will not work. Logging in under a different Google account replaces the previous login (its refresh token is revoked best-effort) and the response carries previousAccountEmail so the change never goes unnoticed.

Inputs: no named parameters.

get_accountGet a GTM accountA
Read-onlyIdempotent

Gets one Google Tag Manager account by id. Returns the Account resource: { accountId, name, path, fingerprint, shareData }.

Inputs: account_id (required).

get_containerGet a containerA
Read-onlyIdempotent

Gets one container by account id + container id. Returns the Container resource including publicId (the GTM-XXXXXX snippet id), usageContext and fingerprint.

Inputs: account_id (required), container_id (required).

get_resourceGet any resource by pathA
Read-onlyIdempotent

Generic getter for any GTM resource by its API-relative path — tags, triggers, variables, versions, containers, workspaces. Prefer echoing the path field from a previous response over assembling the string yourself. Returns the full resource JSON including its current fingerprint (needed for update_entity).

Inputs: path (required).

get_workspaceGet a workspaceA
Read-onlyIdempotent

Gets one workspace by account id + container id + workspace id. Returns the Workspace resource with its fingerprint.

Inputs: account_id (required), container_id (required), workspace_id (required).

list_accountsList GTM accountsA
Read-onlyIdempotent

Lists all Google Tag Manager accounts the authorized user can access. Returns { account: [{ accountId, name, path, fingerprint }], nextPageToken }. All ids are strings. This is the entry point: every other tool needs an accountId (or a path) from here.

Inputs: page_token.

list_containersList containersA
Read-onlyIdempotent

Lists the containers of a GTM account. Returns { container: [{ containerId, name, publicId (e.g. GTM-XXXXXX), usageContext, path, fingerprint, tagManagerUrl }], nextPageToken }.

Inputs: account_id (required), page_token.

list_tagsList tagsA
Read-onlyIdempotent

Lists the tags of a workspace. Returns { tag: [{ tagId, name, type (e.g. html, gaawe), parameter: [{ type, key, value, list, map }], firingTriggerId, blockingTriggerId, paused, path, fingerprint, tagManagerUrl }], nextPageToken }.

Inputs: account_id (required), container_id (required), workspace_id (required), page_token.

list_triggersList triggersA
Read-onlyIdempotent

Lists the triggers of a workspace. Returns { trigger: [{ triggerId, name, type (e.g. pageview, click, customEvent), filter/customEventFilter (conditions of { type, parameter }), path, fingerprint }], nextPageToken }.

Inputs: account_id (required), container_id (required), workspace_id (required), page_token.

list_variablesList variablesA
Read-onlyIdempotent

Lists the user-defined variables of a workspace (built-in variables live in manage_built_in_variables). Returns { variable: [{ variableId, name, type (e.g. v = data layer, jsm = custom JS, c = constant), parameter, path, fingerprint }], nextPageToken }.

Inputs: account_id (required), container_id (required), workspace_id (required), page_token.

list_workspacesList workspacesA
Read-onlyIdempotent

Lists the workspaces of a container. Returns { workspace: [{ workspaceId, name, description, path, fingerprint }], nextPageToken }. Workspaces are mandatory in GTM v2: every tag/trigger/variable operation needs a workspaceId, and a "Default Workspace" always exists — call this first.

Inputs: account_id (required), container_id (required), page_token.

logoutDisconnect from GoogleA
Destructive

Revokes the stored token at Google (oauth2.googleapis.com/revoke) and deletes the local credentials file. Tokens supplied via env variables are NOT touched — remove them from the MCP client config manually; envTokenStillSet in the response says whether any are still in effect.

Inputs: no named parameters.

manage_built_in_variablesList/enable/disable built-in variablesA
Idempotent

Manages a workspace's built-in variables (pageUrl, clickText, event, ...). These are toggles, not records: action "list" returns the currently enabled ones ({ builtInVariable: [...] }), "enable" and "disable" take types (BuiltInVariableType enum values) and switch them on/off. Enable/disable require the tagmanager.edit.containers scope.

Inputs: action (required), account_id (required), container_id (required), workspace_id (required), +1 more.

publish_versionPublish, inspect or fetch the live container versionA
Destructive

Container-version operations. action "publish" pushes a version live (replacing the currently published one; requires the tagmanager.publish scope; version_id required, fingerprint recommended). action "get" fetches one version by version_id. action "live" fetches the currently published version of the container (no version_id needed). Publish responses can carry compilerError=true with HTTP 200 — reported as an error. Returns the ContainerVersion (publish wraps it as { containerVersion, compilerError }).

Inputs: action (required), account_id (required), container_id (required), version_id, +1 more.

raw_requestRaw Tag Manager API callA
Destructive

Escape hatch to call any Google Tag Manager API v2 path directly, for endpoints without a dedicated tool (environments, folders, templates, zones, workspace :sync / :quick_preview, version_headers, ...). path is relative to /tagmanager/v2/, e.g. "accounts/1/containers/2/environments". query values may be arrays for repeated params. Requests go through the same OAuth, rate limiter and retries as every other tool.

Inputs: path (required), body, query, method.

set_clientSave the OAuth clientA
Idempotent

Saves the OAuth client credentials from the JSON file downloaded from Google Cloud Console ('Download JSON' on a Desktop-app client). Pass the file PATH — the secret must never be pasted into the chat. The client is stored once in the shared ~/.config/mcp-google-auth/client.json (owner-only) and reused by every mcp-google-* server; tokens stay per-server. After this, call start_login.

Inputs: path (required).

setup_instructionsSetup instructionsA
Read-onlyIdempotent

This server ships with a built-in OAuth client, so connecting normally needs only start_login + finish_login; call this for the details or to switch to your own client. The checklist adapts to the client in use: with the built-in client it is just the two login calls, and it adds the steps for your OWN client — creating a Google Cloud project and a Desktop-app OAuth client, publishing the consent screen (mandatory — Testing-mode refresh tokens die after 7 days), downloading the client JSON and handing its PATH to set_client. Works without any credentials; with your own client already configured it shortens to 'enable the API + log in' (one client serves the whole mcp-google-* line). Never asks the user to paste secrets into the chat.

Inputs: no named parameters.

start_loginStart the Google loginA
Idempotent

First step of connecting from the chat, without editing config files or restarting the client. Returns authorizeUrl — show it to the user as a clickable link and ask them to open it in the browser ON THIS MACHINE, pick the Google account and approve access. A one-shot listener on 127.0.0.1 catches Google's redirect; the code is exchanged locally and never passes through the chat. Does not open the browser itself. The attempt lives 10 minutes; when the browser shows the success page, call finish_login.

Inputs: no named parameters.

update_entityUpdate a tag, trigger or variableA
DestructiveIdempotent

Updates a tag, trigger or variable by its API path. PUT semantics: this is a FULL REPLACE, not a patch — fetch the current resource with get_resource, modify it, and send the whole object back. Pass the resource's last-seen fingerprint for optimistic-concurrency safety; a mismatch fails the request. Requires the tagmanager.edit.containers scope.

Inputs: body (required), path (required), fingerprint.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A4.1/5.0

    Scored across 25 tools

    Disambiguation4/5

    Most tools target distinct resources and actions (list/get/create per account, container, workspace, tag, trigger, variable), and the auth lifecycle tools are clearly separate. However, get_resource overlaps with get_container/get_workspace, and create_entity/update_entity/delete_entity share conceptual ground with the specific container/workspace CRUD tools — descriptions clarify the boundaries but some confusion is possible.

    Naming Consistency4/5

    Strong snake_case verb_noun pattern throughout (list_accounts, get_container, create_workspace, delete_entity). Minor deviations: setup_instructions and auth_status are noun phrases rather than verb_object, logout lacks an object, and publish_version actually performs publish/get/live actions, making the name slightly misleading.

    Tool Count4/5

    25 tools sits at the top of a reasonable band; the deep GTM hierarchy (account > container > workspace > tags/triggers/variables/versions) plus a required OAuth flow justifies most tools. It is on the heavy side, but each tool earns its place and there is little gratuitous duplication.

    Completeness4/5

    Core lifecycle is well covered: auth, accounts, containers, workspaces, tags/triggers/variables CRUD, version create/publish, and built-in variables. Gaps exist (no delete/update for containers or workspaces, no dedicated environments/folders/templates/zones tools), but the raw_request escape hatch lets agents reach these endpoints.

    Maintenance

    ActivityActive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      D
      maintenance
      MCP server for Google Tag Manager API, enabling users to manage containers, tags, and triggers through natural language using Google Application Default Credentials.
      18
      54 npm
      Apache 2.0
    • A
      license
      Not graded
      quality
      D
      maintenance
      MCP server for Google Tag Manager API v2, enabling programmatic management of accounts, containers, workspaces, tags, triggers, variables, and version workflows.
      34 npm
      16
      MIT
    • F
      license
      Not graded
      quality
      B
      maintenance
      A remote MCP server for Google Tag Manager that enables AI assistants to manage GTM accounts, containers, tags, triggers, variables, and more via OAuth or service account authentication.
      1
      -