built_in_variables_enable
Enables one or more Google Tag Manager built-in variables in a workspace so tags and triggers can reference page, click, and event data; requires write access and confirmation.
Instructions
[WRITE] Enable one or more built-in variables in a GTM workspace. Requires GTM_MCP_ENABLE_WRITES=true and confirm=true.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"accountId": "<accountId>",
"containerId": "<containerId>",
"workspaceId": "<workspaceId>",
"types": "<types>",
"confirm": "<confirm>"
},
"name": "built_in_variables_enable"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| types | Yes | Array of built-in variable types to enable. Known types include: pageUrl, pageHostname, pagePath, referrer, event, clickElement, clickClasses, clickId, clickTarget, clickUrl, and more. | |
| confirm | Yes | ||
| accountId | Yes | ||
| containerId | Yes | ||
| workspaceId | Yes |