Connect the Google Tag Manager MCP server to your AI agent Open source, MIT, on npm. Setup instructions for Claude, Cursor and Codex are in the repository; adoption questions — Telegram. GitHub repository Telegram

Google Tag Manager: Create a workspace — MCP tool

Google Tag Manager MCP tool: Creates a new workspace in a container — an isolated draft where tags, triggers and variables are edited before being compiled into a version.

Technical name: create_workspace

What task it solves

I want to create a workspace.

Creates a new workspace in a container — an isolated draft where tags, triggers and variables are edited before being compiled into a version.

When to use it

Use this capability when you need “Create a workspace” without doing the same work manually in the Google Tag Manager interface. It runs only when an AI client calls it.

What to provide

  • account_idrequired. GTM account id (string).
  • container_idrequired. Container id (string).
  • namerequired. Display name of the new workspace.
  • descriptionoptional. Optional description of what this workspace changes.

What it returns

Returns the created Workspace with its server-assigned workspaceId.

What changes in Google Tag Manager

The tool changes real Google Tag Manager data as described above. The server does not promise an automatic rollback.

Example request

Create a workspace in Google Tag Manager. Ask for any required identifiers that are missing.

Errors and limitations

Requires the tagmanager.edit.containers scope.

Access also depends on token permissions, quotas, and upstream API limits.

Related MCP tools

Technical details