create_variable

MCP tool from Gtm MCP Server by paolobietolini

Create a variable

How to use it

Project documentation lists create_variable for the Gtm MCP Server MCP server. Add the server to your MCP client (Claude Desktop, Cursor, Windsurf and others), then check which tools your installed version makes available. Tool availability can depend on configuration and credentials. A server handshake does not verify this tool’s behavior. See the full listing for setup details.

Install Gtm MCP Server

$claude mcp add --transport http gtm https://mcp.gtmeditor.com
FULL GTM MCP SERVER LISTING

Other tools in Gtm MCP Server (39)

auth_status

Check whether the current request is authenticated

bulk_update_workspace

Apply multiple entity changes; requires confirm: true

combine_containers

Merge a source container into a target; requires confirm: true

create_container

Create a web, app, AMP, or server container

create_folder

Create a folder

create_tag

Create a tag

create_trigger

Create a trigger

create_workspace

Create a workspace

delete_container

Permanently delete a container; requires confirm: true

delete_tag

Delete a tag; requires confirm: true

delete_trigger

Delete a trigger; requires confirm: true

delete_variable

Delete a variable; requires confirm: true

delete_workspace

Delete a workspace; requires confirm: true

get_container_snippet

Get a web install snippet or server-container configuration

get_folder

Get complete folder metadata

get_tag

Get complete tag details

get_trigger

Get complete trigger details

get_variable

Get complete variable details

get_workspace

Get workspace metadata and its current fingerprint

get_workspace_status

Show pending changes and merge conflicts

list_accounts

List accessible GTM accounts

list_containers

List containers and their public IDs and settings

list_folders

List workspace folders

list_tags

List workspace tags

list_triggers

List workspace triggers

list_variables

List workspace variables

list_workspaces

List workspaces in a container

lookup_container

Find a container by destination ID or GTM public tag ID

move_tag_id

Move a tag ID into a new container; requires confirmation and terms acceptance

ping

Test MCP connectivity

quick_preview_workspace

Compile an ephemeral preview without saving or publishing

resolve_workspace_conflict

Replace a conflict with a resolved entity; requires confirm: true

sync_workspace

Synchronize with the latest container version; requires confirm: true

update_account

Rename an account

update_container

Rename a container while preserving its other settings

update_tag

Update a tag with fingerprint-based concurrency control

update_trigger

Update a trigger with fingerprint-based concurrency control

update_variable

Update a variable with fingerprint-based concurrency control

update_workspace

Update selected workspace fields