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 container — MCP tool

Google Tag Manager MCP tool: Creates a new container in a GTM account.

Technical name: create_container

What task it solves

I want to create a container.

Creates a new container in a GTM account.

When to use it

Use this capability when you need “Create a container” 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).
  • namerequired. Display name of the new container.
  • usage_contextrequired. Usage contexts, e.g. ["web"]. Other documented values: androidSdk5, iosSdk5, server.

What it returns

Returns the created Container with its server-assigned containerId and publicId.

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 container in Google Tag Manager. Ask for any required identifiers that are missing.

Errors and limitations

usage_context declares the platform, e.g. ["web"]; other values include androidSdk5, iosSdk5, server. Requires the tagmanager.edit.containers scope.

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

Related MCP tools

Technical details