Skip to main content
Glama
Google Workspace MCP connector

Google Workspace MCP connector

by animesh-ex

gtm_scan_website

Read-only

Scan a web page's HTML to detect GTM containers, GA4/Google Ads IDs, consent mode, pixels, and inline dataLayer events; then list GTM script IDs and event names.

Instructions

Scan a web page's HTML (no browser needed) for tracking setup: GTM containers, GA4/Google Ads/UA IDs, gtag config, consent mode and CMPs, Meta/TikTok/Clarity/Hotjar/Pinterest pixels, server-side GTM, and inline dataLayer pushes. Also downloads each GTM container's public script to list the IDs and event names it uses. For the LIVE dataLayer (events pushed by JavaScript), use a browser and read window.dataLayer.

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

Input Schema

NameRequiredDescriptionDefault
urlYes
includeContainerScriptNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.7.0

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and openWorldHint=true, so safety is covered; the description adds real behavioral context by disclosing that it performs an additional network fetch — downloading each GTM container's public script — and what that fetch yields (IDs and event names). It does not mention return shape, limits on how many containers are fetched, or failure behavior for pages behind auth/anti-bot, which keeps it short of 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 core action, then the secondary download behavior, then the exclusion. The long detection enumeration is dense but informative rather than padding; a slightly tighter phrasing of the pixel list would save a few words without losing meaning.

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?

No output schema exists, yet the description covers enough: what is inspected, what extra fetching occurs, and the key limitation. The main residual gap is the absence of any hint about the shape of the result (e.g., detected container IDs vs. per-page findings) and the undocumented includeContainerScript toggle.

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 description coverage is 0% across two parameters, so the description must carry the load. It implies the container-script download behavior that the includeContainerScript flag controls but never names or explains the flag or its default of true, and says nothing extra about the url parameter beyond format=uri. Partial compensation only.

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?

A specific verb (scan) applied to a specific resource (a web page's HTML) with an explicit enumeration of what is detected: GTM containers, GA4/Google Ads/UA IDs, gtag config, consent mode/CMPs, Meta/TikTok/Clarity/Hotjar/Pinterest pixels, server-side GTM, and inline dataLayer pushes. The parenthetical '(no browser needed)' immediately separates it from browser-based dataLayer inspection.

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 states the condition for use (static HTML scan, no browser required, plus container-script download) and explicitly names the case it does not cover: live dataLayer events pushed by JavaScript, which require a browser and window.dataLayer. That is a direct when-to-use / when-not-to-use boundary rather than implied guidance.

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