Skip to main content
Glama
Google Workspace MCP connector

Google Workspace MCP connector

by animesh-ex

gtm_publish

Destructive

Publish an approved Google Tag Manager container version to make changes live on your website. Use only after the version has been reviewed and explicitly approved for release.

Instructions

Publish a container version so it goes LIVE on the website. Only call after the user has reviewed the changes (ideally in GTM Preview) and explicitly approved publishing.

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

Input Schema

NameRequiredDescriptionDefault
versionPathYesaccounts/…/containers/…/versions/N from gtm_create_version

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.7.0

TDQS

A3.8/5.0
Behavior3/5

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

Annotations already flag destructiveHint=true and openWorldHint=true, so the agent knows this mutates external state. The description adds useful context beyond them—the change becomes live on the public website and human approval is required—but says nothing about reversibility, rollback, or impact on live traffic.

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?

Two sentences, each earning its place, with the outcome stated first and the safety precondition second. No filler or repetition of the tool name.

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?

For a single-parameter destructive action with no output schema, the description covers the key facts: what it does, what the effect is, and the approval gate. It stops short of describing failure modes or post-publish confirmation details.

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?

Only one parameter and schema description coverage is 100%, so the schema already documents versionPath and its provenance from gtm_create_version. The description adds no format or source detail beyond that, which matches the baseline for a fully documented schema.

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?

Names a specific verb (Publish) and resource (a container version) plus the concrete outcome: it goes LIVE on the website. It does not explicitly contrast with the nearest sibling, gtm_create_version, which is only referenced inside the schema's parameter description rather than the description text.

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?

Gives an explicit precondition: call only after the user has reviewed the changes (ideally in GTM Preview) and explicitly approved publishing, which implicitly routes prior steps to gtm_create_version. It lacks any when-not guidance such as what to do if approval is absent, but the usage gate is clear.

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