gtm_update_variable
Update an existing Google Tag Manager variable using account, container, workspace, and variable IDs, with fingerprint for safe optimistic locking.
Instructions
Updates an existing variable in GTM
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>",
"variableId": "<variableId>",
"fingerprint": "<fingerprint>",
"variable": "<variable>"
},
"name": "gtm_update_variable"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| variable | Yes | ||
| accountId | Yes | GTM Account ID | |
| variableId | Yes | GTM Variable ID | |
| containerId | Yes | GTM Container ID | |
| fingerprint | Yes | Variable fingerprint for optimistic locking | |
| workspaceId | Yes | GTM Workspace ID |