containers_combine
Merge a source Google Tag Manager container into a target container, leaving the target as the surviving container; requires write access and confirm=true.
Instructions
[WRITE] Combine (merge) another container into this one. Requires GTM_MCP_ENABLE_WRITES=true and confirm=true. ⚠️ This merges the source container identified by containerIdToCombine into the target container.
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>",
"containerIdToCombine": "<containerIdToCombine>",
"confirm": "<confirm>"
},
"name": "containers_combine"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| confirm | Yes | Must be true to confirm this write operation. | |
| accountId | Yes | The GTM account ID. | |
| containerId | Yes | The target container ID (the surviving container). | |
| settingSource | No | Which container's settings to keep. | |
| containerIdToCombine | Yes | The container ID to merge into the target. | |
| allowUserPermissionFeatureUpdate | No | Allow updating the user-permission feature during combine. |