Skip to main content
Glama

Gtm list workspaces

gtm.list_workspaces
Read-onlyIdempotent

Lists all Google Tag Manager workspaces under a specified container path, helping you identify the workspace needed for configuration changes.

Instructions

List workspaces under a container 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": {
      "container_path": "<container_path>"
    },
    "name": "gtm.list_workspaces"
  }
}

Input Schema

NameRequiredDescriptionDefault
container_pathYes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.5.0

TDQS

C2.8/5.0
Behavior2/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, destructiveHint=false and openWorldHint=true, so the safety profile is fully covered by structured data. The description adds nothing beyond that: no pagination behavior, no result-limit or ordering hints, no mention of permission/scope needs. With annotations doing all the work, the description's marginal behavioral contribution is nearly zero.

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?

A single short sentence with no filler, and the scoping clause is front-loaded. It is efficient but arguably under-specified rather than tight; nothing is wasted, but little is conveyed.

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 tool itself is simple — one required string, read-only, and an output schema exists so return values need no explanation. Still, for a hierarchical GTM listing tool the two things an agent genuinely needs (the path format and the sibling call that produces a container path) are both absent, leaving a real gap despite the tool's low complexity.

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?

There is a single required parameter, container_path, with 0% schema description coverage and no enum. The description's mention of "container path" loosely ties the parameter name to a concept, which is minimal compensation, but it does not give the expected format (e.g. accounts/{id}/containers/{id}) or say how to obtain one — the exact information an agent needs for a path-based API.

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?

"List workspaces under a container path" gives a specific verb (List) and resource (workspaces) plus the scoping entity (container). It is clear on its own, but it never distinguishes itself from the many sibling GTM list tools (gtm.list_accounts, gtm.list_containers, gtm.list_triggers, gtm.list_variables, gtm.list_tags, gtm.list_versions) or clarifies where workspaces sit in that hierarchy.

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 phrase "under a container path" implies a prerequisite (you must already have a container path), but there is no explicit when-to-use guidance, no statement of when not to use it, and no pointer to gtm.list_containers as the way to obtain that path. The agent must infer the call sequence entirely.

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