Skip to main content
Glama
dienhokhanh

gtm-mcp-server

by dienhokhanh

gtm_list_variables

Read-onlyIdempotent

List every user-defined variable in a Google Tag Manager workspace, following pagination to ensure complete results.

Instructions

List every user-defined variable in a workspace, following all result pages.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
accountYesName or ID of the GTM account (e.g. 'My Company' or '1234567').
containerYesName, GTM container ID (publicId, e.g. GTM-XXXX), or internal container ID.
workspaceNoWorkspace name or ID. Omit only for reads to use Default Workspace.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
dataNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

A3.6/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive and open-world, so the safety profile is covered. The description adds a genuinely useful behavioral fact beyond them: it automatically follows all result pages, so the agent knows it will not need to paginate manually. It says nothing about result volume or error behavior, keeping it short of a 5.

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?

A single sentence with zero filler that front-loads the action, the scope and the pagination behavior. Every clause earns its place.

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?

With an output schema present, rich annotations and fully documented parameters, the description only needs to add what structured fields cannot. It supplies the auto-pagination behavior and scope, though it leaves usage routing to the sibling tools unaddressed.

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 description coverage is 100% and each parameter (account, container, workspace) is already documented in the schema, including the note that workspace may be omitted for reads. The description adds no format or default detail beyond that, so the baseline 3 applies.

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

Purpose4/5

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

States a specific verb and resource ('List every user-defined variable') plus its scope ('in a workspace'), which cleanly separates it from the singular gtm_get_variable sibling. It does not, however, explicitly contrast itself with the other list_* tools in the family, so sibling routing relies on the name alone.

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

Usage Guidelines2/5

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

The description never says when to prefer this tool over gtm_get_variable or how it relates to the other list_* tools, nor does it state prerequisites such as needing a container first. Usage is only inferable from the verb 'List every', which is minimal guidance.

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