Skip to main content
Glama

Google Ads & Meta Ads

Tag Manager: Create Workspace

gtm_create_workspace

Create one new, empty workspace in a Google Tag Manager container, with the name the user chose. Only when the user asks for a new workspace: drafts normally go into an existing one (gtm_list_workspaces). A free container holds at most three workspaces; Google refuses a fourth, and this tool reports that so the user can reuse or delete one in Tag Manager. Creates nothing else and publishes nothing. Requires the Tag Manager connection's editing permission.

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": {
      "name": "<name>"
    },
    "name": "gtm_create_workspace"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYesThe workspace name the user chose, e.g. "Checkout tracking fixes". Must be new in the container.
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.
descriptionNoWhat the workspace is for, shown in Tag Manager. Optional.

Output Schema

NameRequiredDescriptionDefault
publicIdNoPublic GTM-XXXXXXX id of the container.
publishedYesAlways false: the change is a draft until a version is created and published.
workspaceIdYesId of the workspace the change was saved in.
workspaceUrlYesWhere the user reviews, previews and publishes the workspace in Tag Manager.
containerNameYesThe container's name.
containerPathYesAPI path of the container, accounts/{a}/containers/{c}.
workspaceNameYesName of that workspace.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.7/5.0
Behavior5/5

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

Beyond the annotations (readOnlyHint=false, destructiveHint=false), the description discloses concrete behavioral traits: the tool creates nothing else and publishes nothing, requires the Tag Manager connection's editing permission, and hits a hard limit of three workspaces per free container. It also explains the failure mode—Google refuses a fourth and the tool reports it so the user can reuse or delete one. This is rich context that the structured annotations alone do not convey.

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?

The description is front-loaded with the core action, then layers usage conditions, constraints, side-effect scope, and permission requirements. Every sentence earns its place: no fluff, no repetition of the schema, and the progression from purpose to exclusion to limits is logical. It is appropriately sized for a create operation with important guardrails.

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?

Given the tool's complexity (a create operation with a quota and permission requirement), the description is complete enough for an agent to call it correctly. It covers purpose, when to use it, the key constraint, side-effect boundaries, and required permission, while the output schema handles return values. Nothing essential 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?

The input schema has 100% description coverage, so the schema already documents the three parameters in detail. The description adds only that the workspace uses the name the user chose and mentions the container in passing, but it does not provide additional meaning, syntax, or edge-case guidance beyond the schema. Baseline 3 is appropriate when the schema does the heavy lifting.

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?

The description states a specific verb and resource: 'Create one new, empty workspace in a Google Tag Manager container'. It explicitly distinguishes from the sibling gtm_list_workspaces by noting that drafts normally go into an existing workspace. An agent can tell immediately what this tool does and when it differs from listing workspaces.

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?

It provides explicit when-to-use guidance: 'Only when the user asks for a new workspace'. It names the alternative behavior (drafts normally go into an existing one and points to gtm_list_workspaces) and explains the quota constraint and resulting failure so the agent can advise the user. Nothing critical is left to inference.

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