gtm_built_in_variable
Create, list, remove, or revert Google Tag Manager built-in variables, with paginated listing for managing workspace variables.
Instructions
Performs all built-in variable operations: create, list, remove, revert. The 'list' action returns up to itemsPerPage items per page.
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_built_in_variable"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | No | Page number for pagination (starts from 1). Each page contains up to itemsPerPage items. | |
| type | No | The built-in variable type. Required for 'revert' and 'remove' actions. | |
| types | No | Array of built-in variable types. Optional for 'list' action. | |
| action | Yes | The built-in variable operation to perform. Must be one of: 'create', 'list', 'remove', 'revert'. | |
| accountId | Yes | The unique ID of the GTM Account containing the built-in variable. | |
| pageToken | No | A token for pagination. Optional for 'list' action. | |
| containerId | Yes | The unique ID of the GTM Container containing the built-in variable. | |
| workspaceId | Yes | The unique ID of the GTM Workspace containing the built-in variable. | |
| itemsPerPage | No | Number of items to return per page (1-50). Default: 50. Use lower values if experiencing response issues. |