Skip to main content
Glama
A1-x-Tech

Google Tag Manager MCP

Create a container version from a workspace

create_version
Destructive

Compile a Google Tag Manager workspace into an immutable container version for publishing. The source workspace is replaced; use the returned newWorkspacePath for further edits.

Instructions

Compiles a workspace into an immutable Container Version (the unit that gets published). SIDE EFFECT: the source workspace is DELETED and replaced by a fresh one — the response's newWorkspacePath points to the replacement; use it for any further edits, or old workspace paths will 404. Returns { containerVersion (with containerVersionId and full tag/trigger/variable snapshots), syncStatus, newWorkspacePath }. A compile failure comes back as compilerError=true with HTTP 200 and is reported as an error. Requires the tagmanager.edit.containerversions scope (edit.containers is NOT sufficient).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameNoVersion display name.
notesNoVersion notes (changelog entry).
account_idYesGTM account id (string).
container_idYesContainer id (string).
workspace_idYesWorkspace id (string) to compile. This workspace is deleted afterwards.
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Beyond the destructiveHint annotation, the description discloses specific side effects: the source workspace is deleted and replaced, and the response includes a newWorkspacePath. It also reveals the error pattern (compilerError=true with HTTP 200), which is significant behavioral detail.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single focused paragraph that front-loads the primary purpose, then covers side effects, return value, error handling, and scope in order. Every sentence adds unique value without redundancy.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With no output schema, the description thoroughly explains the return object and error behavior. It also covers side effects and auth scope, making it a complete reference for a complex mutation tool.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The input schema has 100% description coverage, including the workspace_id deletion note. The description does not add further parameter meaning, so a baseline score of 3 is appropriate.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool compiles a workspace into an immutable Container Version, which is the unit that gets published. It distinguishes from siblings like publish_version and delete_entity by specifying the action on the workspace.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It provides critical usage guidance: the workspace is deleted and replaced, so the new workspace path must be used for further edits, and old paths will 404. It also states the required OAuth scope. However, it does not explicitly contrast with alternatives like publish_version.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/A1-x-Tech/mcp-google-tagmanager'

If you have feedback or need assistance with the MCP directory API, please join our Discord server