versions_set_latest
Sets a chosen container version as latest and syncs the default workspace to it. This does not publish; use versions_publish to go live.
Instructions
[WRITE] Set a specific container version as the "latest" (synchronizes the default workspace with this version). Note: This does NOT publish. Use versions_publish to go live. 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>",
"containerVersionId": "<containerVersionId>",
"confirm": "<confirm>"
},
"name": "versions_set_latest"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| confirm | Yes | ||
| accountId | Yes | ||
| containerId | Yes | ||
| containerVersionId | Yes | The version ID to set as latest. |