Skip to main content
Glama
AlexStansfield

gtm-mcp-server

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault

No arguments

Instructions

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

This server publishes no instructions, or was last inspected before Glama recorded them.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": true
}

Tools

Functions exposed to the LLM to take actions

NameDescription
gtm_list_accountsA

List all Google Tag Manager accounts accessible by the service account, with their IDs, names, and paths.

gtm_list_containersA

List all containers in a GTM account, with their IDs, names, public IDs, and domains.

gtm_get_containerA

Get details of a specific container, including name, public ID, domains, and usage context.

gtm_list_workspacesA

List all workspaces in a container, with their IDs, names, and descriptions.

gtm_create_workspaceA

Create a new workspace in a container.

gtm_get_workspace_statusA

Show all pending changes in a workspace (entities added, updated, or deleted since the last container version) and any merge conflicts.

gtm_sync_workspaceA

Sync a workspace to the latest container version, pulling in changes published since the workspace was created. Reports any merge conflicts.

gtm_list_tagsA

List all tags in a workspace, with their IDs, names, types, and trigger associations.

gtm_get_tagA

Get full details of a specific tag, including all its parameters, triggers, and configuration.

gtm_create_tagB

Create a new tag in a workspace.

Example parameters for GA4 event parameters (eventSettingsTable): {"key": "eventSettingsTable", "type": "list", "list": [{"type": "map", "map": [{"key": "parameter", "type": "template", "value": "method"}, {"key": "parameterValue", "type": "template", "value": "{{dlv - method}}"}]}]}

gtm_update_tagA

Update an existing tag in a workspace. Only the provided fields are changed; provided array fields (parameters, trigger IDs) replace the existing arrays wholesale.

gtm_delete_tagB

Delete a tag from a workspace.

gtm_list_triggersA

List all triggers in a workspace, with their IDs, names, types, and filter conditions.

gtm_get_triggerA

Get full details of a specific trigger, including its type, filters, and conditions.

gtm_create_triggerB

Create a new trigger in a workspace.

Common trigger types:

  • PAGEVIEW: Fires on page view

  • CLICK: Fires on click events

  • LINK_CLICK: Fires on link clicks

  • FORM_SUBMISSION: Fires on form submit

  • CUSTOM_EVENT: Fires on custom dataLayer events

  • DOM_READY: Fires when DOM is ready

  • WINDOW_LOADED: Fires when window loads

  • ELEMENT_VISIBILITY: Fires when element becomes visible

gtm_update_triggerA

Update an existing trigger in a workspace. Only the provided fields are changed; provided filter arrays replace the existing ones wholesale.

gtm_delete_triggerA

Delete a trigger from a workspace.

gtm_list_variablesA

List all variables in a workspace, with their IDs, names, and types.

gtm_get_variableA

Get full details of a specific variable, including its type and parameters.

gtm_create_variableB

Create a new variable in a workspace.

Common variable types:

  • c: Constant

  • v: Data Layer Variable

  • k: First Party Cookie

  • jsm: Custom JavaScript

  • j: JavaScript Variable

  • u: URL

  • r: HTTP Referrer

  • aev: Auto-Event Variable

gtm_update_variableA

Update an existing variable in a workspace. Only the provided fields are changed; a provided parameters array replaces the existing parameters wholesale.

gtm_delete_variableA

Delete a variable from a workspace.

gtm_list_versionsA

List all container versions, with their IDs, names, and entity counts.

gtm_get_live_versionA

Get the container version that is currently live (published) for a container.

gtm_create_versionA

Create a new container version from a workspace's changes. The workspace must contain changes and be free of merge conflicts.

gtm_publish_versionA

Publish a container version, making it the LIVE version served to all visitors. This replaces the currently live container configuration.

gtm_list_built_in_variablesA

List the built-in variables currently enabled in a workspace (e.g. Page URL, Click Classes). Tags and triggers can only reference built-in variables that are enabled.

gtm_enable_built_in_variablesA

Enable one or more built-in variables in a workspace so tags and triggers can reference them (e.g. {{Page URL}}, {{Click Classes}}).

gtm_disable_built_in_variablesA

Disable one or more built-in variables in a workspace. Tags or triggers still referencing them will break.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources