Skip to content

MCP tools and prompts reference

The server exposes 35 tools (4 documentation + 31 Google Tag Manager) and 6 guided prompt workflows. Documentation tools work without authentication; GTM tools require a Google sign-in with the matching Tag Manager scope.

No login required — anyone can use these.

ToolWhat it does
search_taggingdocsFull-text search across every TaggingDocs article, ranked by relevance. Optional section filter.
read_taggingdocs_pageFetch a full article by slug (e.g. datalayer/ecommerce/purchase). Used after a search.
list_taggingdocs_sectionsBrowse the library by section — Foundations, Client-Side, DataLayer, GA4, Consent, Integrations, Recipes, and more.
lookup_eventQuick lookup for a GA4 event (e.g. purchase, add_to_cart). Returns the dataLayer spec and related guides.

All GTM tools require Google sign-in. Read operations need tagmanager.readonly; anything that writes adds tagmanager.edit.containers on top; versioning and publishing layer in tagmanager.edit.containerversions and tagmanager.publish. Full scope breakdown is on the Connect page.

ToolWhat it does
list_accountsList every GTM account you have access to.
list_containersList containers in a specific account.
get_containerRead a single container’s configuration.
create_containerCreate a new container in an account (web, Android, iOS, AMP, server).
ToolWhat it does
list_workspacesList all workspaces in a container.
get_workspaceRead a workspace’s details.
create_workspaceCreate a new workspace to stage changes.
get_workspace_statusSee pending changes in a workspace.
ToolWhat it does
list_tagsList every tag in a workspace.
get_tagRead a single tag’s configuration.
create_tagCreate a tag from a JSON GTM Tag resource.
update_tagUpdate an existing tag.
delete_tagDelete a tag.
ToolWhat it does
list_triggersList every trigger in a workspace.
get_triggerRead a trigger’s configuration.
create_triggerCreate a trigger from a JSON GTM Trigger resource.
update_triggerUpdate a trigger.
delete_triggerDelete a trigger.
ToolWhat it does
list_variablesList user-defined variables in a workspace.
get_variableRead a variable’s configuration.
create_variableCreate a variable from a JSON GTM Variable resource.
update_variableUpdate a variable.
delete_variableDelete a variable.
ToolWhat it does
list_foldersList folders (for tag/trigger/variable organization).
create_folderCreate a new folder.
ToolWhat it does
list_versionsList all container versions.
create_versionFreeze a workspace’s changes into a version for review.
publish_versionPublish a version — your changes go live.
ToolWhat it does
list_built_in_variablesList enabled built-in variables (Click URL, Page Path, etc.).
list_templatesList custom Tag and Variable templates in the container.
list_user_permissionsList account-level user permissions.

Each prompt wraps a multi-step TaggingDocs best-practice flow into a single ask. Invoke them by name in your AI client — e.g. “Run the audit_container prompt on account 12345, container 67890, workspace 1.”

PromptWhat it does
audit_containerComprehensive GTM container audit following TaggingDocs best practices. Checks naming conventions, orphaned triggers, duplicate tags, folder organization, consent setup, and more.
setup_ga4_ecommerceCreate a complete GA4 ecommerce tracking setup — all standard events, triggers, and variables — following TaggingDocs specifications.
generate_tracking_planGenerate a tracking plan document from the current container state, documenting all events, triggers, variables, and their relationships.
setup_consent_modeImplement Google Consent Mode v2 in a GTM container following TaggingDocs best practices. Supports Cookiebot, CookieYes, OneTrust, and custom CMPs.
migrate_ua_to_ga4Analyze a container for Universal Analytics remnants and create equivalent GA4 tags.
lookup_best_practiceLook up TaggingDocs best practices for a specific GTM / GA4 topic — naming conventions, consent mode, ecommerce tracking, cross-domain, debugging, and more.

Need custom scopes, an allow-list of Google accounts, or to run the server inside your own cloud? The full source is on GitHub.