gtm_builtin_variable
List, enable, or disable Google Tag Manager built-in variables. Provide account, container, workspace, and variable type to create or delete.
Instructions
Manages GTM built-in variables: list, create (enable), delete (disable).
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": {
"action": "<action>",
"accountId": "<accountId>",
"containerId": "<containerId>",
"workspaceId": "<workspaceId>"
},
"name": "gtm_builtin_variable"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | No | Type of built-in variable (required for create/delete). Examples: 'pageUrl', 'pagePath', 'pageTitle', 'referrer', 'event', etc. | |
| action | Yes | The built-in variable operation to perform. | |
| accountId | Yes | The unique ID of the GTM Account. | |
| containerId | Yes | The unique ID of the GTM Container. | |
| workspaceId | Yes | The unique ID of the GTM Workspace. |