versions_create
Snapshot a GTM workspace into a new container version without publishing, so you can preserve and share a reviewable checkpoint of your tag configuration.
Instructions
[WRITE] Create a new GTM container version from a workspace (checkpoint). Requires GTM_MCP_ENABLE_WRITES=true and confirm=true. This takes a snapshot of the workspace into a versioned checkpoint without publishing.
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>",
"confirm": "<confirm>"
},
"name": "versions_create"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Version name/label. | |
| notes | No | Version notes / change description. | |
| confirm | Yes | ||
| accountId | Yes | ||
| containerId | Yes | ||
| workspaceId | Yes |