All servers / Analytics / Google Tag Manager MCP server
Google Tag Manager MCP server
Production-ready MCP server for Google Tag Manager API v2 — Samarth Analytics
Tested by ConnectATDScore 83 out of 100. Tested 2026-11-19 on package version 1.497.5. Package: samarth-gtm-mcp · source
Score breakdown
| Runs | 18 / 20 | |
|---|---|---|
| Tool descriptions | 17 / 20 | |
| Package safety | 20 / 20 | |
| Maintenance | 20 / 20 | |
| Adoption | 8 / 20 |
What we saw
- Starts and answers the MCP handshake: yes (3.3 seconds including download)
- Tools offered: 203
- Last published: 2026-11-11
- Weekly downloads (npm): 713
- License: MIT · Direct dependencies: 6
Want this server set up for your team?
ConnectATD builds AI automation and wires up MCP servers like this one. Tell us what you are trying to do.
Talk to ConnectATDTools and how they are described
Agents choose tools from these descriptions. Under each name you can see how many of its parameters are explained.
accounts_list3 of 3 parameters describedList all GTM accounts accessible to the authenticated user. Returns account IDs, names, and share-data flags.
accounts_get1 of 1 parameter describedGet details of a specific GTM account.
containers_list3 of 3 parameters describedList all GTM containers within a GTM account. Automatically follows pagination to return all containers.
containers_get2 of 2 parameters describedGet details of a specific GTM container.
containers_create6 of 6 parameters described[WRITE] Create a new GTM container. Requires GTM_MCP_ENABLE_WRITES=true and confirm=true.
containers_set_tagging_server_urls4 of 4 parameters described[WRITE] Set a SERVER container's taggingServerUrls (the deployed tagging-server URL, e.g. from Cloud Run/Stape). Read-modify-write via containers.update so the other container fields are preserved; rejects a non-server container. Records the URL in config only — it does NOT deploy the host. Requires GTM_MCP_ENABLE_WRITES=true and confirm=true.
containers_snippet2 of 2 parameters describedGet the GTM installation snippet (HTML/JS tagging code) for a container.
containers_lookup1 of 1 parameter describedLook up a GTM container by its linked destination ID (e.g. a GA4 measurement ID or tag ID).
containers_combine6 of 6 parameters described[WRITE] Combine (merge) another container into this one. Requires GTM_MCP_ENABLE_WRITES=true and confirm=true. ⚠️ This merges the source container identified by containerIdToCombine into the target container.
containers_move_tag_id8 of 9 parameters described[WRITE] Move a Tag ID out of a container into a new container. Requires GTM_MCP_ENABLE_WRITES=true and confirm=true.
destinations_list2 of 2 parameters describedList all destinations (linked Google tags / GA4 destinations) for a GTM container.
destinations_get3 of 3 parameters describedGet details of a specific GTM destination.
destinations_link4 of 5 parameters described[WRITE] Link a destination (Google tag / GA4 destination) to a GTM container. Requires GTM_MCP_ENABLE_WRITES=true and confirm=true.
workspaces_list4 of 4 parameters describedList all workspaces within a GTM container. Automatically follows pagination to return all workspaces.
workspaces_get3 of 3 parameters describedGet details of a specific GTM workspace.
workspaces_create5 of 5 parameters described[WRITE] Create a new workspace. Requires GTM_MCP_ENABLE_WRITES=true.
workspace_get_status3 of 3 parameters describedGet the status of a GTM workspace: the list of changed entities (workspaceChange) relative to the latest container version, plus any merge conflicts. Use this to review a change diff before creating a version or publishing.
workspace_sync4 of 4 parameters describedSyncs a workspace to the latest container version by updating all unmodified workspace entities. Returns a list of merge conflicts if any.
workspace_resolve_conflict8 of 8 parameters describedResolve a merge conflict for a workspace entity. You supply the resolved entity body plus its type; the GTM API wraps it in an Entity envelope ({ "tag": {...} } / { "trigger": {...} } / …), which this tool builds for you. NOTE: This is a complex operation — review the GTM UI conflict resolution first.
tags_list5 of 5 parameters describedList all GTM tags in a workspace. Automatically follows pagination to return all tags.
tags_get4 of 4 parameters describedGet details of a specific GTM tag.
tags_create12 of 12 parameters described[WRITE] Create a new GTM tag. Requires GTM_MCP_ENABLE_WRITES=true and confirm=true. Pass the full tag configuration as parameters.
tags_update13 of 13 parameters described[WRITE] Update an existing GTM tag (read-modify-write). Requires GTM_MCP_ENABLE_WRITES=true and confirm=true. GTM's API replaces the WHOLE tag on update, so this tool first fetches the tag and only overlays the fields you pass — omitted fields are preserved. `parameter` is MERGED with the existing parameters BY KEY (a same-key param replaces, new keys are added, untouched keys are kept), so you will NOT wipe a GA4 tag's eventName/measurementId. To add GA4 EVENT parameters to a gaawe tag, prefer tags_add_ga4_event_parameters (event params live in the nested eventSettingsTable, which this generic parameter list cannot express).
tags_add_ga4_event_parameters6 of 6 parameters described[WRITE] Add GA4 event parameters to a GA4 Event tag (type "gaawe"). Requires GTM_MCP_ENABLE_WRITES=true and confirm=true. Fetches the tag, APPENDS the parameters to its eventSettingsTable (the correct place for GA4 event parameters — top-level params are ignored by GA4 event tags), and saves the FULL tag so eventName/measurementId stay intact. A parameter whose name already exists has its value updated (not duplicated). Values may be GTM variables, e.g. {{Click Text}}.
tags_delete5 of 5 parameters described[DELETE] Delete a GTM tag. Requires GTM_MCP_ENABLE_DELETES=true and confirm=true. This is irreversible in the workspace (the tag is removed from the workspace).
triggers_list2 of 5 parameters describedList all GTM triggers in a workspace. Automatically follows pagination to return all triggers.
triggers_get0 of 4 parameters describedGet a specific GTM trigger.
triggers_create13 of 19 parameters described[WRITE] Create a GTM trigger. Requires GTM_MCP_ENABLE_WRITES=true and confirm=true.
triggers_update8 of 20 parameters described[WRITE] Update a GTM trigger (read-modify-write — omitted fields are preserved; `parameter` is merged by key). Requires GTM_MCP_ENABLE_WRITES=true and confirm=true.
triggers_delete0 of 5 parameters described[DELETE] Delete a GTM trigger. Requires GTM_MCP_ENABLE_DELETES=true and confirm=true.
variables_list2 of 5 parameters describedList all user-defined GTM variables in a workspace. Automatically follows pagination to return all variables.
variables_get0 of 4 parameters describedGet a specific GTM variable.
variables_create3 of 11 parameters described[WRITE] Create a GTM variable. Requires GTM_MCP_ENABLE_WRITES=true and confirm=true.
variables_update1 of 10 parameters described[WRITE] Update a GTM variable (read-modify-write — omitted fields are preserved; `parameter` is merged by key). Requires GTM_MCP_ENABLE_WRITES=true and confirm=true.
variables_delete0 of 5 parameters described[DELETE] Delete a GTM variable. Requires GTM_MCP_ENABLE_DELETES=true and confirm=true.
folders_list2 of 5 parameters describedList all GTM folders in a workspace. Automatically follows pagination to return all folders.
folders_get0 of 4 parameters describedGet a specific GTM folder.
folders_entities2 of 6 parameters describedList all entities (tags, triggers, variables) within a specific GTM folder. Automatically follows pagination to return all entities.
folders_create0 of 6 parameters described[WRITE] Create a GTM folder. Requires GTM_MCP_ENABLE_WRITES=true and confirm=true.
folders_update0 of 8 parameters described[WRITE] Update a GTM folder (read-modify-write: omitted fields are preserved). Requires GTM_MCP_ENABLE_WRITES=true and confirm=true.
folders_delete0 of 5 parameters described[DELETE] Delete a GTM folder. Requires GTM_MCP_ENABLE_DELETES=true and confirm=true. Contents of the folder will be unfoldered, not deleted.
folders_move_entities4 of 8 parameters described[WRITE] Move tags/triggers/variables into a folder. Requires GTM_MCP_ENABLE_WRITES=true and confirm=true.
built_in_variables_list2 of 5 parameters describedList all currently enabled built-in variables in a GTM workspace.
built_in_variables_enable1 of 5 parameters described[WRITE] Enable one or more built-in variables in a GTM workspace. Requires GTM_MCP_ENABLE_WRITES=true and confirm=true.
built_in_variables_disable1 of 5 parameters described[DELETE] Disable one or more built-in variables in a GTM workspace. Requires GTM_MCP_ENABLE_DELETES=true and confirm=true.
built_in_variables_revert1 of 5 parameters described[WRITE] Revert changes to a built-in variable in the workspace to the original container version. Requires GTM_MCP_ENABLE_WRITES=true and confirm=true.
create_gtm_tracking_tag15 of 15 parameters described[WRITE] PREFERRED way to create a GA4 event tag that fires on an event. Builds a CORRECT GTM resource from plain fields, so you never hand-write GTM JSON. ONE call: enables the built-in variables the tag and trigger reference, reuses or creates the named trigger, and creates the tag linked to it in the draft workspace. Use this instead of tags_create + triggers_create + built_in_variables_enable, which needs three round trips and gets the shapes wrong. eventParameters values may reference built-in variables ({{Click URL}}, {{Click Text}}, {{Page URL}}, {{Form ID}}) and those are enabled automatically. Requires GTM_MCP_ENABLE_WRITES=true and confirm=true.
create_gtm_variable_typed12 of 12 parameters described[WRITE] Create a GTM variable by KIND rather than by GTM's internal type code, so the right shape is guaranteed. kind: "constant" (a fixed reused value, e.g. a Measurement ID); "data_layer" (read a key the SITE pushes to the dataLayer, dot-notation for nested, e.g. ecommerce.value) - only correct when the site actually pushes that key; "javascript" (Custom JavaScript: a function(){...} that COMPUTES a value, and the right choice for deriving something from the page or the click, e.g. extracting the address out of a mailto: {{Click URL}} - a data_layer variable CANNOT do this and would report blank); "event_data" and "request_header" (SERVER containers only). Requires GTM_MCP_ENABLE_WRITES=true and confirm=true.
versions_list3 of 5 parameters describedList all container version headers (summary) for a GTM container.
versions_get1 of 3 parameters describedGet the full contents of a specific GTM container version. Pass "live" as containerVersionId to get the currently live version.
versions_create2 of 6 parameters described[WRITE] Create a new GTM container version from a workspace (checkpoint). Requires GTM_MCP_ENABLE_WRITES=true and confirm=true. This takes a snapshot of the workspace into a versioned checkpoint without publishing.
versions_set_latest1 of 4 parameters described[WRITE] Set a specific container version as the "latest" (synchronizes the default workspace with this version). Note: This does NOT publish. Use versions_publish to go live. Requires GTM_MCP_ENABLE_WRITES=true and confirm=true.
versions_undelete0 of 4 parameters described[WRITE] Undelete a previously deleted GTM container version. Requires GTM_MCP_ENABLE_WRITES=true and confirm=true.
versions_delete0 of 4 parameters described[DELETE] Delete a GTM container version. Requires GTM_MCP_ENABLE_DELETES=true and confirm=true. Cannot delete a currently published (live) version.
workspace_quick_preview0 of 3 parameters describedGenerate a quick-preview (debug) link for a GTM workspace. This does NOT publish — it just enables preview mode. Returns a preview container version with any compilation errors.
versions_publish2 of 4 parameters described[PUBLISH] Publish a specific GTM container version to live. Requires GTM_MCP_ENABLE_PUBLISH=true and confirm=true. ⚠️ This immediately makes the version live in production.
workspace_create_version_and_publish3 of 6 parameters described[PUBLISH] Create a new container version from a workspace and immediately publish it. Requires GTM_MCP_ENABLE_PUBLISH=true and confirm=true. ⚠️ This is the most powerful write operation — it goes live in production immediately.
environments_list4 of 4 parameters describedList all environments in a GTM container. Automatically follows pagination.
environments_get3 of 3 parameters describedGet details of a specific GTM environment.
environments_create7 of 7 parameters described[WRITE] Create a new GTM environment. Requires GTM_MCP_ENABLE_WRITES=true and confirm=true.
environments_update9 of 9 parameters described[WRITE] Update an existing GTM environment (read-modify-write: omitted fields are preserved). Requires GTM_MCP_ENABLE_WRITES=true and confirm=true.
environments_reauthorize4 of 4 parameters described[PUBLISH] Re-generate the authorization code for a GTM environment. Requires GTM_MCP_ENABLE_PUBLISH=true and confirm=true. ⚠️ This rotates the environment auth token; any embedded snippet using the old token stops working until updated.
environments_delete4 of 4 parameters described[DELETE] Delete a GTM environment. Requires GTM_MCP_ENABLE_DELETES=true and confirm=true.
user_permissions_list3 of 3 parameters describedList all user permissions for a GTM account. Automatically follows pagination. Each record shows a user email plus their account and per-container access levels.
user_permissions_get2 of 2 parameters describedGet a specific user permission record for a GTM account.
user_permissions_create5 of 5 parameters described[WRITE] Grant a user access to a GTM account (and optionally containers). Requires GTM_MCP_ENABLE_WRITES=true and confirm=true.
user_permissions_update5 of 5 parameters described[WRITE] Update a user's account and/or container access levels. Requires GTM_MCP_ENABLE_WRITES=true and confirm=true. Read-modify-write: an omitted accountPermission or containerAccess keeps the user's current value. containerAccess, when given, is the COMPLETE list (the API replaces the record): a container left out loses access. Removing access (noAccess at account or container level, or leaving a container out) is a revocation and also requires GTM_MCP_ENABLE_DELETES=true, the same as user_permissions_delete.
user_permissions_delete3 of 3 parameters described[DELETE] Revoke a user's access to a GTM account. Requires GTM_MCP_ENABLE_DELETES=true and confirm=true.
clients_list5 of 5 parameters describedList all GTM clients in a workspace. Automatically follows pagination.
clients_get4 of 4 parameters describedGet a specific GTM client.
clients_create5 of 5 parameters described[WRITE] Create a new GTM client. Requires GTM_MCP_ENABLE_WRITES=true and confirm=true. Pass the full resource as a JSON string in bodyJson.
clients_update7 of 7 parameters described[WRITE] Update an existing GTM client. Requires GTM_MCP_ENABLE_WRITES=true and confirm=true. Pass the full resource as a JSON string in bodyJson.
clients_delete5 of 5 parameters described[DELETE] Delete a GTM client. Requires GTM_MCP_ENABLE_DELETES=true and confirm=true.
clients_revert6 of 6 parameters described[WRITE] Revert workspace changes to a GTM client back to its last container-version state. Requires GTM_MCP_ENABLE_WRITES=true and confirm=true.
transformations_list5 of 5 parameters describedList all GTM transformations in a workspace. Automatically follows pagination.
transformations_get4 of 4 parameters describedGet a specific GTM transformation.
transformations_create5 of 5 parameters described[WRITE] Create a new GTM transformation. Requires GTM_MCP_ENABLE_WRITES=true and confirm=true. Pass the full resource as a JSON string in bodyJson.
transformations_update7 of 7 parameters described[WRITE] Update an existing GTM transformation. Requires GTM_MCP_ENABLE_WRITES=true and confirm=true. Pass the full resource as a JSON string in bodyJson.
transformations_delete5 of 5 parameters described[DELETE] Delete a GTM transformation. Requires GTM_MCP_ENABLE_DELETES=true and confirm=true.
transformations_revert6 of 6 parameters described[WRITE] Revert workspace changes to a GTM transformation back to its last container-version state. Requires GTM_MCP_ENABLE_WRITES=true and confirm=true.
zones_list5 of 5 parameters describedList all GTM zones in a workspace. Automatically follows pagination.
zones_get4 of 4 parameters describedGet a specific GTM zone.
zones_create5 of 5 parameters described[WRITE] Create a new GTM zone. Requires GTM_MCP_ENABLE_WRITES=true and confirm=true. Pass the full resource as a JSON string in bodyJson.
zones_update7 of 7 parameters described[WRITE] Update an existing GTM zone. Requires GTM_MCP_ENABLE_WRITES=true and confirm=true. Pass the full resource as a JSON string in bodyJson.
zones_delete5 of 5 parameters described[DELETE] Delete a GTM zone. Requires GTM_MCP_ENABLE_DELETES=true and confirm=true.
zones_revert6 of 6 parameters described[WRITE] Revert workspace changes to a GTM zone back to its last container-version state. Requires GTM_MCP_ENABLE_WRITES=true and confirm=true.
templates_list5 of 5 parameters describedList all GTM templates in a workspace. Automatically follows pagination.
templates_get4 of 4 parameters describedGet a specific GTM template.
templates_create5 of 5 parameters described[WRITE] Create a new GTM template. Requires GTM_MCP_ENABLE_WRITES=true and confirm=true. Pass the full resource as a JSON string in bodyJson.
templates_update7 of 7 parameters described[WRITE] Update an existing GTM template. Requires GTM_MCP_ENABLE_WRITES=true and confirm=true. Pass the full resource as a JSON string in bodyJson.
templates_delete5 of 5 parameters described[DELETE] Delete a GTM template. Requires GTM_MCP_ENABLE_DELETES=true and confirm=true.
templates_revert6 of 6 parameters described[WRITE] Revert workspace changes to a GTM template back to its last container-version state. Requires GTM_MCP_ENABLE_WRITES=true and confirm=true.
gtag_config_list5 of 5 parameters describedList all GTM gtag configs in a workspace. Automatically follows pagination.
gtag_config_get4 of 4 parameters describedGet a specific GTM gtag config.
gtag_config_create5 of 5 parameters described[WRITE] Create a new GTM gtag config. Requires GTM_MCP_ENABLE_WRITES=true and confirm=true. Pass the full resource as a JSON string in bodyJson.
gtag_config_update7 of 7 parameters described[WRITE] Update an existing GTM gtag config. Requires GTM_MCP_ENABLE_WRITES=true and confirm=true. Pass the full resource as a JSON string in bodyJson.
gtag_config_delete5 of 5 parameters described[DELETE] Delete a GTM gtag config. Requires GTM_MCP_ENABLE_DELETES=true and confirm=true.
templates_import_from_gallery7 of 7 parameters described[WRITE] Install a Community Template Gallery template into a workspace by GitHub owner and repository, so a THIRD-PARTY pixel can use its official sandboxed template instead of Custom HTML. NOT for Google's own tags. GA4, Google Ads and Floodlight are BUILT IN to GTM as native tag types (googtag, gaawe, awct, sp, flc), there is no gallery repository for them, and asking for one answers "404 Not found or permission denied". To build a GA4 event tag call tags_create with type "gaawe" directly; do not import anything first. Requires GTM_MCP_ENABLE_WRITES=true and confirm=true. The GTM API DOES support this (templates.import_from_gallery); never tell the user it is UI-only. Idempotent: one already present is returned unchanged rather than duplicated, including a copy installed by hand. Handles the two cases a plain gallery import cannot: a repo that is only a FORK is imported from the publisher instead, and a template the gallery never listed (e.g. stape-io/data-client, rtb-house-tag, tapfiliate-tag) is installed by uploading the vendor source, which is what Templates > Import does by hand. That source is fetched only at the commit pinned as reviewed and refused unless its SHA-256 matches the pin. Returns the installed template. To build a tag on it you need its tag TYPE (a cvt_... string): READ that from the container rather than constructing it from the templateId, because the format is not what it appears to be. Pass the exact string as `type` to tags_create along with that template's own field keys (template-specific, e.g. Meta Pixel uses pixelId). Common pairs: facebook/GoogleTagManager-WebTemplate-For-FacebookPixel (Meta Pixel), tiktok/gtm-template-pixel (TikTok), linkedin/linkedin-gtm-community-template (LinkedIn Insight Tag 2.0), Snapchat/snapchat-google-tag-manager (Snap Pixel), pinterest/ws-gtm-template (Pinterest, web) or pinterest/ss-gtm-template (Pinterest, server), stape-io/facebook-tag and stape-io/tiktok-tag (Stape server-side).
plan_server_migration_from_web3 of 3 parameters describedREAD-ONLY: given a WEB container, list every tag that can move to a SERVER container and the plan to port each: which server tool builds it (the create_*_capi_server_tag / create_server_tag tools here), the public ids read off the web tag (`derived` - Pixel IDs from template params or the fbq/ttq/pintrk/rdt/snaptr/uet/twq init calls, which pre-fill the server tag where the web id IS the server field; the Pinterest Tag ID and LinkedIn Partner ID are informational only, the server tag needs a different id listed in `requires`), and the secrets you must still ask the user for (`requires` - CAPI access tokens are never in a web container). Creates NOTHING. GA4 is reported once in `ga4` (port it with create_server_tag platform "ga4" as the relay, or the setup_server_side_container prompt; a {{Constant}} Measurement ID is resolved to its value, a Lookup/RegEx Table to its G- outputs (one holding only AW-/GT- ids is a Google Ads tag, not GA4), any other {{variable}} id is listed in ga4.unresolvedRefs - ask the user for the G- id, or confirm it is a Google Ads (AW-) tag and not GA4); Google Ads conversion (awct) / remarketing (sp) -> create_server_tag; Meta/TikTok/LinkedIn/Pinterest/Reddit/Snapchat/Microsoft/Amazon/StackAdapt/X/Quora/AdRoll/Nextdoor/Yelp/Spotify/LINE Yahoo/RTB House pixels -> their typed tool (native Microsoft UET `baut` and LinkedIn Insight `bzi` tags are recognised by type); analytics (Mixpanel, Matomo, Piwik PRO, Piano, Plausible, Umami, Pirsch, Snowplow, Klaviyo) and affiliate networks (Awin, CJ, Impact, Rakuten, ShareASale, Tradedoubler, Webgains, Admitad, Adtraction, Affiliate Future, Effinity, Refersion, Tapfiliate, Everflow, Voluum) -> GENERIC items (status "generic"): templates_import_from_gallery the named stape-io repo, then tags_create with the template fields listed in `requires` (secrets) + `derived` (public ids read off the web snippet); Floodlight (flc) -> generic import path; Google Ads call conversion has no sGTM equivalent; Conversion Linker (gclidw) needs no server tag. Returns { ga4, items[], summary, truncated }.
create_server_tag13 of 14 parameters described[WRITE] Create a NATIVE Google server tag in a SERVER container workspace, built with the correct shape: platform "ga4" = the GA4 relay (sgtmgaaw; omit eventName to relay every incoming event, pass one for a per-event tag; optional eventParameters / userProperties enrichment rows), "ads_conversion" = Google Ads conversion (sgtmadsct; conversionId + conversionLabel), "ads_conversion_linker" = the server Conversion Linker (sgtmadscl), "ads_remarketing" = Google Ads remarketing (sgtmadsremarket; conversionId). Pass the SERVER trigger id(s) as firingTriggerId. Requires GTM_MCP_ENABLE_WRITES=true and confirm=true.
create_meta_capi_server_tag8 of 9 parameters described[WRITE] Create a Meta Conversions API SERVER tag from the Stape template (stape-io/facebook-tag), imported automatically: the server counterpart of the Meta Pixel. pixelId is the Pixel ID (public, on the web pixel), accessToken the CAPI system-user token. `event` is the Meta event the tag sends (Purchase, Lead, a GA4 name is mapped, or a custom name). User data (em/ph/external_id/IP/user agent), ecommerce custom data and the event_id dedup key are mapped from `ed - …` Event Data variables, which this tool creates in the workspace when they are missing. containerId must be the SERVER container. Needs a SERVER trigger (triggers_create) passed as firingTriggerId. Requires GTM_MCP_ENABLE_WRITES=true and confirm=true.
create_tiktok_capi_server_tag8 of 9 parameters described[WRITE] Create a TikTok Events API SERVER tag from the Stape template (stape-io/tiktok-tag), imported automatically. pixelId is the TikTok Pixel Code (public), accessToken the Events API token. `event` is the TikTok event (CompletePayment, SubmitForm, a GA4 name is mapped). User data, event properties and the event_id dedup key are mapped from `ed - …` Event Data variables, which this tool creates in the workspace when they are missing. containerId must be the SERVER container. Needs a SERVER trigger (triggers_create) passed as firingTriggerId. Requires GTM_MCP_ENABLE_WRITES=true and confirm=true.
create_linkedin_capi_server_tag11 of 15 parameters described[WRITE] Create a LinkedIn Conversions API SERVER tag from the Stape template (stape-io/linkedin-tag), imported automatically. LinkedIn CAPI fires on a CONVERSION RULE URN (urn:lla:llaPartnerConversion:…) from Campaign Manager, NOT the web Partner ID; the tag auto-maps user ids / user info / event data. eventId dedups against the Insight Tag. containerId must be the SERVER container. Needs a SERVER trigger (triggers_create) passed as firingTriggerId. Requires GTM_MCP_ENABLE_WRITES=true and confirm=true.
create_pinterest_capi_server_tag8 of 10 parameters described[WRITE] Create a Pinterest Conversions API SERVER tag from the official template (pinterest/ss-gtm-template), imported automatically. advertiserId is the Pinterest Ad Account ID (549 followed by 9 digits, from Ads Manager; NOT the web Tag ID), apiAccessToken the Conversions API token. Omit `event` to inherit the incoming event name (auto-mapped); pass a Pinterest standard event (checkout, lead, signup, …) or a GA4 name to force one. containerId must be the SERVER container. Needs a SERVER trigger (triggers_create) passed as firingTriggerId. Requires GTM_MCP_ENABLE_WRITES=true and confirm=true.
create_stackadapt_server_tag9 of 11 parameters described[WRITE] Create a StackAdapt SERVER pixel tag from the official template (StackAdapt/stackadapt-gtm-server-side-pixel), imported automatically. Not a CAPI: an id-only pixel (pixelID + pixelType rt/lal/conv/universal, default conv) with optional commonProperties (email/order_id/revenue/action…) and customProperties. No token, no event_id dedup. containerId must be the SERVER container. Needs a SERVER trigger (triggers_create) passed as firingTriggerId. Requires GTM_MCP_ENABLE_WRITES=true and confirm=true.
create_reddit_capi_server_tag9 of 16 parameters described[WRITE] Create a Reddit Conversions API SERVER tag from the Stape template (stape-io/reddit-tag), imported automatically. pixelId is the Reddit Pixel/Advertiser id (t2_/a2_, public), accessToken the Conversions Access Token. Omit `event` to inherit; pass a Reddit standard event (PAGE_VISIT/VIEW_CONTENT/SEARCH/ADD_TO_CART/ADD_TO_WISHLIST/PURCHASE/LEAD/SIGN_UP), a GA4 name, or a custom name. eventId is the conversion_id dedup row. containerId must be the SERVER container. Needs a SERVER trigger (triggers_create) passed as firingTriggerId. Requires GTM_MCP_ENABLE_WRITES=true and confirm=true.
create_snapchat_capi_server_tag10 of 15 parameters described[WRITE] Create a Snapchat Conversions API SERVER tag from the official template (Snapchat/capi-google-tag-manager-serverside-tag), imported automatically. pixelId is the Snap Pixel ID (public), apiAccessToken the CAPI token. `event` is the Snap event (PURCHASE, SIGN_UP, a GA4 name is mapped). eventId dedups against the Snap Pixel. User data and the default event_id are mapped from the Meta-style `ed - …` Event Data variables, which this tool creates in the workspace when they are missing. containerId must be the SERVER container. Needs a SERVER trigger (triggers_create) passed as firingTriggerId. Requires GTM_MCP_ENABLE_WRITES=true and confirm=true.
create_microsoft_capi_server_tag10 of 15 parameters described[WRITE] Create a Microsoft Ads (Bing) UET Conversions API SERVER tag from the Stape template (stape-io/microsoft-capi-tag), imported automatically. uetTagId is the UET Tag ID (public; the built-in web tag stores it as tagId), authToken the API token. `event` is the conversion goal / GA4 name. REQUIRES the MSCLKID to be forwarded from the web side for attribution. containerId must be the SERVER container. Needs a SERVER trigger (triggers_create) passed as firingTriggerId. Requires GTM_MCP_ENABLE_WRITES=true and confirm=true.
create_amazon_capi_server_tag10 of 13 parameters described[WRITE] Create an Amazon Ads Conversions API SERVER tag from the Stape template (stape-io/amazon-tag), imported automatically. No token: the only credential is tagIds (the Amazon Ads Tag UUIDs) plus tagRegion (NA | EU). Omit `event` to inherit; pass an Amazon standard event (Off-AmazonPurchases, Lead, …) or a GA4 name. eventId is the clientDedupeId dedup row. containerId must be the SERVER container. Needs a SERVER trigger (triggers_create) passed as firingTriggerId. Requires GTM_MCP_ENABLE_WRITES=true and confirm=true.
create_x_capi_server_tag10 of 19 parameters described[WRITE] Create an X (Twitter) Conversion API SERVER tag from the Stape template (stape-io/twitter-tag), imported automatically. The template has NO event-name field: eventId is the per-conversion X "Event ID" (tw-…) from X Ads > Events Manager, so one tag = one X conversion event and the server trigger decides when it fires. Auth is EITHER pixelAccessToken OR the OAuth 1.0a quartet. conversionId is the dedup row against the X Pixel. containerId must be the SERVER container. Needs a SERVER trigger (triggers_create) passed as firingTriggerId. Requires GTM_MCP_ENABLE_WRITES=true and confirm=true.
create_quora_capi_server_tag10 of 15 parameters described[WRITE] Create a Quora Conversion API SERVER tag from the Stape template (stape-io/quora-tag), imported automatically. pixelId is the Quora Pixel ID (stored in the template's accountId field), accessToken the Quora API token. Omit `event` to inherit; Quora has NO custom event, so an unknown name becomes Generic. eventId is the dedup row. containerId must be the SERVER container. Needs a SERVER trigger (triggers_create) passed as firingTriggerId. Requires GTM_MCP_ENABLE_WRITES=true and confirm=true.
create_adroll_capi_server_tag10 of 16 parameters described[WRITE] Create an AdRoll SERVER tag from the Stape template (stape-io/adroll-tag), imported automatically. Needs advertisableId AND pixelId (both public, on the web snippet as adroll_adv_id / adroll_pix_id) plus an accessToken. Omit `event` to inherit; pageView/productSearch/addToCart/purchase or a GA4 name are standard, anything else is a custom event. containerId must be the SERVER container. Needs a SERVER trigger (triggers_create) passed as firingTriggerId. Requires GTM_MCP_ENABLE_WRITES=true and confirm=true.
create_nextdoor_capi_server_tag10 of 19 parameters described[WRITE] Create a Nextdoor Conversion API SERVER tag from the Stape template (stape-io/nextdoor-tag), imported automatically. Needs pixelId (public) plus clientId and accessToken from Nextdoor Ads. Omit `event` to inherit; conversion/lead/purchase/sign_up/custom_conversion_1..10 or a GA4 name are standard. eventId is the dedup row. containerId must be the SERVER container. Needs a SERVER trigger (triggers_create) passed as firingTriggerId. Requires GTM_MCP_ENABLE_WRITES=true and confirm=true.
create_yelp_capi_server_tag10 of 16 parameters described[WRITE] Create a Yelp Conversion API SERVER tag from the Stape template (stape-io/yelp-tag), imported automatically. Yelp has no pixel id: only the accessToken from Yelp Ads. Omit `event` to inherit; purchase/add_to_cart/checkout/lead/view_content/signup/… or a GA4 name are standard. eventId is the dedup row; validate runs Yelp's payload validation. containerId must be the SERVER container. Needs a SERVER trigger (triggers_create) passed as firingTriggerId. Requires GTM_MCP_ENABLE_WRITES=true and confirm=true.
create_spotify_capi_server_tag10 of 18 parameters described[WRITE] Create a Spotify Ads Conversion API SERVER tag from the Stape template (stape-io/spotify-tag), imported automatically. Needs authToken and connectionId. Omit `event` to inherit; Page_View/Sign_Up/Lead/View_Product/Add_Cart/Start_Checkout/Purchase or a GA4 name are standard, custom_event_1..5 are the only custom slots (anything else inherits). eventId is the dedup row. containerId must be the SERVER container. Needs a SERVER trigger (triggers_create) passed as firingTriggerId. Requires GTM_MCP_ENABLE_WRITES=true and confirm=true.
create_line_yahoo_capi_server_tag11 of 20 parameters described[WRITE] Create a LINE Yahoo (Yahoo! JAPAN Ads) Conversion API SERVER tag from the Stape template (stape-io/line-yahoo-tag), imported automatically. Needs the Yahoo tagId (public), accessToken and channelId. Omit `event` to inherit; Yahoo has NO custom events (unknown names inherit). Every event other than page_view needs its own eventSnippetId from Yahoo Ads. transactionId is the dedup row. containerId must be the SERVER container. Needs a SERVER trigger (triggers_create) passed as firingTriggerId. Requires GTM_MCP_ENABLE_WRITES=true and confirm=true.
create_rtb_house_server_tag9 of 20 parameters described[WRITE] Create an RTB House SERVER tag from the Stape template (stape-io/rtb-house-tag), imported automatically. A retargeting tag with NO token: needs the taggingHash (public, the id in the creativecdn.com pixel URL) and the partnerKey. Its events are PAGE TYPES, so `event` is required: home/listing/offer/wishlist/basketadd/basketstatus/startorder/conversion_order/conversion or a GA4 name (page_view→home, view_item→offer, add_to_cart→basketadd, purchase→conversion_order, …). containerId must be the SERVER container. Needs a SERVER trigger (triggers_create) passed as firingTriggerId. Requires GTM_MCP_ENABLE_WRITES=true and confirm=true.
audit_container1 of 4 parameters describedInspect a GTM workspace for common analytics implementation issues. Returns structured findings with severity levels (error/warning/info). This is a read-only operation — it never modifies anything.
export_container2 of 5 parameters describedExport a full GTM workspace summary as structured JSON. Returns all tags, triggers, variables, folders, and built-in variables. This is a read-only operation. Use this for documentation, auditing, or feeding container data to other tools.
ga4_account_summaries_list2 of 2 parameters describedList GA4 account summaries accessible to the authenticated user. Each summary includes the account plus a lightweight list of its property summaries (property ID + display name). Best starting point to discover available GA4 accounts and properties. Read-only.
ga4_properties_list4 of 4 parameters describedList GA4 properties under a given parent account. Returns full property records (display name, time zone, currency, industry, service level). Read-only.
ga4_property_get1 of 1 parameter describedGet a single GA4 property by ID, including display name, time zone, currency, industry category, and service level. Read-only.
ga4_data_streams_list3 of 3 parameters describedList data streams for a GA4 property (web, Android, iOS). Web streams include the measurement ID and default URI; app streams include package name / bundle ID. Use this to audit measurement IDs and stream config. Read-only.
ga4_enhanced_measurement_get2 of 2 parameters describedGet the enhanced measurement settings for a specific WEB data stream (scrolls, outbound clicks, site search, video engagement, file downloads, form interactions). Only valid for web streams. Served via the Admin API v1alpha surface (not yet in v1beta). Read-only.
ga4_custom_dimensions_list3 of 3 parameters describedList custom dimensions configured on a GA4 property (parameter name, display name, scope: EVENT/USER/ITEM). Read-only.
ga4_custom_metrics_list3 of 3 parameters describedList custom metrics configured on a GA4 property (parameter name, display name, measurement unit, scope, restricted-metric type). Read-only.
ga4_data_retention_get1 of 1 parameter describedGet the data retention settings for a GA4 property (event data retention duration and whether retention resets on new activity). Read-only.
ga4_key_events_list3 of 3 parameters describedList key events (formerly "conversion events") for a GA4 property — the current Admin API naming. Returns event name, counting method, and whether the event is deletable. Read-only.
ga4_google_ads_links_list3 of 3 parameters describedList Google Ads links for a GA4 property (linked customer ID, personalized-advertising and auto-tagging flags). Read-only.
ga4_create_key_event5 of 5 parameters described[GA4 WRITE] Create a key event (conversion) on a GA4 property. Requires GA4_MCP_ENABLE_WRITES=true and confirm=true.
ga4_update_key_event4 of 5 parameters described[GA4 WRITE] Update a key event (e.g. its counting method or default value via body). Pass only the fields to change; updateMask is derived from them (override with an explicit updateMask for nested paths). Requires GA4_MCP_ENABLE_WRITES=true and confirm=true.
ga4_delete_key_event2 of 2 parameters described[GA4 DELETE] Delete a key event (it reverts to a normal event). Requires GA4_MCP_ENABLE_DELETES=true and confirm=true.
ga4_create_custom_dimension6 of 7 parameters described[GA4 WRITE] Create a custom dimension. Requires GA4_MCP_ENABLE_WRITES=true and confirm=true.
ga4_update_custom_dimension3 of 6 parameters described[GA4 WRITE] Update a custom dimension (parameterName and scope are immutable). Pass only the fields to change; updateMask is derived from them (override with an explicit updateMask for nested paths). Requires GA4_MCP_ENABLE_WRITES=true and confirm=true.
ga4_archive_custom_dimension2 of 2 parameters described[GA4 DELETE] Archive a custom dimension (there is no hard delete). Archiving is effectively permanent (no un-archive). Requires GA4_MCP_ENABLE_DELETES=true and confirm=true.
ga4_create_custom_metric6 of 8 parameters described[GA4 WRITE] Create a custom metric. Requires GA4_MCP_ENABLE_WRITES=true and confirm=true.
ga4_update_custom_metric3 of 6 parameters described[GA4 WRITE] Update a custom metric (parameterName and scope are immutable). Pass only the fields to change; updateMask is derived from them (override with an explicit updateMask for nested paths). Requires GA4_MCP_ENABLE_WRITES=true and confirm=true.
ga4_archive_custom_metric2 of 2 parameters described[GA4 DELETE] Archive a custom metric (there is no hard delete). Archiving is effectively permanent (no un-archive). Requires GA4_MCP_ENABLE_DELETES=true and confirm=true.
ga4_create_data_stream7 of 8 parameters described[GA4 WRITE] Create a data stream (web / Android / iOS). Requires GA4_MCP_ENABLE_WRITES=true and confirm=true.
ga4_update_data_stream5 of 6 parameters described[GA4 WRITE] Update a data stream: displayName and (web) defaultUri ONLY. Cross-domain domains, unwanted referrals, internal traffic and session settings are Google tag settings with NO Admin API fields - never attempt them; direct the user to GA4 Admin > Data streams > Configure tag settings. Pass only the fields to change; updateMask is derived from them (override with an explicit updateMask for nested paths). Requires GA4_MCP_ENABLE_WRITES=true and confirm=true.
ga4_delete_data_stream2 of 2 parameters described[GA4 DELETE] Delete a data stream (removes its measurement ID / firebase app id). Requires GA4_MCP_ENABLE_DELETES=true and confirm=true.
ga4_create_google_ads_link3 of 4 parameters described[GA4 WRITE] Create a Google Ads link. Requires GA4_MCP_ENABLE_WRITES=true and confirm=true.
ga4_update_google_ads_link3 of 4 parameters described[GA4 WRITE] Update a Google Ads link (personalized advertising flag). Pass only the fields to change; updateMask is derived from them (override with an explicit updateMask for nested paths). Requires GA4_MCP_ENABLE_WRITES=true and confirm=true.
ga4_delete_google_ads_link2 of 2 parameters described[GA4 DELETE] Delete a Google Ads link. Requires GA4_MCP_ENABLE_DELETES=true and confirm=true.
ga4_create_firebase_link3 of 3 parameters described[GA4 WRITE] Create a Firebase link (no update; delete + recreate to change). Requires GA4_MCP_ENABLE_WRITES=true and confirm=true.
ga4_delete_firebase_link2 of 2 parameters described[GA4 DELETE] Delete a Firebase link. Requires GA4_MCP_ENABLE_DELETES=true and confirm=true.
ga4_create_measurement_protocol_secret4 of 4 parameters described[GA4 WRITE] Create a Measurement Protocol secret on a data stream. The response includes the secretValue — store it securely. Requires GA4_MCP_ENABLE_WRITES=true and confirm=true.
ga4_update_measurement_protocol_secret3 of 4 parameters described[GA4 WRITE] Rename a Measurement Protocol secret. Pass only the fields to change; updateMask is derived from them (override with an explicit updateMask for nested paths). Requires GA4_MCP_ENABLE_WRITES=true and confirm=true.
ga4_delete_measurement_protocol_secret2 of 2 parameters described[GA4 DELETE] Delete a Measurement Protocol secret (revokes it). Requires GA4_MCP_ENABLE_DELETES=true and confirm=true.
ga4_create_audience3 of 6 parameters described[GA4 WRITE] Create an audience. Pass the filterClauses via `body` (see the Admin API Audience shape). Requires GA4_MCP_ENABLE_WRITES=true and confirm=true.
ga4_update_audience4 of 6 parameters described[GA4 WRITE] Update an audience (only displayName/description are mutable; filters are immutable). Pass only the fields to change; updateMask is derived from them (override with an explicit updateMask for nested paths). Requires GA4_MCP_ENABLE_WRITES=true and confirm=true.
ga4_archive_audience2 of 2 parameters described[GA4 DELETE] Archive an audience (stops collection; effectively permanent). Archiving is effectively permanent (no un-archive). Requires GA4_MCP_ENABLE_DELETES=true and confirm=true.
ga4_create_channel_group3 of 5 parameters described[GA4 WRITE] Create a custom channel group. Pass groupingRule[] via `body`. Requires GA4_MCP_ENABLE_WRITES=true and confirm=true.
ga4_update_channel_group4 of 4 parameters described[GA4 WRITE] Update a custom channel group (supply groupingRule/displayName via body). Pass only the fields to change; updateMask is derived from them (override with an explicit updateMask for nested paths). Requires GA4_MCP_ENABLE_WRITES=true and confirm=true.
ga4_delete_channel_group2 of 2 parameters described[GA4 DELETE] Delete a custom channel group. Requires GA4_MCP_ENABLE_DELETES=true and confirm=true.
ga4_create_calculated_metric5 of 7 parameters described[GA4 WRITE] Create a calculated metric (calculatedMetricId is required). Requires GA4_MCP_ENABLE_WRITES=true and confirm=true.
ga4_update_calculated_metric4 of 7 parameters described[GA4 WRITE] Update a calculated metric (formula/displayName/unit via fields or body). Pass only the fields to change; updateMask is derived from them (override with an explicit updateMask for nested paths). Requires GA4_MCP_ENABLE_WRITES=true and confirm=true.
ga4_delete_calculated_metric2 of 2 parameters described[GA4 DELETE] Delete a calculated metric. Requires GA4_MCP_ENABLE_DELETES=true and confirm=true.
ga4_create_expanded_data_set3 of 5 parameters described[GA4 WRITE] Create an expanded data set (GA4 360 only). Pass dimensionNames/metricNames/dimensionFilterExpression via `body`. Requires GA4_MCP_ENABLE_WRITES=true and confirm=true.
ga4_update_expanded_data_set4 of 4 parameters described[GA4 WRITE] Update an expanded data set (360). Supply fields via body. Pass only the fields to change; updateMask is derived from them (override with an explicit updateMask for nested paths). Requires GA4_MCP_ENABLE_WRITES=true and confirm=true.
ga4_delete_expanded_data_set2 of 2 parameters described[GA4 DELETE] Delete an expanded data set (360). Requires GA4_MCP_ENABLE_DELETES=true and confirm=true.
ga4_create_display_video_360_advertiser_link4 of 4 parameters described[GA4 WRITE] Create a Display & Video 360 advertiser link. Requires GA4_MCP_ENABLE_WRITES=true and confirm=true.
ga4_update_display_video_360_advertiser_link4 of 4 parameters described[GA4 WRITE] Update a DV360 advertiser link (ads personalization / campaign data sharing via body). Pass only the fields to change; updateMask is derived from them (override with an explicit updateMask for nested paths). Requires GA4_MCP_ENABLE_WRITES=true and confirm=true.
ga4_delete_display_video_360_advertiser_link2 of 2 parameters described[GA4 DELETE] Delete a DV360 advertiser link. Requires GA4_MCP_ENABLE_DELETES=true and confirm=true.
ga4_create_search_ads_360_link3 of 4 parameters described[GA4 WRITE] Create a Search Ads 360 link. Requires GA4_MCP_ENABLE_WRITES=true and confirm=true.
ga4_update_search_ads_360_link4 of 4 parameters described[GA4 WRITE] Update a Search Ads 360 link (data-sharing flags via body). Pass only the fields to change; updateMask is derived from them (override with an explicit updateMask for nested paths). Requires GA4_MCP_ENABLE_WRITES=true and confirm=true.
ga4_delete_search_ads_360_link2 of 2 parameters described[GA4 DELETE] Delete a Search Ads 360 link. Requires GA4_MCP_ENABLE_DELETES=true and confirm=true.
ga4_create_adsense_link4 of 4 parameters described[GA4 WRITE] Create an AdSense link (no update). Requires GA4_MCP_ENABLE_WRITES=true and confirm=true.
ga4_delete_adsense_link2 of 2 parameters described[GA4 DELETE] Delete an AdSense link. Requires GA4_MCP_ENABLE_DELETES=true and confirm=true.
ga4_create_subproperty_event_filter3 of 3 parameters described[GA4 WRITE] Create a subproperty event filter (GA4 360). Supply applyToProperty + filterClauses via `body`. Requires GA4_MCP_ENABLE_WRITES=true and confirm=true.
ga4_update_subproperty_event_filter4 of 4 parameters described[GA4 WRITE] Update a subproperty event filter (360). Pass only the fields to change; updateMask is derived from them (override with an explicit updateMask for nested paths). Requires GA4_MCP_ENABLE_WRITES=true and confirm=true.
ga4_delete_subproperty_event_filter2 of 2 parameters described[GA4 DELETE] Delete a subproperty event filter (360). Requires GA4_MCP_ENABLE_DELETES=true and confirm=true.
ga4_create_rollup_property_source_link4 of 4 parameters described[GA4 WRITE] Add a source property to a rollup property (GA4 360, no update). Requires GA4_MCP_ENABLE_WRITES=true and confirm=true.
ga4_delete_rollup_property_source_link2 of 2 parameters described[GA4 DELETE] Remove a source property from a rollup (360). Requires GA4_MCP_ENABLE_DELETES=true and confirm=true.
ga4_create_event_create_rule5 of 5 parameters described[GA4 WRITE] Create an event-create rule on a data stream (server-side event creation). Supply eventConditions/parameterMutations via `body`. Requires GA4_MCP_ENABLE_WRITES=true and confirm=true.
ga4_update_event_create_rule4 of 4 parameters described[GA4 WRITE] Update an event-create rule (conditions/mutations via body). Pass only the fields to change; updateMask is derived from them (override with an explicit updateMask for nested paths). Requires GA4_MCP_ENABLE_WRITES=true and confirm=true.
ga4_delete_event_create_rule2 of 2 parameters described[GA4 DELETE] Delete an event-create rule. Requires GA4_MCP_ENABLE_DELETES=true and confirm=true.
ga4_create_skadnetwork_conversion_value_schema4 of 4 parameters described[GA4 WRITE] Create the SKAdNetwork conversion value schema on an iOS data stream. Supply postbackWindow settings via `body`. Requires GA4_MCP_ENABLE_WRITES=true and confirm=true.
ga4_update_skadnetwork_conversion_value_schema4 of 4 parameters described[GA4 WRITE] Update the SKAdNetwork conversion value schema. Pass only the fields to change; updateMask is derived from them (override with an explicit updateMask for nested paths). Requires GA4_MCP_ENABLE_WRITES=true and confirm=true.
ga4_delete_skadnetwork_conversion_value_schema2 of 2 parameters described[GA4 DELETE] Delete the SKAdNetwork conversion value schema. Requires GA4_MCP_ENABLE_DELETES=true and confirm=true.
ga4_create_property_access_binding4 of 4 parameters described[GA4 WRITE] Grant a user access to a GA4 property (needs analytics.manage.users scope). Requires GA4_MCP_ENABLE_WRITES=true and confirm=true.
ga4_update_property_access_binding2 of 3 parameters described[GA4 WRITE] Change a user's roles on a property (needs analytics.manage.users). The roles you pass replace the binding's roles. This API has no updateMask: the supplied fields replace the whole resource. Requires GA4_MCP_ENABLE_WRITES=true and confirm=true.
ga4_delete_property_access_binding2 of 2 parameters described[GA4 DELETE] Revoke a user's access to a property (needs analytics.manage.users). Requires GA4_MCP_ENABLE_DELETES=true and confirm=true.
ga4_create_account_access_binding2 of 4 parameters described[GA4 WRITE] Grant a user access to a GA4 account (needs analytics.manage.users). Requires GA4_MCP_ENABLE_WRITES=true and confirm=true.
ga4_update_account_access_binding2 of 3 parameters described[GA4 WRITE] Change a user's roles on an account (needs analytics.manage.users). The roles you pass replace the binding's roles. This API has no updateMask: the supplied fields replace the whole resource. Requires GA4_MCP_ENABLE_WRITES=true and confirm=true.
ga4_delete_account_access_binding2 of 2 parameters described[GA4 DELETE] Revoke a user's access to an account (needs analytics.manage.users). Requires GA4_MCP_ENABLE_DELETES=true and confirm=true.
ga4_create_property4 of 6 parameters described[GA4 WRITE] Create a new GA4 property under an account. Requires GA4_MCP_ENABLE_WRITES=true and confirm=true.
ga4_update_property1 of 7 parameters described[GA4 WRITE] Update a GA4 property (displayName / timeZone / currencyCode / industryCategory). Requires GA4_MCP_ENABLE_WRITES=true and confirm=true.
ga4_delete_property1 of 2 parameters described[GA4 DELETE] Soft-delete (trash) a GA4 property. It is recoverable from the trash for a limited time, then permanently removed. Requires GA4_MCP_ENABLE_DELETES=true and confirm=true.
ga4_update_data_retention1 of 4 parameters described[GA4 WRITE] Update a property's event data retention (2/14/26/38/50 months; the longer options are 360-only) and whether it resets on new activity. Requires GA4_MCP_ENABLE_WRITES=true and confirm=true.
ga4_update_enhanced_measurement4 of 13 parameters described[GA4 WRITE] Update a WEB data stream's Enhanced Measurement: master streamEnabled plus per-signal toggles (scrolls, outbound clicks, site search + query params, video engagement, file downloads, form interactions, SPA page changes). Requires GA4_MCP_ENABLE_WRITES=true and confirm=true.
ga4_update_data_redaction4 of 6 parameters described[GA4 WRITE] Update a WEB data stream's client-side data redaction: email redaction and URL query-parameter redaction (with the parameter key list). Requires GA4_MCP_ENABLE_WRITES=true and confirm=true.
ga4_update_attribution_settings2 of 6 parameters described[GA4 WRITE] Update a property's attribution: reporting model, acquisition/other conversion lookback windows, and the Ads web-conversion export scope. Requires GA4_MCP_ENABLE_WRITES=true and confirm=true.
ga4_update_google_signals2 of 3 parameters described[GA4 WRITE] Turn Google Signals on or off for a property (cross-device + demographics collection - the user must confirm their privacy disclosures cover it). Requires GA4_MCP_ENABLE_WRITES=true and confirm=true.
ga4_update_account0 of 3 parameters described[GA4 WRITE] Update a GA4 account (displayName). Requires GA4_MCP_ENABLE_WRITES=true and confirm=true.
ga4_delete_account0 of 2 parameters described[GA4 DELETE] Soft-delete (trash) an entire GA4 account and all its properties. High blast radius — recoverable from the trash for a limited time. Requires GA4_MCP_ENABLE_DELETES=true and confirm=true.
ga4_acknowledge_user_data_collection1 of 2 parameters described[GA4 WRITE] Acknowledge that the property owner has the required user privacy disclosures/rights. Some operations (e.g. creating certain links or MP secrets) require this once. Requires GA4_MCP_ENABLE_WRITES=true and confirm=true.
ga4_run_report8 of 8 parameters describedRun a read-only GA4 Data API report for a property over a date range. Returns dimension/metric rows (e.g. event counts by eventName). Useful for reconciling configured GTM/GA4 events against events GA4 actually reports (zero reported activity for a configured event is a red flag). Read-only — never writes. Requires the analytics.readonly scope.
ga4_check_compatibility3 of 3 parameters describedCheck which of the given GA4 dimensions/metrics can be combined in ONE report on this property (the Data API rejects incompatible pairs). Call this BEFORE ga4_run_report when combining unusual dimensions/metrics; drop or replace anything reported incompatible instead of retrying blind. Read-only.
ga4_run_realtime_report4 of 4 parameters describedRun a read-only GA4 Data API Realtime report (events in roughly the last 30 minutes). Useful to confirm a tag is firing right now during live QA. Read-only — never writes. Requires the analytics.readonly scope.
gtm_type_reference3 of 3 parameters describedThe catalogue of GTM TYPE CODES: tag types, trigger types and user-defined variable types, each with the exact string the API expects and the name it carries in the GTM interface. Call this to ANSWER a question about what types exist ("which tag types do you support?", "what triggers can you make?", "can you add Hotjar?"), and to look up the right code BEFORE calling tags_create, triggers_create or variables_create. Read-only, no API call, no container needed. Note that Google publishes an enum for TRIGGER types but not for tag or variable types, so those codes are recorded here rather than discoverable from the API. For built-in variables use built_in_variables_list, which carries the full published enum. For a specific gallery template that is already installed, templates_list returns its exact tagType, which is always more reliable than this list.
templates_describe_fields4 of 4 parameters describedRead the FIELDS a custom or Community Gallery template accepts, straight from the template's own source. Call this after templates_import_from_gallery and BEFORE tags_create, so the tag is built with that template's real parameter keys instead of guessed ones. Returns each field's name (the key for the tag's `parameter` array), its widget type, its label, whether it is required, and any fixed options. Also returns the template's tagType, so one call gives everything tags_create needs. Read-only. Only works for custom and gallery templates: GTM's ~68 BUILT-IN vendor templates carry no source, so for those use tags_type_profile against a container that already has one.
tags_type_profile4 of 4 parameters describedGroup a workspace's existing tags by TYPE and report, for each, the parameter keys those tags actually use. This is how to learn an UNDOCUMENTED tag type: Google does not publish the type codes or field names for GTM's ~68 built-in vendor templates (Criteo, Twitter, Pinterest, Quora and the rest), but a container that already uses one contains the answer, because that tag's own type and keys are definitionally correct. Use it to AUDIT what a container runs, to find an unfamiliar type code, and to copy a working shape before creating a similar tag. `alwaysPresent` lists keys found on every tag of that type, which is the closest thing to a required-field list for a template with no published schema. Read-only.
Tested in a sandbox with an empty environment: no API keys, a throwaway folder, nothing from a real account. A passing test shows the server runs and responds. It is not a security audit.