Skip to main content
Glama
Samarth GTM MCP Server

Samarth GTM MCP Server

Official

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
DRY_RUNNoSimulate all writes without calling the API.false
GOOGLE_CLIENT_IDNoLegacy OAuth client ID.
GTM_MCP_HTTP_PORTNoHTTP server port (http transport only; falls back to PORT).3001
GTM_MCP_RETRY_MAXNoRetry attempts for transient read failures (408/429/5xx, network). 0 disables retries. Mutations are never auto-retried.3
GTM_MCP_TRANSPORTNoTransport: stdio or http.stdio
GTM_MCP_TOKEN_FILENoPath to the local OAuth token file written by npm run auth:google (gitignored)../.gtm-mcp-tokens.json
GOOGLE_ACCESS_TOKENNoCurrent OAuth access token. Env vars take precedence over the token file.
GOOGLE_REDIRECT_URINoLegacy OAuth redirect URI.
GOOGLE_CLIENT_SECRETNoLegacy OAuth client secret.
GOOGLE_REFRESH_TOKENNoOAuth refresh token (long-lived). Env vars take precedence over the token file.
GTM_MCP_ENABLE_WRITESNoAllow create/update operations.false
GOOGLE_OAUTH_CLIENT_IDNoOAuth client ID (preferred). Falls back to GOOGLE_CLIENT_ID.
GTM_DEFAULT_ACCOUNT_IDNoOptional default accountId.
GTM_MCP_ENABLE_DELETESNoAllow delete operations.false
GTM_MCP_ENABLE_PUBLISHNoAllow publish operations.false
GTM_MCP_HTTP_AUTH_TOKENNoBearer token gating /mcp (http transport). Required before exposing the server beyond localhost; unset = open + startup warning.
GTM_DEFAULT_CONTAINER_IDNoOptional default containerId.
GTM_DEFAULT_WORKSPACE_IDNoOptional default workspaceId.
GOOGLE_OAUTH_REDIRECT_URINoOAuth redirect URI. Falls back to GOOGLE_REDIRECT_URI.http://localhost:3001/oauth/callback
GOOGLE_OAUTH_CLIENT_SECRETNoOAuth client secret (preferred). Falls back to GOOGLE_CLIENT_SECRET.
GTM_MCP_RETRY_MAX_DELAY_MSNoCap on a single backoff sleep (exponential backoff with jitter).30000
GTM_MCP_RETRY_TOTAL_TIMEOUT_MSNoCap on total wall time from first request to last retry.60000
SAMARTH_GOOGLE_OAUTH_CLIENT_IDNoHosted-only. Samarth-owned public OAuth client. Takes precedence over self-hosted vars when set.
GOOGLE_SERVICE_ACCOUNT_KEY_FILENoPath to service account JSON key (see limitations above).
SAMARTH_GOOGLE_OAUTH_CLIENT_SECRETNoHosted-only. Inject from your platform secret manager. Never commit.

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

Samarth Analytics - Google Tag Manager MCP Server

This server provides full access to the Google Tag Manager API v2, plus a Google Analytics (GA4) Admin API surface (reads always; config writes/deletes only when GA4_MCP_ENABLE_WRITES / GA4_MCP_ENABLE_DELETES are set) and read-only GA4 Data API reporting.

Current mode: READ-ONLY (GTM writes/publish/deletes and GA4 writes/deletes all disabled)

IMPORTANT GUARDRAILS:

  • All write/delete/publish tools require confirm=true to proceed.

  • Set GTM_MCP_ENABLE_WRITES=true in .env to allow create/update operations.

  • Set GTM_MCP_ENABLE_DELETES=true to allow delete operations.

  • Set GTM_MCP_ENABLE_PUBLISH=true to allow publish operations.

  • Set GA4_MCP_ENABLE_WRITES=true to allow GA4 Admin creates/updates (also needs the analytics.edit scope).

  • Set GA4_MCP_ENABLE_DELETES=true to allow GA4 Admin deletes/archives (archive is effectively permanent).

  • Set DRY_RUN=true to simulate all operations without calling the API.

TOOL NAMING CONVENTION:

  • accounts_list, accounts_get

  • containers_list, containers_get, containers_create

  • workspaces_list, workspaces_get, workspaces_create

  • workspace_sync, workspace_resolve_conflict, workspace_quick_preview

  • workspace_create_version_and_publish

  • tags_list, tags_get, tags_create, tags_update, tags_delete

  • triggers_list, triggers_get, triggers_create, triggers_update, triggers_delete

  • variables_list, variables_get, variables_create, variables_update, variables_delete

  • folders_list, folders_get, folders_create, folders_update, folders_delete, folders_entities, folders_move_entities

  • built_in_variables_list, built_in_variables_enable, built_in_variables_disable, built_in_variables_revert

  • versions_list, versions_get, versions_create, versions_publish, versions_set_latest, versions_undelete, versions_delete

  • environments_list, environments_get, environments_create, environments_update, environments_reauthorize, environments_delete

  • user_permissions_list, user_permissions_get, user_permissions_create, user_permissions_update, user_permissions_delete

  • clients_*, transformations_*, zones_*, templates_* (list/get/create/update/delete/revert), gtag_config_* (no revert) - server-side & advanced container resources

  • containers_snippet, containers_lookup, containers_combine, containers_move_tag_id

  • destinations_list, destinations_get, destinations_link

  • workspace_get_status - review the change diff (changed entities + conflicts) before versioning

  • audit_container - inspect for analytics issues

  • export_container - full workspace export as JSON

GA4 ADMIN READS - Google Analytics Admin API v1beta:

  • ga4_account_summaries_list - discover GA4 accounts + property summaries

  • ga4_properties_list, ga4_property_get

  • ga4_data_streams_list, ga4_enhanced_measurement_get (web streams + measurement IDs)

  • ga4_custom_dimensions_list, ga4_custom_metrics_list

  • ga4_data_retention_get

  • ga4_key_events_list (formerly conversion events), ga4_google_ads_links_list These READ tools never write/delete and need no confirm flag. They require the 'analytics.readonly' OAuth scope - re-run npm run auth:google if a 403 mentions scope. Not READABLE through Admin API v1beta (documented limitations, not faked): internal-traffic/ unwanted-referral data filters, referral exclusions, channel groups, audiences. Audiences do have gated v1alpha WRITE tools (see below); there is no audience READ tool.

GA4 ADMIN WRITES - always registered, always gated:

  • ga4_create_* / ga4_update_* / ga4_delete_* / ga4_archive_* cover GA4 Admin config CRUD. They appear in tools/list unconditionally and REFUSE unless the matching GA4_MCP_ENABLE_* flag is true AND confirm=true is passed. Check "Current mode" above before telling a user this server cannot change anything.

GA4 DATA API (READ-ONLY) - Google Analytics Data API v1beta:

  • ga4_run_report - report dimensions/metrics over a date range (e.g. eventCount by eventName).

  • ga4_run_realtime_report - events in roughly the last 30 minutes for live QA. Read-only; no confirm flag. Same analytics.readonly scope as the Admin tools. Use to reconcile configured events vs. events GA4 actually reports. Not exposed here (documented gaps, not stubbed): pivots, cohorts, funnels.

PAGINATION: All list tools that support it auto-follow pagination to return all results. Pass maxPages to bound the work; truncated results include truncated:true and nextPageToken to resume.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": true
}
prompts
{
  "listChanged": true
}

Tools

Functions exposed to the LLM to take actions

NameDescription
accounts_listA

List all GTM accounts accessible to the authenticated user. Returns account IDs, names, and share-data flags.

accounts_getB

Get details of a specific GTM account.

containers_listA

List all GTM containers within a GTM account. Automatically follows pagination to return all containers.

containers_getC

Get details of a specific GTM container.

containers_createA

[WRITE] Create a new GTM container. Requires GTM_MCP_ENABLE_WRITES=true and confirm=true.

containers_set_tagging_server_urlsA

[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_snippetA

Get the GTM installation snippet (HTML/JS tagging code) for a container.

containers_lookupA

Look up a GTM container by its linked destination ID (e.g. a GA4 measurement ID or tag ID).

containers_combineB

[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_idA

[WRITE] Move a Tag ID out of a container into a new container. Requires GTM_MCP_ENABLE_WRITES=true and confirm=true.

destinations_listB

List all destinations (linked Google tags / GA4 destinations) for a GTM container.

destinations_getB

Get details of a specific GTM destination.

destinations_linkA

[WRITE] Link a destination (Google tag / GA4 destination) to a GTM container. Requires GTM_MCP_ENABLE_WRITES=true and confirm=true.

workspaces_listA

List all workspaces within a GTM container. Automatically follows pagination to return all workspaces.

workspaces_getC

Get details of a specific GTM workspace.

workspaces_createA

[WRITE] Create a new workspace. Requires GTM_MCP_ENABLE_WRITES=true.

workspace_get_statusA

Get 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_syncB

Syncs a workspace to the latest container version by updating all unmodified workspace entities. Returns a list of merge conflicts if any.

workspace_resolve_conflictB

Resolve 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_listA

List all GTM tags in a workspace. Automatically follows pagination to return all tags.

tags_getC

Get details of a specific GTM tag.

tags_createB

[WRITE] Create a new GTM tag. Requires GTM_MCP_ENABLE_WRITES=true and confirm=true. Pass the full tag configuration as parameters.

tags_updateA

[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_parametersA

[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_deleteA

[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_listB

List all GTM triggers in a workspace. Automatically follows pagination to return all triggers.

triggers_getC

Get a specific GTM trigger.

triggers_createB

[WRITE] Create a GTM trigger. Requires GTM_MCP_ENABLE_WRITES=true and confirm=true.

triggers_updateA

[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_deleteB

[DELETE] Delete a GTM trigger. Requires GTM_MCP_ENABLE_DELETES=true and confirm=true.

variables_listB

List all user-defined GTM variables in a workspace. Automatically follows pagination to return all variables.

variables_getC

Get a specific GTM variable.

variables_createB

[WRITE] Create a GTM variable. Requires GTM_MCP_ENABLE_WRITES=true and confirm=true.

variables_updateA

[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_deleteA

[DELETE] Delete a GTM variable. Requires GTM_MCP_ENABLE_DELETES=true and confirm=true.

folders_listB

List all GTM folders in a workspace. Automatically follows pagination to return all folders.

folders_getC

Get a specific GTM folder.

folders_entitiesB

List all entities (tags, triggers, variables) within a specific GTM folder. Automatically follows pagination to return all entities.

folders_createB

[WRITE] Create a GTM folder. Requires GTM_MCP_ENABLE_WRITES=true and confirm=true.

folders_updateA

[WRITE] Update a GTM folder (read-modify-write: omitted fields are preserved). Requires GTM_MCP_ENABLE_WRITES=true and confirm=true.

folders_deleteA

[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_entitiesA

[WRITE] Move tags/triggers/variables into a folder. Requires GTM_MCP_ENABLE_WRITES=true and confirm=true.

built_in_variables_listC

List all currently enabled built-in variables in a GTM workspace.

built_in_variables_enableB

[WRITE] Enable one or more built-in variables in a GTM workspace. Requires GTM_MCP_ENABLE_WRITES=true and confirm=true.

built_in_variables_disableA

[DELETE] Disable one or more built-in variables in a GTM workspace. Requires GTM_MCP_ENABLE_DELETES=true and confirm=true.

built_in_variables_revertA

[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_tagA

[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_typedA

[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_listC

List all container version headers (summary) for a GTM container.

versions_getB

Get the full contents of a specific GTM container version. Pass "live" as containerVersionId to get the currently live version.

versions_createA

[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_latestA

[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_undeleteB

[WRITE] Undelete a previously deleted GTM container version. Requires GTM_MCP_ENABLE_WRITES=true and confirm=true.

versions_deleteA

[DELETE] Delete a GTM container version. Requires GTM_MCP_ENABLE_DELETES=true and confirm=true. Cannot delete a currently published (live) version.

workspace_quick_previewA

Generate 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_publishA

[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_publishA

[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_listA

List all environments in a GTM container. Automatically follows pagination.

environments_getB

Get details of a specific GTM environment.

environments_createA

[WRITE] Create a new GTM environment. Requires GTM_MCP_ENABLE_WRITES=true and confirm=true.

environments_updateA

[WRITE] Update an existing GTM environment (read-modify-write: omitted fields are preserved). Requires GTM_MCP_ENABLE_WRITES=true and confirm=true.

environments_reauthorizeA

[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_deleteA

[DELETE] Delete a GTM environment. Requires GTM_MCP_ENABLE_DELETES=true and confirm=true.

user_permissions_listA

List 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_getB

Get a specific user permission record for a GTM account.

user_permissions_createA

[WRITE] Grant a user access to a GTM account (and optionally containers). Requires GTM_MCP_ENABLE_WRITES=true and confirm=true.

user_permissions_updateA

[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_deleteA

[DELETE] Revoke a user's access to a GTM account. Requires GTM_MCP_ENABLE_DELETES=true and confirm=true.

clients_listB

List all GTM clients in a workspace. Automatically follows pagination.

clients_getC

Get a specific GTM client.

clients_createA

[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_updateA

[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_deleteA

[DELETE] Delete a GTM client. Requires GTM_MCP_ENABLE_DELETES=true and confirm=true.

clients_revertA

[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_listA

List all GTM transformations in a workspace. Automatically follows pagination.

transformations_getC

Get a specific GTM transformation.

transformations_createA

[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_updateA

[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_deleteA

[DELETE] Delete a GTM transformation. Requires GTM_MCP_ENABLE_DELETES=true and confirm=true.

transformations_revertA

[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_listA

List all GTM zones in a workspace. Automatically follows pagination.

zones_getC

Get a specific GTM zone.

zones_createA

[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_updateA

[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_deleteA

[DELETE] Delete a GTM zone. Requires GTM_MCP_ENABLE_DELETES=true and confirm=true.

zones_revertA

[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_listA

List all GTM templates in a workspace. Automatically follows pagination.

templates_getC

Get a specific GTM template.

templates_createA

[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_updateA

[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_deleteA

[DELETE] Delete a GTM template. Requires GTM_MCP_ENABLE_DELETES=true and confirm=true.

templates_revertA

[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_listA

List all GTM gtag configs in a workspace. Automatically follows pagination.

gtag_config_getC

Get a specific GTM gtag config.

gtag_config_createA

[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_updateA

[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_deleteA

[DELETE] Delete a GTM gtag config. Requires GTM_MCP_ENABLE_DELETES=true and confirm=true.

templates_import_from_galleryA

[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_webA

READ-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_tagA

[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_tagA

[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_tagA

[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_tagA

[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_tagA

[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_tagA

[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_tagA

[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_tagA

[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_tagA

[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_tagA

[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_tagA

[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_tagA

[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_tagA

[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_tagA

[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_tagA

[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_tagA

[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_tagA

[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_tagA

[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_containerB

Inspect 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_containerA

Export 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_listA

List 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_listA

List GA4 properties under a given parent account. Returns full property records (display name, time zone, currency, industry, service level). Read-only.

ga4_property_getB

Get a single GA4 property by ID, including display name, time zone, currency, industry category, and service level. Read-only.

ga4_data_streams_listA

List 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_getA

Get 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_listA

List custom dimensions configured on a GA4 property (parameter name, display name, scope: EVENT/USER/ITEM). Read-only.

ga4_custom_metrics_listA

List custom metrics configured on a GA4 property (parameter name, display name, measurement unit, scope, restricted-metric type). Read-only.

ga4_data_retention_getA

Get the data retention settings for a GA4 property (event data retention duration and whether retention resets on new activity). Read-only.

ga4_key_events_listA

List 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_listB

List Google Ads links for a GA4 property (linked customer ID, personalized-advertising and auto-tagging flags). Read-only.

ga4_create_key_eventA

[GA4 WRITE] Create a key event (conversion) on a GA4 property. Requires GA4_MCP_ENABLE_WRITES=true and confirm=true.

ga4_update_key_eventA

[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_eventA

[GA4 DELETE] Delete a key event (it reverts to a normal event). Requires GA4_MCP_ENABLE_DELETES=true and confirm=true.

ga4_create_custom_dimensionA

[GA4 WRITE] Create a custom dimension. Requires GA4_MCP_ENABLE_WRITES=true and confirm=true.

ga4_update_custom_dimensionA

[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_dimensionA

[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_metricB

[GA4 WRITE] Create a custom metric. Requires GA4_MCP_ENABLE_WRITES=true and confirm=true.

ga4_update_custom_metricA

[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_metricA

[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_streamA

[GA4 WRITE] Create a data stream (web / Android / iOS). Requires GA4_MCP_ENABLE_WRITES=true and confirm=true.

ga4_update_data_streamA

[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_streamA

[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_linkA

[GA4 WRITE] Create a Google Ads link. Requires GA4_MCP_ENABLE_WRITES=true and confirm=true.

ga4_update_google_ads_linkA

[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_linkA

[GA4 DELETE] Delete a Google Ads link. Requires GA4_MCP_ENABLE_DELETES=true and confirm=true.

ga4_create_firebase_linkA

[GA4 WRITE] Create a Firebase link (no update; delete + recreate to change). Requires GA4_MCP_ENABLE_WRITES=true and confirm=true.

ga4_delete_firebase_linkA

[GA4 DELETE] Delete a Firebase link. Requires GA4_MCP_ENABLE_DELETES=true and confirm=true.

ga4_create_measurement_protocol_secretA

[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_secretA

[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_secretA

[GA4 DELETE] Delete a Measurement Protocol secret (revokes it). Requires GA4_MCP_ENABLE_DELETES=true and confirm=true.

ga4_create_audienceA

[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_audienceA

[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_audienceA

[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_groupA

[GA4 WRITE] Create a custom channel group. Pass groupingRule[] via body. Requires GA4_MCP_ENABLE_WRITES=true and confirm=true.

ga4_update_channel_groupA

[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_groupB

[GA4 DELETE] Delete a custom channel group. Requires GA4_MCP_ENABLE_DELETES=true and confirm=true.

ga4_create_calculated_metricA

[GA4 WRITE] Create a calculated metric (calculatedMetricId is required). Requires GA4_MCP_ENABLE_WRITES=true and confirm=true.

ga4_update_calculated_metricA

[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_metricB

[GA4 DELETE] Delete a calculated metric. Requires GA4_MCP_ENABLE_DELETES=true and confirm=true.

ga4_create_expanded_data_setB

[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_setA

[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_setA

[GA4 DELETE] Delete an expanded data set (360). Requires GA4_MCP_ENABLE_DELETES=true and confirm=true.

ga4_create_display_video_360_advertiser_linkA

[GA4 WRITE] Create a Display & Video 360 advertiser link. Requires GA4_MCP_ENABLE_WRITES=true and confirm=true.

ga4_update_display_video_360_advertiser_linkA

[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_linkB

[GA4 DELETE] Delete a DV360 advertiser link. Requires GA4_MCP_ENABLE_DELETES=true and confirm=true.

ga4_create_search_ads_360_linkA

[GA4 WRITE] Create a Search Ads 360 link. Requires GA4_MCP_ENABLE_WRITES=true and confirm=true.

ga4_update_search_ads_360_linkA

[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_linkA

[GA4 DELETE] Delete a Search Ads 360 link. Requires GA4_MCP_ENABLE_DELETES=true and confirm=true.

ga4_create_adsense_linkB

[GA4 WRITE] Create an AdSense link (no update). Requires GA4_MCP_ENABLE_WRITES=true and confirm=true.

ga4_delete_adsense_linkA

[GA4 DELETE] Delete an AdSense link. Requires GA4_MCP_ENABLE_DELETES=true and confirm=true.

ga4_create_subproperty_event_filterA

[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_filterA

[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_filterA

[GA4 DELETE] Delete a subproperty event filter (360). Requires GA4_MCP_ENABLE_DELETES=true and confirm=true.

ga4_create_rollup_property_source_linkA

[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_linkA

[GA4 DELETE] Remove a source property from a rollup (360). Requires GA4_MCP_ENABLE_DELETES=true and confirm=true.

ga4_create_event_create_ruleA

[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_ruleA

[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_ruleA

[GA4 DELETE] Delete an event-create rule. Requires GA4_MCP_ENABLE_DELETES=true and confirm=true.

ga4_create_skadnetwork_conversion_value_schemaA

[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_schemaA

[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_schemaB

[GA4 DELETE] Delete the SKAdNetwork conversion value schema. Requires GA4_MCP_ENABLE_DELETES=true and confirm=true.

ga4_create_property_access_bindingA

[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_bindingA

[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_bindingA

[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_bindingA

[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_bindingA

[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_bindingA

[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_propertyA

[GA4 WRITE] Create a new GA4 property under an account. Requires GA4_MCP_ENABLE_WRITES=true and confirm=true.

ga4_update_propertyA

[GA4 WRITE] Update a GA4 property (displayName / timeZone / currencyCode / industryCategory). Requires GA4_MCP_ENABLE_WRITES=true and confirm=true.

ga4_delete_propertyA

[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_retentionA

[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_measurementA

[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_redactionA

[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_settingsA

[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_signalsA

[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_accountA

[GA4 WRITE] Update a GA4 account (displayName). Requires GA4_MCP_ENABLE_WRITES=true and confirm=true.

ga4_delete_accountA

[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_collectionA

[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_reportA

Run 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_compatibilityA

Check 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_reportA

Run 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_referenceA

The 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_fieldsA

Read 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_profileA

Group 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.

Prompts

Interactive templates invoked by user choice

NameDescription
setup_server_side_containerOne guided flow to create a server-side (sGTM) container: the SERVER container + GA4 client + built-ins + Event-Data/Constant/Request-Header variables + per-event triggers + GA4 (and optional Google Ads) server tags, in the correct order with the exact resource shapes. Optional args: accountId, containerName, measurementId, adsConversionId.
setup_ecommerce_funnelOne guided flow to install the full GA4 ecommerce funnel in a WEB container: per-event Custom Event triggers + GA4 event tags with native ecommerce forwarding (sendEcommerceData), the dlv - ecommerce.* variables, and a Consent Mode v2 defaults tag on Consent Initialization — then a verification checklist. Optional args: accountId, containerId, measurementId, events (comma-separated).
auditRun a read-only GTM container audit and summarise the findings by severity (error/warning/info) + category (missing_trigger, paused_tag, broken_reference, ga4_config, duplicate_name, broad_trigger, unused_trigger, missing_builtin_variable, empty_folder). Optional args: account, container (a GTM-XXXXXXX id or name).
reportRun a read-only GA4 report (sessions / users / conversions by channel, default last 28 days) and summarise it. Optional args: property (properties/NNNNNNN), dateRange, metrics (comma-separated).
create-tagGuide the end-to-end creation of a GA4 event tag (event name → trigger → variables → tag), DRAFT-ONLY and gated behind GTM_MCP_ENABLE_WRITES + confirm=true. Optional args: description (what to track), account, container.
debugA read-only diagnostic flow to find why a tag is not firing: audit → tag config (paused? trigger?) → trigger conditions → referenced variables → Consent Mode, then the single most likely cause + fix. Optional args: tag, symptom, account, container.
explainExplain a GTM/GA4 concept in plain terms, OR fetch a specific tag/trigger/variable/container (read-only) and explain what it does and when it fires. Optional args: topic, account, container.

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

B3.1/5.0

Scored across 203 tools

Disambiguation3/5

Most CRUD tools are cleanly separated by resource (tags_*, triggers_*, ga4_*), but the write surface has real overlap: tags_create competes with create_gtm_tracking_tag, create_server_tag, the dozen create_*_capi_server_tag tools, and templates_import_from_gallery, all of which produce tags. The descriptions explicitly try to steer the agent ("use this instead of tags_create"), which mitigates but doesn't remove the boundary problem, and 203 near-identical ga4_create_/update_/delete_ triples increase misfire risk at the margins.

Naming Consistency3/5

The dominant pattern is resource_verb (tags_create, folders_move_entities, ga4_update_property), but the server mixes in verb_noun forms (create_gtm_tracking_tag, create_meta_capi_server_tag, audit_container, export_container, plan_server_migration_from_web) and inconsistent resource grouping (workspace_sync / workspace_get_status alongside workspaces_list / workspaces_create). Readable throughout, but the convention shifts depending on which family a tool belongs to.

Tool Count2/5

203 tools is roughly four times the rubric's own ceiling, and the resulting context cost makes tool selection the dominant failure mode for an agent. Nearly every tool does map to a distinct GTM/GA4 API method rather than duplicating another, so it is an over-broad surface rather than a padded one — but the count is still inappropriate for practical use without progressive disclosure or sub-server splitting.

Completeness4/5

Coverage is genuinely deep: full CRUD for containers, workspaces, tags, triggers, variables, folders, versions, environments, permissions, clients, transformations, zones, templates and gtag configs, plus GA4 Admin CRUD, Data API reporting and per-platform server-side tag builders. The notable gap is read/list counterparts for several GA4 resources that have create/update/delete (audiences, channel groups, calculated metrics, event-create rules, access bindings) — an agent can mutate these but not enumerate them.

Maintenance

ActivityMaintained
ResponsivenessNo recent community issues