Skip to main content
Glama

Google Ads & Meta Ads

Tag Manager: List Workspaces

gtm_list_workspaces
Read-onlyIdempotent

List the workspaces of one Google Tag Manager container: id, name, description and the Tag Manager link of each. Every draft change (gtm_create_tag, gtm_update_trigger, …) needs a workspace the user chose, so call this and ask the user which one before the first write; gtm_get_workspace_status shows what each workspace has changed. A free container holds at most three workspaces. 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_workspaces"
  }
}

Input Schema

NameRequiredDescriptionDefault
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.

Output Schema

NameRequiredDescriptionDefault
publicIdNoPublic GTM-XXXXXXX id.
workspacesYesWorkspaces as Google lists them.
containerNameYesContainer name.
containerPathYesAPI path of the container.
workspaceCountYesWorkspaces the container has.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and destructiveHint=false, yet the description adds real context beyond them: that a workspace selection is a hard prerequisite for every draft mutation, and that a free container caps at three workspaces (a constraint that also implies no pagination burden). The trailing "Read-only" merely restates the annotation, keeping it from 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.

Conciseness4/5

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

Front-loaded with the resource and return fields, then prerequisite, then the alternative, so an agent gets the routing information first. The closing "Read-only." fragment is redundant with the annotations and is the only wasted wording.

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 no prose. Given a one-optional-parameter read tool, the description covers the prerequisite for downstream writes, the sibling that answers the adjacent question, and the effective cardinality limit — nothing an agent needs in order to call it correctly is missing.

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% and the single `container` parameter already documents accepted formats (GTM-XXXXXXX, name, API path) and the omission rule. The description only reinforces the one-container scoping; it adds no format or fallback detail the schema does not already carry.

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 workspaces of one Google Tag Manager container") and enumerates the returned fields (id, name, description, Tag Manager link). The scope is confined to one container, which distinguishes it from gtm_get_workspace_status and gtm_list_containers without ambiguity.

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

Usage Guidelines5/5

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

Gives an explicit call condition ("call this and ask the user which one before the first write") tied to a named family of write tools, and routes to the alternative (gtm_get_workspace_status) for the different question of what changed. When-to-use, when-to-use-something-else, and the sequencing prerequisite are all present.

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