Skip to main content
Glama
Google Workspace MCP connector

Google Workspace MCP connector

by animesh-ex

gtm_enable_builtin_variables

Enables built-in variables such as PAGE_URL, EVENT, and CLICK_TEXT in a GTM workspace so you can use them as triggers and tags without creating custom variables.

Instructions

Turn on built-in variables in a workspace, e.g. PAGE_URL, PAGE_PATH, PAGE_HOSTNAME, REFERRER, EVENT, CLICK_URL, CLICK_TEXT, CLICK_CLASSES, CLICK_ID, FORM_ID, SCROLL_DEPTH_THRESHOLD, VIDEO_TITLE.

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>",
      "types": "<types>"
    },
    "name": "gtm_enable_builtin_variables"
  }
}

Input Schema

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

B3.3/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, destructiveHint=false, and openWorldHint=true, so the safety profile is covered. The description adds the useful detail that only predefined built-in variables are affected, but says nothing about idempotency (what happens if a variable is already enabled), whether pending changes are created, or what the call returns.

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 front-loaded sentence with the action first and the examples trailing. The long enumeration is justified because those strings are the actual parameter values, though an agent only needs a few to grasp the pattern.

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?

For a low-complexity, two-parameter mutation with no output schema, the definition covers intent and value examples, but omits result behavior and side effects (idempotency, whether a workspace version/draft is touched). Those omissions are what an agent would most want before calling a write tool.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

At 50% schema coverage only the workspace parameter is documented in the schema; the description compensates for the undocumented `types` array by supplying concrete valid values (PAGE_URL, CLICK_TEXT, FORM_ID, etc.). It stops short of clarifying whether names must be exact/case-sensitive or whether unknown values error out.

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 pairs a specific verb ("turn on") with a specific resource ("built-in variables in a workspace") and enumerates the variable IDs, so an agent knows exactly what the tool manipulates. It does not, however, distinguish itself from near-neighbors such as gtm_add_datalayer_variables, leaving the differentiation to the name.

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?

There is no statement of when to use this tool versus alternatives, nor any prerequisites or exclusions. An agent must infer from the name that this enables pre-existing built-in variables rather than creating custom ones via gtm_add_datalayer_variables.

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