Tag Manager: List Workspaces
gtm_list_workspacesList the workspaces of one Google Tag Manager container: id, name, description and the Tag Manager link of each. Every draft change (gtm_create_tag, gtm_update_trigger, …) needs a workspace the user chose, so call this and ask the user which one before the first write; gtm_get_workspace_status shows what each workspace has changed. A free container holds at most three workspaces. Read-only.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "gtm_list_workspaces"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| 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. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| publicId | No | Public GTM-XXXXXXX id. | |
| workspaces | Yes | Workspaces as Google lists them. | |
| containerName | Yes | Container name. | |
| containerPath | Yes | API path of the container. | |
| workspaceCount | Yes | Workspaces the container has. |