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: List containers — MCP tool

Google Tag Manager MCP tool: Lists the containers of a GTM account.

Technical name: list_containers

What task it solves

I want to list containers.

Lists the containers of a GTM account.

When to use it

Use this capability when you need “List containers” 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).
  • page_tokenoptional. Pagination token from a previous response's nextPageToken. Omit for the first page.

What it returns

Returns { container: [{ containerId, name, publicId (e.g.

What changes in Google Tag Manager

The tool reads Google Tag Manager data and does not change it.

Example request

List containers in Google Tag Manager. Ask for any required identifiers that are missing.

Errors and limitations

GTM-XXXXXX), usageContext, path, fingerprint, tagManagerUrl }], nextPageToken }.

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

Related MCP tools

Technical details