Skip to main content
Glama
kLOsk

Google Ads - AdLoop

by kLOsk

List Tag Manager variables

list_gtm_variables
Read-only

Lists all custom and built-in variables in a Google Tag Manager container, so you can confirm which variables are available for use in triggers.

Instructions

List GTM variables — both custom and enabled built-in.

Custom variables come from the live container. Built-in variables (Page URL, Click Element, Form ID, etc.) come from the workspace's enabled-built-ins list. Variables matter because triggers reference them — if a trigger uses {{Form ID}} but Form ID isn't enabled, the trigger never matches.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
gtm_account_idNo
gtm_container_idNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.12.0

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare read-only behavior. The description adds transparency about data sources (live container vs workspace enabled-built-ins) and the consequence of missing built-in variables, which complements the annotation without contradiction.

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 compact and well-structured, efficiently conveying the distinction between custom and built-in variables and their relevance without unnecessary verbosity. The paragraph separation aids readability.

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 presence of an output schema, the description does not need to detail return format. It adequately covers the core purpose and provides contextual nuance about variable sourcing and trigger dependencies, making it sufficiently complete for an agent to use correctly.

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

Parameters1/5

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

Schema description coverage is 0% and the description does not explain the parameters (gtm_account_id, gtm_container_id). Although names are self-explanatory, the description fails to compensate for the lack of schema-level documentation, leaving their role and default behavior ambiguous.

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 it lists GTM variables, distinguishing custom (from live container) and built-in (from workspace enabled-built-ins), and explains the practical significance (trigger references). This is specific and differentiates from sibling tools that handle other GTM resources.

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?

The description provides meaningful context about when variables matter and how they are sourced, implicitly indicating this tool is for checking variable availability. It does not explicitly compare with alternatives, but the purpose is clear enough for an agent to select it for variable-related queries.

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

Deploy Server

Other Tools