Skip to main content
Glama

Gtm list variables

gtm.list_variables
Read-onlyIdempotent

Lists user-defined Google Tag Manager variables under a specified workspace path, helping you inspect available variables before editing tags or triggers.

Instructions

List user-defined variables under a workspace path.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "workspace_path": "<workspace_path>"
    },
    "name": "gtm.list_variables"
  }
}

Input Schema

NameRequiredDescriptionDefault
workspace_pathYes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.5.0

TDQS

B3.1/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint, so the safety profile is fully covered. The description's only added behavioral fact is that results are limited to user-defined variables under the given workspace; it says nothing about result ordering, pagination, or size limits on a list call.

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 front-loaded sentence with no filler. Nothing redundant, nothing buried.

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

Completeness3/5

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

The output schema removes any need to describe return values and annotations cover safety, so the remaining burden is small. Still, for a list tool reached through a hierarchical GTM path, the missing path format is a real gap that could cause a failed call.

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

Parameters2/5

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

Schema description coverage is 0% for the single required parameter, so the description must carry the load, and it only echoes the parameter name ('workspace path'). It gives no expected format such as accounts/{accountId}/containers/{containerId}/workspaces/{workspaceId}, leaving the agent to guess at path syntax.

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 ('List') and resource ('user-defined variables') scoped to a workspace path. The 'user-defined' qualifier is genuinely differentiating — it signals built-in GTM variables are excluded — but the description never contrasts itself with the adjacent gtm.list_tags/gtm.list_triggers/gtm.list_workspaces siblings.

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?

No when-to-use or when-not-to-use guidance, and no alternative named. An agent must infer from the name alone that this is the variable-enumeration step before any variable-related mutation.

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