Tag Manager: Create Workspace
gtm_create_workspaceCreate one new, empty workspace in a Google Tag Manager container, with the name the user chose. Only when the user asks for a new workspace: drafts normally go into an existing one (gtm_list_workspaces). A free container holds at most three workspaces; Google refuses a fourth, and this tool reports that so the user can reuse or delete one in Tag Manager. Creates nothing else and publishes nothing. Requires the Tag Manager connection's editing permission.
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": {
"name": "<name>"
},
"name": "gtm_create_workspace"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | The workspace name the user chose, e.g. "Checkout tracking fixes". Must be new in the container. | |
| container | No | The container: its public id (GTM-XXXXXXX), its name, or its API path from gtm_list_containers. May be left out when the connected login reaches exactly one container. | |
| description | No | What the workspace is for, shown in Tag Manager. Optional. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| publicId | No | Public GTM-XXXXXXX id of the container. | |
| published | Yes | Always false: the change is a draft until a version is created and published. | |
| workspaceId | Yes | Id of the workspace the change was saved in. | |
| workspaceUrl | Yes | Where the user reviews, previews and publishes the workspace in Tag Manager. | |
| containerName | Yes | The container's name. | |
| containerPath | Yes | API path of the container, accounts/{a}/containers/{c}. | |
| workspaceName | Yes | Name of that workspace. |