samarth-gtm-mcp

v1.19.0
io.github.samarthanalytics-sj/samarth-gtm-mcp Checked 3 hours ago Published 5 months ago

Google Tag Manager + read-only GA4 MCP server.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

accounts_list

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

ParameterTypeDescription
includeGoogleTagsbooleanAlso include results from the Google Tags accounts.

accounts_get

Get details of a specific GTM account.

ParameterTypeDescription
accountId *stringThe GTM account ID (numeric string).

containers_list

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

ParameterTypeDescription
accountId *stringThe GTM account ID.
maxPagesintegerMaximum number of API pages to fetch (default 50). If more pages remain, the result includes truncated:true and a nextPageToken.
pageTokenstringContinuation token to resume listing from a previous truncated result.

containers_get

Get details of a specific GTM container.

ParameterTypeDescription
accountId *stringThe GTM account ID.
containerId *stringThe GTM container ID.

containers_create

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

ParameterTypeDescription
accountId *stringThe GTM account ID.
confirm *booleanMust be true to confirm this write operation.
name *stringContainer name.
usageContext *arrayUsage context(s) for the container.
domainNamearrayAssociated domain names.
notesstringOptional notes.

containers_snippet

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

ParameterTypeDescription
accountId *stringThe GTM account ID.
containerId *stringThe GTM container ID.

containers_lookup

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

ParameterTypeDescription
destinationId *stringThe destination/tag ID to look up (e.g. "G-XXXXXXX").

containers_combine

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

ParameterTypeDescription
accountId *stringThe GTM account ID.
confirm *booleanMust be true to confirm this write operation.
containerId *stringThe target container ID (the surviving container).
containerIdToCombine *stringThe container ID to merge into the target.
allowUserPermissionFeatureUpdatebooleanAllow updating the user-permission feature during combine.
settingSourcestringWhich container's settings to keep.

containers_move_tag_id

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

ParameterTypeDescription
accountId *stringThe GTM account ID.
confirm *booleanMust be true to confirm this write operation.
containerId *stringThe source container ID.
tagId *stringThe Tag ID to move.
allowUserPermissionFeatureUpdateboolean
copySettingsbooleanWhether to copy container settings.
copyTermsOfServicebooleanWhether to copy terms of service.
copyUsersbooleanWhether to copy users.
tagNamestringName for the new tag created in the destination container.

destinations_list

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

ParameterTypeDescription
accountId *stringThe GTM account ID.
containerId *stringThe GTM container ID.

destinations_get

Get details of a specific GTM destination.

ParameterTypeDescription
accountId *stringThe GTM account ID.
containerId *stringThe GTM container ID.
destinationId *stringThe destination ID.

workspaces_list

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

ParameterTypeDescription
accountId *stringThe GTM account ID.
containerId *stringThe GTM container ID.
maxPagesintegerMaximum number of API pages to fetch (default 50). If more pages remain, the result includes truncated:true and a nextPageToken.
pageTokenstringContinuation token to resume listing from a previous truncated result.

workspaces_get

Get details of a specific GTM workspace.

ParameterTypeDescription
accountId *stringThe GTM account ID.
containerId *stringThe GTM container ID.
workspaceId *stringThe GTM workspace ID.

workspaces_create

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

ParameterTypeDescription
accountId *stringThe GTM account ID.
confirm *booleanMust be true to confirm this write operation.
containerId *stringThe GTM container ID.
name *stringWorkspace name.
descriptionstringWorkspace description.

workspace_get_status

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.

ParameterTypeDescription
accountId *stringThe GTM account ID.
containerId *stringThe GTM container ID.
workspaceId *stringThe GTM workspace ID.

workspace_sync

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

ParameterTypeDescription
accountId *stringThe GTM account ID.
confirm *booleanMust be true to confirm this operation.
containerId *stringThe GTM container ID.
workspaceId *stringThe GTM workspace ID.

workspace_resolve_conflict

Resolve a merge conflict for a workspace entity. You must supply the full entity body to write into the workspace (overwriting the conflict). NOTE: This is a complex operation — review the GTM UI conflict resolution first.

ParameterTypeDescription
accountId *stringThe GTM account ID.
confirm *booleanMust be true to confirm this write operation.
containerId *stringThe GTM container ID.
entityJson *stringJSON string of the full entity (tag/trigger/variable/folder) to use as the resolved version.
fingerprint *stringThe workspace fingerprint at the time of conflict resolution.
workspaceId *stringThe GTM workspace ID.

tags_list

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

ParameterTypeDescription
accountId *stringThe GTM account ID.
containerId *stringThe GTM container ID.
workspaceId *stringThe GTM workspace ID.
maxPagesintegerMaximum number of API pages to fetch (default 50). If more pages remain, the result includes truncated:true and a nextPageToken.
pageTokenstringContinuation token to resume listing from a previous truncated result.

tags_get

Get details of a specific GTM tag.

ParameterTypeDescription
accountId *stringThe GTM account ID.
containerId *stringThe GTM container ID.
tagId *stringThe GTM tag ID.
workspaceId *stringThe GTM workspace ID.

tags_create

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

ParameterTypeDescription
accountId *stringThe GTM account ID.
confirm *booleanMust be true to confirm this write operation.
containerId *stringThe GTM container ID.
name *stringTag name.
type *stringTag type (e.g. "ua", "ga4", "html", "img").
workspaceId *stringThe GTM workspace ID.
blockingTriggerIdarrayIDs of blocking triggers.
firingTriggerIdarrayIDs of firing triggers.
notesstringOptional notes.
parameterarrayGTM parameter list. For list/map parameters, use the GTM UI or pass via raw JSON update.
parentFolderIdstringParent folder ID.
pausedbooleanWhether the tag is paused.

tags_update

[WRITE] Update an existing GTM tag. Requires GTM_MCP_ENABLE_WRITES=true and confirm=true. Only the fields provided will be updated (partial update via the API fingerprint).

ParameterTypeDescription
accountId *stringThe GTM account ID.
confirm *booleanMust be true to confirm this write operation.
containerId *stringThe GTM container ID.
tagId *stringThe GTM tag ID to update.
workspaceId *stringThe GTM workspace ID.
blockingTriggerIdarrayIDs of blocking triggers.
fingerprintstringCurrent tag fingerprint (for optimistic locking).
firingTriggerIdarrayIDs of firing triggers.
namestringNew tag name.
notesstringOptional notes.
parameterarrayGTM parameter list. For list/map parameters, use the GTM UI or pass via raw JSON update.
pausedbooleanWhether the tag is paused.
typestringNew tag type.

tags_delete

[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).

ParameterTypeDescription
accountId *stringThe GTM account ID.
confirm *booleanMust be true to confirm this delete operation.
containerId *stringThe GTM container ID.
tagId *stringThe GTM tag ID to delete.
workspaceId *stringThe GTM workspace ID.

triggers_list

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

ParameterTypeDescription
accountId *string
containerId *string
workspaceId *string
maxPagesintegerMaximum number of API pages to fetch (default 50). If more pages remain, the result includes truncated:true and a nextPageToken.
pageTokenstringContinuation token to resume listing from a previous truncated result.

triggers_get

Get a specific GTM trigger.

ParameterTypeDescription
accountId *string
containerId *string
triggerId *string
workspaceId *string

triggers_create

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

ParameterTypeDescription
accountId *string
confirm *boolean
containerId *string
name *stringTrigger name.
type *stringTrigger type (e.g. "click", "pageview", "customEvent", "domReady", "windowLoaded", "historyChange", "jsError", "scrollDepth", "elementVisibility", "timer", "youTubeVideo", "formSubmission", "linkClick…
workspaceId *string
customEventFilterUsed for custom event triggers.
eventNameobjectCustom event name (for customEvent type).
filterarrayConditions that must be met for the trigger to fire.
notesstring
parentFolderIdstring

triggers_update

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

ParameterTypeDescription
accountId *string
confirm *boolean
containerId *string
triggerId *string
workspaceId *string
customEventFilter
eventNameobject
filterarray
fingerprintstring
namestring
notesstring
typestring

triggers_delete

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

ParameterTypeDescription
accountId *string
confirm *boolean
containerId *string
triggerId *string
workspaceId *string

variables_list

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

ParameterTypeDescription
accountId *string
containerId *string
workspaceId *string
maxPagesintegerMaximum number of API pages to fetch (default 50). If more pages remain, the result includes truncated:true and a nextPageToken.
pageTokenstringContinuation token to resume listing from a previous truncated result.

variables_get

Get a specific GTM variable.

ParameterTypeDescription
accountId *string
containerId *string
variableId *string
workspaceId *string

variables_create

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

ParameterTypeDescription
accountId *string
confirm *boolean
containerId *string
name *stringVariable name.
type *stringVariable type (e.g. "v" for data layer, "k" for first-party cookie, "u" for URL, "c" for constant, "jsm" for custom JS, "smm" for lookup table, "gas" for GA settings).
workspaceId *string
disablingTriggerIdarray
enablingTriggerIdarray
notesstring
parameterarray
parentFolderIdstring

variables_update

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

ParameterTypeDescription
accountId *string
confirm *boolean
containerId *string
variableId *string
workspaceId *string
fingerprintstring
namestring
notesstring
parameterarray
typestring

variables_delete

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

ParameterTypeDescription
accountId *string
confirm *boolean
containerId *string
variableId *string
workspaceId *string

folders_list

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

ParameterTypeDescription
accountId *string
containerId *string
workspaceId *string
maxPagesintegerMaximum number of API pages to fetch (default 50). If more pages remain, the result includes truncated:true and a nextPageToken.
pageTokenstringContinuation token to resume listing from a previous truncated result.

folders_get

Get a specific GTM folder.

ParameterTypeDescription
accountId *string
containerId *string
folderId *string
workspaceId *string

folders_entities

List all entities (tags, triggers, variables) within a specific GTM folder.

ParameterTypeDescription
accountId *string
containerId *string
folderId *string
workspaceId *string

folders_create

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

ParameterTypeDescription
accountId *string
confirm *boolean
containerId *string
name *string
workspaceId *string
notesstring

folders_update

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

ParameterTypeDescription
accountId *string
confirm *boolean
containerId *string
folderId *string
workspaceId *string
fingerprintstring
namestring
notesstring

folders_delete

[DELETE] Delete a GTM folder. Requires GTM_MCP_ENABLE_DELETES=true and confirm=true. Contents of the folder will be unfoldered, not deleted.

ParameterTypeDescription
accountId *string
confirm *boolean
containerId *string
folderId *string
workspaceId *string

folders_move_entities

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

ParameterTypeDescription
accountId *string
confirm *boolean
containerId *string
folderId *stringThe destination folder ID.
workspaceId *string
tagIdarrayTag IDs to move.
triggerIdarrayTrigger IDs to move.
variableIdarrayVariable IDs to move.

built_in_variables_list

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

ParameterTypeDescription
accountId *string
containerId *string
workspaceId *string

built_in_variables_enable

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

ParameterTypeDescription
accountId *string
confirm *boolean
containerId *string
types *arrayArray of built-in variable types to enable. Known types include: pageUrl, pageHostname, pagePath, referrer, event, clickElement, clickClasses, clickId, clickTarget, clickUrl, and more.
workspaceId *string

built_in_variables_disable

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

ParameterTypeDescription
accountId *string
confirm *boolean
containerId *string
types *arrayArray of built-in variable types to disable.
workspaceId *string

built_in_variables_revert

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

ParameterTypeDescription
accountId *string
confirm *boolean
containerId *string
type *stringThe built-in variable type to revert.
workspaceId *string

versions_list

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

ParameterTypeDescription
accountId *string
containerId *string
includeDeletedbooleanInclude deleted versions in results.

versions_get

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

ParameterTypeDescription
accountId *string
containerId *string
containerVersionId *stringThe container version ID, or "live" for the current live version.

versions_create

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

ParameterTypeDescription
accountId *string
confirm *boolean
containerId *string
workspaceId *string
namestringVersion name/label.
notesstringVersion notes / change description.

versions_set_latest

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

ParameterTypeDescription
accountId *string
confirm *boolean
containerId *string
containerVersionId *stringThe version ID to set as latest.

versions_undelete

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

ParameterTypeDescription
accountId *string
confirm *boolean
containerId *string
containerVersionId *string

versions_delete

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

ParameterTypeDescription
accountId *string
confirm *boolean
containerId *string
containerVersionId *string

workspace_quick_preview

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.

ParameterTypeDescription
accountId *string
containerId *string
workspaceId *string

versions_publish

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

ParameterTypeDescription
accountId *string
confirm *booleanMust be true to confirm this publish operation.
containerId *string
containerVersionId *stringThe version ID to publish.

workspace_create_version_and_publish

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

ParameterTypeDescription
accountId *string
confirm *booleanMust be true to confirm this publish operation.
containerId *string
workspaceId *string
namestringVersion name.
notesstringVersion notes.

environments_list

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

ParameterTypeDescription
accountId *stringThe GTM account ID.
containerId *stringThe GTM container ID.
maxPagesintegerMaximum number of API pages to fetch (default 50). If more pages remain, the result includes truncated:true and a nextPageToken.
pageTokenstringContinuation token to resume listing from a previous truncated result.

environments_get

Get details of a specific GTM environment.

ParameterTypeDescription
accountId *stringThe GTM account ID.
containerId *stringThe GTM container ID.
environmentId *stringThe GTM environment ID.

environments_create

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

ParameterTypeDescription
accountId *stringThe GTM account ID.
confirm *booleanMust be true to confirm this write operation.
containerId *stringThe GTM container ID.
name *stringEnvironment name.
descriptionstringEnvironment description.
enableDebugbooleanWhether to enable debug by default.
urlstringDefault preview page URL for the environment.

environments_update

[WRITE] Update an existing GTM environment. Requires GTM_MCP_ENABLE_WRITES=true and confirm=true.

ParameterTypeDescription
accountId *stringThe GTM account ID.
confirm *booleanMust be true to confirm this write operation.
containerId *stringThe GTM container ID.
environmentId *stringThe GTM environment ID to update.
descriptionstringNew description.
enableDebugbooleanWhether to enable debug by default.
fingerprintstringCurrent fingerprint (for optimistic locking).
namestringNew environment name.
urlstringNew default preview page URL.

environments_reauthorize

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

ParameterTypeDescription
accountId *stringThe GTM account ID.
confirm *booleanMust be true to confirm this high-impact operation.
containerId *stringThe GTM container ID.
environmentId *stringThe GTM environment ID to reauthorize.

environments_delete

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

ParameterTypeDescription
accountId *stringThe GTM account ID.
confirm *booleanMust be true to confirm this delete operation.
containerId *stringThe GTM container ID.
environmentId *stringThe GTM environment ID to delete.

user_permissions_list

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.

ParameterTypeDescription
accountId *stringThe GTM account ID.
maxPagesintegerMaximum number of API pages to fetch (default 50). If more pages remain, the result includes truncated:true and a nextPageToken.
pageTokenstringContinuation token to resume listing from a previous truncated result.

user_permissions_get

Get a specific user permission record for a GTM account.

ParameterTypeDescription
accountId *stringThe GTM account ID.
userPermissionId *stringThe user permission ID.

user_permissions_create

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

ParameterTypeDescription
accountId *stringThe GTM account ID.
confirm *booleanMust be true to confirm this write operation.
emailAddress *stringEmail address of the user to grant access to.
accountPermissionstringAccount-level permission.
containerAccessarrayPer-container access entries.

user_permissions_update

[WRITE] Update a user's account and/or container access levels. Requires GTM_MCP_ENABLE_WRITES=true and confirm=true. Provide the full intended access (account + container) as the API replaces the record.

ParameterTypeDescription
accountId *stringThe GTM account ID.
confirm *booleanMust be true to confirm this write operation.
userPermissionId *stringThe user permission ID to update.
accountPermissionstringAccount-level permission.
containerAccessarrayPer-container access entries.

user_permissions_delete

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

ParameterTypeDescription
accountId *stringThe GTM account ID.
confirm *booleanMust be true to confirm this delete operation.
userPermissionId *stringThe user permission ID to delete.

clients_list

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

ParameterTypeDescription
accountId *stringThe GTM account ID.
containerId *stringThe GTM container ID.
workspaceId *stringThe GTM workspace ID.
maxPagesintegerMaximum number of API pages to fetch (default 50). If more pages remain, the result includes truncated:true and a nextPageToken.
pageTokenstringContinuation token to resume listing from a previous truncated result.

clients_get

Get a specific GTM client.

ParameterTypeDescription
accountId *stringThe GTM account ID.
clientId *stringThe clients ID.
containerId *stringThe GTM container ID.
workspaceId *stringThe GTM workspace ID.

clients_create

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

ParameterTypeDescription
accountId *stringThe GTM account ID.
bodyJson *stringFull clients resource as a JSON string (e.g. {"name":"...","type":"..."}).
confirm *booleanMust be true to confirm this write operation.
containerId *stringThe GTM container ID.
workspaceId *stringThe GTM workspace ID.

clients_update

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

ParameterTypeDescription
accountId *stringThe GTM account ID.
bodyJson *stringFull clients resource as a JSON string.
clientId *stringThe clients ID to update.
confirm *booleanMust be true to confirm this write operation.
containerId *stringThe GTM container ID.
workspaceId *stringThe GTM workspace ID.
fingerprintstringCurrent fingerprint (for optimistic locking).

clients_delete

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

ParameterTypeDescription
accountId *stringThe GTM account ID.
clientId *stringThe clients ID to delete.
confirm *booleanMust be true to confirm this delete operation.
containerId *stringThe GTM container ID.
workspaceId *stringThe GTM workspace ID.

clients_revert

[WRITE] Revert workspace changes to a GTM client back to its last container-version state. Requires GTM_MCP_ENABLE_WRITES=true and confirm=true.

ParameterTypeDescription
accountId *stringThe GTM account ID.
clientId *stringThe clients ID to revert.
confirm *booleanMust be true to confirm this write operation.
containerId *stringThe GTM container ID.
workspaceId *stringThe GTM workspace ID.
fingerprintstringCurrent fingerprint (for optimistic locking).

transformations_list

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

ParameterTypeDescription
accountId *stringThe GTM account ID.
containerId *stringThe GTM container ID.
workspaceId *stringThe GTM workspace ID.
maxPagesintegerMaximum number of API pages to fetch (default 50). If more pages remain, the result includes truncated:true and a nextPageToken.
pageTokenstringContinuation token to resume listing from a previous truncated result.

transformations_get

Get a specific GTM transformation.

ParameterTypeDescription
accountId *stringThe GTM account ID.
containerId *stringThe GTM container ID.
transformationId *stringThe transformations ID.
workspaceId *stringThe GTM workspace ID.

transformations_create

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

ParameterTypeDescription
accountId *stringThe GTM account ID.
bodyJson *stringFull transformations resource as a JSON string (e.g. {"name":"...","type":"..."}).
confirm *booleanMust be true to confirm this write operation.
containerId *stringThe GTM container ID.
workspaceId *stringThe GTM workspace ID.

transformations_update

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

ParameterTypeDescription
accountId *stringThe GTM account ID.
bodyJson *stringFull transformations resource as a JSON string.
confirm *booleanMust be true to confirm this write operation.
containerId *stringThe GTM container ID.
transformationId *stringThe transformations ID to update.
workspaceId *stringThe GTM workspace ID.
fingerprintstringCurrent fingerprint (for optimistic locking).

transformations_delete

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

ParameterTypeDescription
accountId *stringThe GTM account ID.
confirm *booleanMust be true to confirm this delete operation.
containerId *stringThe GTM container ID.
transformationId *stringThe transformations ID to delete.
workspaceId *stringThe GTM workspace ID.

transformations_revert

[WRITE] Revert workspace changes to a GTM transformation back to its last container-version state. Requires GTM_MCP_ENABLE_WRITES=true and confirm=true.

ParameterTypeDescription
accountId *stringThe GTM account ID.
confirm *booleanMust be true to confirm this write operation.
containerId *stringThe GTM container ID.
transformationId *stringThe transformations ID to revert.
workspaceId *stringThe GTM workspace ID.
fingerprintstringCurrent fingerprint (for optimistic locking).

zones_list

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

ParameterTypeDescription
accountId *stringThe GTM account ID.
containerId *stringThe GTM container ID.
workspaceId *stringThe GTM workspace ID.
maxPagesintegerMaximum number of API pages to fetch (default 50). If more pages remain, the result includes truncated:true and a nextPageToken.
pageTokenstringContinuation token to resume listing from a previous truncated result.

zones_get

Get a specific GTM zone.

ParameterTypeDescription
accountId *stringThe GTM account ID.
containerId *stringThe GTM container ID.
workspaceId *stringThe GTM workspace ID.
zoneId *stringThe zones ID.

zones_create

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

ParameterTypeDescription
accountId *stringThe GTM account ID.
bodyJson *stringFull zones resource as a JSON string (e.g. {"name":"...","type":"..."}).
confirm *booleanMust be true to confirm this write operation.
containerId *stringThe GTM container ID.
workspaceId *stringThe GTM workspace ID.

zones_update

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

ParameterTypeDescription
accountId *stringThe GTM account ID.
bodyJson *stringFull zones resource as a JSON string.
confirm *booleanMust be true to confirm this write operation.
containerId *stringThe GTM container ID.
workspaceId *stringThe GTM workspace ID.
zoneId *stringThe zones ID to update.
fingerprintstringCurrent fingerprint (for optimistic locking).

zones_delete

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

ParameterTypeDescription
accountId *stringThe GTM account ID.
confirm *booleanMust be true to confirm this delete operation.
containerId *stringThe GTM container ID.
workspaceId *stringThe GTM workspace ID.
zoneId *stringThe zones ID to delete.

zones_revert

[WRITE] Revert workspace changes to a GTM zone back to its last container-version state. Requires GTM_MCP_ENABLE_WRITES=true and confirm=true.

ParameterTypeDescription
accountId *stringThe GTM account ID.
confirm *booleanMust be true to confirm this write operation.
containerId *stringThe GTM container ID.
workspaceId *stringThe GTM workspace ID.
zoneId *stringThe zones ID to revert.
fingerprintstringCurrent fingerprint (for optimistic locking).

templates_list

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

ParameterTypeDescription
accountId *stringThe GTM account ID.
containerId *stringThe GTM container ID.
workspaceId *stringThe GTM workspace ID.
maxPagesintegerMaximum number of API pages to fetch (default 50). If more pages remain, the result includes truncated:true and a nextPageToken.
pageTokenstringContinuation token to resume listing from a previous truncated result.

templates_get

Get a specific GTM template.

ParameterTypeDescription
accountId *stringThe GTM account ID.
containerId *stringThe GTM container ID.
templateId *stringThe templates ID.
workspaceId *stringThe GTM workspace ID.

templates_create

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

ParameterTypeDescription
accountId *stringThe GTM account ID.
bodyJson *stringFull templates resource as a JSON string (e.g. {"name":"...","type":"..."}).
confirm *booleanMust be true to confirm this write operation.
containerId *stringThe GTM container ID.
workspaceId *stringThe GTM workspace ID.

templates_update

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

ParameterTypeDescription
accountId *stringThe GTM account ID.
bodyJson *stringFull templates resource as a JSON string.
confirm *booleanMust be true to confirm this write operation.
containerId *stringThe GTM container ID.
templateId *stringThe templates ID to update.
workspaceId *stringThe GTM workspace ID.
fingerprintstringCurrent fingerprint (for optimistic locking).

templates_delete

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

ParameterTypeDescription
accountId *stringThe GTM account ID.
confirm *booleanMust be true to confirm this delete operation.
containerId *stringThe GTM container ID.
templateId *stringThe templates ID to delete.
workspaceId *stringThe GTM workspace ID.

templates_revert

[WRITE] Revert workspace changes to a GTM template back to its last container-version state. Requires GTM_MCP_ENABLE_WRITES=true and confirm=true.

ParameterTypeDescription
accountId *stringThe GTM account ID.
confirm *booleanMust be true to confirm this write operation.
containerId *stringThe GTM container ID.
templateId *stringThe templates ID to revert.
workspaceId *stringThe GTM workspace ID.
fingerprintstringCurrent fingerprint (for optimistic locking).

gtag_config_list

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

ParameterTypeDescription
accountId *stringThe GTM account ID.
containerId *stringThe GTM container ID.
workspaceId *stringThe GTM workspace ID.
maxPagesintegerMaximum number of API pages to fetch (default 50). If more pages remain, the result includes truncated:true and a nextPageToken.
pageTokenstringContinuation token to resume listing from a previous truncated result.

gtag_config_get

Get a specific GTM gtag config.

ParameterTypeDescription
accountId *stringThe GTM account ID.
containerId *stringThe GTM container ID.
gtagConfigId *stringThe gtag configs ID.
workspaceId *stringThe GTM workspace ID.

gtag_config_create

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

ParameterTypeDescription
accountId *stringThe GTM account ID.
bodyJson *stringFull gtag configs resource as a JSON string (e.g. {"name":"...","type":"..."}).
confirm *booleanMust be true to confirm this write operation.
containerId *stringThe GTM container ID.
workspaceId *stringThe GTM workspace ID.

gtag_config_update

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

ParameterTypeDescription
accountId *stringThe GTM account ID.
bodyJson *stringFull gtag configs resource as a JSON string.
confirm *booleanMust be true to confirm this write operation.
containerId *stringThe GTM container ID.
gtagConfigId *stringThe gtag configs ID to update.
workspaceId *stringThe GTM workspace ID.
fingerprintstringCurrent fingerprint (for optimistic locking).

gtag_config_delete

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

ParameterTypeDescription
accountId *stringThe GTM account ID.
confirm *booleanMust be true to confirm this delete operation.
containerId *stringThe GTM container ID.
gtagConfigId *stringThe gtag configs ID to delete.
workspaceId *stringThe GTM workspace ID.

audit_container

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.

ParameterTypeDescription
accountId *string
containerId *string
workspaceId *string
includeInfobooleanInclude informational findings (verbose). Default: false.

export_container

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.

ParameterTypeDescription
accountId *string
containerId *string
workspaceId *string
formatstring"full" = all fields, "summary" = key fields only, "names_only" = just names and IDs

ga4_account_summaries_list

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.

ParameterTypeDescription
maxPagesintegerMaximum number of API pages to fetch (default 50). If more pages remain, the result includes truncated:true and a nextPageToken.
pageTokenstringContinuation token to resume listing from a previous truncated result.

ga4_properties_list

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

ParameterTypeDescription
accountId *stringParent GA4 account ID, e.g. "123456" or "accounts/123456".
maxPagesintegerMaximum number of API pages to fetch (default 50). If more pages remain, the result includes truncated:true and a nextPageToken.
pageTokenstringContinuation token to resume listing from a previous truncated result.
showDeletedbooleanInclude soft-deleted (trashed) properties in the results.

ga4_property_get

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

ParameterTypeDescription
property *stringGA4 property ID, e.g. "123456789" or "properties/123456789".

ga4_data_streams_list

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.

ParameterTypeDescription
property *stringGA4 property ID, e.g. "123456789" or "properties/123456789".
maxPagesintegerMaximum number of API pages to fetch (default 50). If more pages remain, the result includes truncated:true and a nextPageToken.
pageTokenstringContinuation token to resume listing from a previous truncated result.

ga4_enhanced_measurement_get

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.

ParameterTypeDescription
dataStreamId *stringThe data stream ID (numeric) or full "dataStreams/{id}" suffix.
property *stringGA4 property ID, e.g. "123456789" or "properties/123456789".

ga4_custom_dimensions_list

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

ParameterTypeDescription
property *stringGA4 property ID, e.g. "123456789" or "properties/123456789".
maxPagesintegerMaximum number of API pages to fetch (default 50). If more pages remain, the result includes truncated:true and a nextPageToken.
pageTokenstringContinuation token to resume listing from a previous truncated result.

ga4_custom_metrics_list

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

ParameterTypeDescription
property *stringGA4 property ID, e.g. "123456789" or "properties/123456789".
maxPagesintegerMaximum number of API pages to fetch (default 50). If more pages remain, the result includes truncated:true and a nextPageToken.
pageTokenstringContinuation token to resume listing from a previous truncated result.

ga4_data_retention_get

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

ParameterTypeDescription
property *stringGA4 property ID, e.g. "123456789" or "properties/123456789".

ga4_key_events_list

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.

ParameterTypeDescription
property *stringGA4 property ID, e.g. "123456789" or "properties/123456789".
maxPagesintegerMaximum number of API pages to fetch (default 50). If more pages remain, the result includes truncated:true and a nextPageToken.
pageTokenstringContinuation token to resume listing from a previous truncated result.

ga4_run_report

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.

ParameterTypeDescription
metrics *arrayMetric names, e.g. ["eventCount","totalUsers"]. At least 1, max 10.
property *stringGA4 property ID, e.g. "123456789" or "properties/123456789".
dimensionsarrayDimension names, e.g. ["eventName","date"]. Max 9. Omit for a metric-only report.
endDatestringEnd date: YYYY-MM-DD, "NdaysAgo", "today", or "yesterday".
limitintegerMax rows to return (default 250).
offsetintegerRow offset for paging (default 0).
orderByMetricstringMetric name to order by (descending). Optional.
startDatestringStart date: YYYY-MM-DD, "NdaysAgo", "today", or "yesterday".

ga4_run_realtime_report

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.

ParameterTypeDescription
metrics *arrayMetric names, e.g. ["eventCount","totalUsers"]. At least 1, max 10.
property *stringGA4 property ID, e.g. "123456789" or "properties/123456789".
dimensionsarrayDimension names, e.g. ["eventName","date"]. Max 9. Omit for a metric-only report.
limitintegerMax rows to return (default 100).