workspace_create_version_and_publish
Creates a new container version from a workspace and immediately publishes it to production.
Instructions
[PUBLISH] Create a new container version from a workspace and immediately publish it. Requires GTM_MCP_ENABLE_PUBLISH=true and confirm=true. ⚠️ This is the most powerful write operation — it goes live in production immediately.
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": "workspace_create_version_and_publish"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Version name. | |
| notes | No | Version notes. | |
| confirm | Yes | Must be true to confirm this publish operation. | |
| accountId | Yes | ||
| containerId | Yes | ||
| workspaceId | Yes |