variables_delete
Permanently delete a Google Tag Manager variable by account, container, workspace, and variable ID, with explicit confirmation required to prevent accidental removal.
Instructions
[DELETE] Delete a GTM variable. Requires GTM_MCP_ENABLE_DELETES=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>",
"variableId": "<variableId>",
"confirm": "<confirm>"
},
"name": "variables_delete"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| confirm | Yes | ||
| accountId | Yes | ||
| variableId | Yes | ||
| containerId | Yes | ||
| workspaceId | Yes |