gtm_update_variable
Update an existing GTM variable using its full variable resource JSON, specifying account, container, workspace, and variable IDs to replace its configuration.
Instructions
Update an existing variable with a full GTM Variable resource (JSON string).
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": {
"account_id": "<account_id>",
"container_id": "<container_id>",
"workspace_id": "<workspace_id>",
"variable_id": "<variable_id>",
"variable_json": "<variable_json>"
},
"name": "gtm_update_variable"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| account_id | Yes | ||
| variable_id | Yes | ||
| container_id | Yes | ||
| workspace_id | Yes | ||
| variable_json | Yes |