Samarth GTM MCP Server
OfficialServer Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| DRY_RUN | No | Simulate all writes without calling the API. | false |
| GOOGLE_CLIENT_ID | No | Legacy OAuth client ID. | |
| GTM_MCP_HTTP_PORT | No | HTTP server port (http transport only; falls back to PORT). | 3001 |
| GTM_MCP_RETRY_MAX | No | Retry attempts for transient read failures (408/429/5xx, network). 0 disables retries. Mutations are never auto-retried. | 3 |
| GTM_MCP_TRANSPORT | No | Transport: stdio or http. | stdio |
| GTM_MCP_TOKEN_FILE | No | Path to the local OAuth token file written by npm run auth:google (gitignored). | ./.gtm-mcp-tokens.json |
| GOOGLE_ACCESS_TOKEN | No | Current OAuth access token. Env vars take precedence over the token file. | |
| GOOGLE_REDIRECT_URI | No | Legacy OAuth redirect URI. | |
| GOOGLE_CLIENT_SECRET | No | Legacy OAuth client secret. | |
| GOOGLE_REFRESH_TOKEN | No | OAuth refresh token (long-lived). Env vars take precedence over the token file. | |
| GTM_MCP_ENABLE_WRITES | No | Allow create/update operations. | false |
| GOOGLE_OAUTH_CLIENT_ID | No | OAuth client ID (preferred). Falls back to GOOGLE_CLIENT_ID. | |
| GTM_DEFAULT_ACCOUNT_ID | No | Optional default accountId. | |
| GTM_MCP_ENABLE_DELETES | No | Allow delete operations. | false |
| GTM_MCP_ENABLE_PUBLISH | No | Allow publish operations. | false |
| GTM_MCP_HTTP_AUTH_TOKEN | No | Bearer token gating /mcp (http transport). Required before exposing the server beyond localhost; unset = open + startup warning. | |
| GTM_DEFAULT_CONTAINER_ID | No | Optional default containerId. | |
| GTM_DEFAULT_WORKSPACE_ID | No | Optional default workspaceId. | |
| GOOGLE_OAUTH_REDIRECT_URI | No | OAuth redirect URI. Falls back to GOOGLE_REDIRECT_URI. | http://localhost:3001/oauth/callback |
| GOOGLE_OAUTH_CLIENT_SECRET | No | OAuth client secret (preferred). Falls back to GOOGLE_CLIENT_SECRET. | |
| GTM_MCP_RETRY_MAX_DELAY_MS | No | Cap on a single backoff sleep (exponential backoff with jitter). | 30000 |
| GTM_MCP_RETRY_TOTAL_TIMEOUT_MS | No | Cap on total wall time from first request to last retry. | 60000 |
| SAMARTH_GOOGLE_OAUTH_CLIENT_ID | No | Hosted-only. Samarth-owned public OAuth client. Takes precedence over self-hosted vars when set. | |
| GOOGLE_SERVICE_ACCOUNT_KEY_FILE | No | Path to service account JSON key (see limitations above). | |
| SAMARTH_GOOGLE_OAUTH_CLIENT_SECRET | No | Hosted-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
| Capability | Details |
|---|---|
| tools | {
"listChanged": true
} |
| prompts | {
"listChanged": true
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| 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. |
| 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; |
| 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; |
| 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 |
| 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 ( |
| 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. |
| 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. |
| 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 |
| 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 |
| 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. |
| 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. |
| 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 |
| 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 |
| 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 |
| 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 |
| 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 |
| 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 |
| 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 |
| 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 |
| 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 |
| 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 |
| 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 |
| 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 |
| 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 |
| 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 |
| 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 |
| 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. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
| setup_server_side_container | One 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_funnel | One 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). |
| audit | Run 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). |
| report | Run 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-tag | Guide 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. |
| debug | A 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. |
| explain | Explain 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
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 203 tools
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.
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.
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.
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.