Skip to main content
Glama

Tag Manager version history and diff

gtm_version_history
Read-only

Recent published versions of a container, and exactly what changed between two of them: tags, triggers and variables added, removed or changed (paused, different triggers, different event or conversion id). Default compares the live version with the one before it. Use it for 'conversions dropped on the 14th - what changed?': match the version's date with the drop in GA4 or Google Ads.

Input Schema

NameRequiredDescriptionDefault
containerNoContainer public id like 'GTM-ABC123' (or its name), from gtm_list_containers. Only needed when there's more than one.
toVersionNoNewer version number. Default: the live version.
fromVersionNoOlder version number. Default: the version before `toVersion`.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already establish that this is a read-only, non-destructive, open-world operation. The description adds useful behavior beyond annotations: only recent published versions are considered, the diff covers tags/triggers/variables, and the default compares live vs. prior version.

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 front-loaded with the core capability and follows with a concrete diagnostic use case. It is appropriately sized with no filler sentences.

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

Completeness4/5

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

Given the low parameter complexity, full schema coverage, and annotations, the description is largely complete for selection and invocation. It could be slightly richer about what 'recent' means or the shape of the diff output, but it covers the essential behavior.

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?

Schema coverage is 100%, so the parameters are already well documented in the input schema. The description reinforces the default fromVersion/toVersion comparison but adds little parameter-specific meaning beyond what the schema already says.

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 states a specific resource and operation: recent published container versions and a diff of exactly what changed between two of them. It distinguishes the tool from sibling GTM tools by emphasizing version-diff behavior, not tag/trigger listing or container audits.

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 gives a clear usage scenario ('conversions dropped on the 14th - what changed?') and explains the default comparison behavior. It does not explicitly state when not to use it or name alternative tools for adjacent GTM investigation needs.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources