destinations_link
Links a Google tag or GA4 destination to a GTM container with write access and confirmation, so you can attach destination IDs to container configuration.
Instructions
[WRITE] Link a destination (Google tag / GA4 destination) to a GTM container. Requires GTM_MCP_ENABLE_WRITES=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>",
"destinationId": "<destinationId>",
"confirm": "<confirm>"
},
"name": "destinations_link"
}
}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 GTM container ID. | |
| destinationId | Yes | The destination ID to link (e.g. "G-XXXXXXX"). | |
| allowUserPermissionFeatureUpdate | No |