versions_publish
Publishes a specific Google Tag Manager container version to live after explicit confirmation, making it active in production.
Instructions
[PUBLISH] Publish a specific GTM container version to live. Requires GTM_MCP_ENABLE_PUBLISH=true and confirm=true. ⚠️ This immediately makes the version live in production.
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>",
"containerVersionId": "<containerVersionId>",
"confirm": "<confirm>"
},
"name": "versions_publish"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| confirm | Yes | Must be true to confirm this publish operation. | |
| accountId | Yes | ||
| containerId | Yes | ||
| containerVersionId | Yes | The version ID to publish. |