Skip to main content
Glama

Google Ads & Meta Ads

Tag Manager: List Versions

gtm_list_versions
Read-onlyIdempotent

List the versions of one Google Tag Manager container, newest first: version id, the name and note the publisher gave it, and how many tags, triggers and variables it held. Use it to see how often the container changes, what the recent publishes were about, which one is live, and whether a version was deleted. Google gives no publish timestamp on the list; the version name is what carries the date when the team writes one. Read-only.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "gtm_list_versions"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoVersions to return, newest first. Default 25, at most 100.
containerNoThe container: its public id (GTM-XXXXXXX), its name, or its API path from gtm_list_containers. May be left out when the connected login reaches exactly one container.
include_deletedNoAlso list versions that were deleted. Default false.

Output Schema

NameRequiredDescriptionDefault
publicIdNoPublic GTM-XXXXXXX id.
versionsYesVersions, newest first.
truncatedYesTrue when more versions exist than were returned.
versionCountYesVersions the container has (after the deleted filter).
containerNameYesContainer name.
containerPathYesAPI path of the container.
liveVersionIdYesId of the version live now.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already cover read-only, idempotent and non-destructive, but the description adds a genuine behavioral caveat: Google supplies no publish timestamp on the list, so the version name is the only date carrier. It also declares newest-first ordering. It does not mention pagination behavior or rate limits, and the closing 'Read-only.' merely restates readOnlyHint.

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

Conciseness4/5

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

Front-loads the verb, resource and returned fields, then moves to use cases and one caveat; every sentence carries information. The trailing 'Read-only.' is the one redundant element since annotations already declare readOnlyHint=true.

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?

Output schema exists, so return values need not be explained, and the description still covers ordering, field semantics, the missing-timestamp limitation, and default deletion filtering. An agent can call this correctly without further information.

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 limit, container and include_deleted are fully documented in the schema, including the default of 25, the 100 cap, the three accepted container forms, and the omitted-when-single-container rule. The description reinforces the newest-first ordering and the deleted-version notion but adds no syntax beyond the schema, so baseline 3 applies.

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?

States a specific verb and resource ('List the versions of one Google Tag Manager container') and enumerates exactly what each entry contains: version id, name, note, and counts of tags, triggers and variables. That field-level detail separates it cleanly from siblings like gtm_get_container or gtm_list_workspaces.

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?

Gives four concrete questions the tool answers (change frequency, recent publish topics, which version is live, whether one was deleted), which is strong when-to-use framing. It stops short of naming an alternative or an exclusion case, so it does not reach the explicit when-not tier.

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