Skip to main content
Glama
Google Workspace MCP connector

Google Workspace MCP connector

by animesh-ex

gtm_get_container

Read-only

Retrieves everything configured in a Google Tag Manager workspace—tags, triggers, variables, built-in variables and the live published version number—so you can review the setup before making any changes.

Instructions

Everything configured in a GTM workspace: tags (type, key settings, firing triggers), triggers (type, conditions), variables, enabled built-in variables, plus the live published version number. Use before changing anything.

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": "<workspace>"
    },
    "name": "gtm_get_container"
  }
}

Input Schema

NameRequiredDescriptionDefault
workspaceYesWorkspace path (accounts/…/containers/…/workspaces/…), or a container public ID like GTM-XXXX (uses its Default Workspace)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.7.0

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and openWorldHint=true, so safety is covered structurally. On top of that the description discloses the exact payload contents and the fact that it surfaces the *live published* version number rather than a draft, which is meaningful behavioral context an agent could not get from the annotations. Auth requirements and rate limits remain unstated.

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?

Two sentences, contents first then the usage rule, with no filler. The parenthetical enumerations are dense but justified because there is no output schema to describe return shape elsewhere.

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 no output schema, the description properly carries the burden of describing what is returned, and it does so concretely down to trigger conditions and built-in variable state. For a one-parameter read tool with read-only annotations, remaining gaps (size of response, nested structure depth) are minor.

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?

The single workspace parameter is fully documented in the schema, including the GTM-XXXX shortcut that falls back to the Default Workspace. The description adds nothing about parameter format or behavior, so baseline 3 applies since the schema already does the work.

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?

The description names a specific retrieval target and enumerates exactly what comes back: tags with type/settings/firing triggers, triggers with type/conditions, variables, enabled built-in variables, and the live published version number. That is far more informative than a name restatement. It stops short of explicitly differentiating from the closely named sibling gtm_list_containers or gtm_workspace, which leaves a small ambiguity about which 'get' to pick.

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?

'Use before changing anything' gives a concrete, actionable context: this is the inspect-first call that precedes mutation siblings such as gtm_add_ga4_tags, gtm_upsert, or gtm_publish. It gives positive guidance but names no alternative and states no exclusion, so an agent must still infer when it would call gtm_workspace or gtm_list_containers instead.

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