Skip to main content
Glama

Google Ads & Meta Ads

Tag Manager: Audit Tracking

gtm_audit_tracking
Read-onlyIdempotent

Audit the conversion tracking in one Google Tag Manager container — its published version, or a draft workspace when scope is workspace — and rank what is wrong by what it does to measurement. Container checks: paused tags, tags with no trigger (setup/teardown tags excepted), active duplicate GA4 configuration or Google tags (double counting where their triggers overlap), Universal Analytics tags still firing, marketing tags without a consent setting, custom HTML, triggers and variables nothing references (checked through nested settings, trigger groups and sequencing; reported as unverified when the reference graph is incomplete), and unpublished workspace changes. When Google Ads is also connected, it reads the account that tracks the conversions (the manager account under cross-account tracking) and joins every enabled website conversion action on that account's AW- id plus conversion label with the container's Google Ads conversion tags, keeping every matching tag: actions with no tag here, actions a variable-driven tag might send to (unresolved), tags for no action, tags sending to another account's id and paused conversion tags; GA4-imported, offline, call and app conversions are listed as not applicable, never as missing. Each finding carries a stable id, severity, confidence (confirmed, likely, unverified), the entities by kind and id, and what it asks for next (draft, review, external, info). Read-only; it changes nothing in Tag Manager or Google Ads.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "gtm_audit_tracking"
  }
}

Input Schema

NameRequiredDescriptionDefault
freshNoRead the live version from Google again instead of the copy cached for ten minutes. Only needed right after the user published a change. Default false.
scopeNoWhat to judge: live (the published version, default) or workspace (one draft workspace, named by `workspace`; what the container would look like with its unpublished changes).
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.
workspaceNoThe draft workspace to audit (by name or id, as the user named it) when scope is workspace; naming one implies scope workspace.
skip_google_adsNoAudit the container alone, without reading Google Ads conversion actions. Default false.
include_workspacesNoAlso read unpublished changes (one API request per workspace, up to 3). Default true.
google_ads_account_idNoGoogle Ads customer id (10 digits) of the account this container measures, for the conversion cross-check. Default: the connected Google Ads account, or its selected one.

Output Schema

NameRequiredDescriptionDefault
asOfYesWhen Google answered the read the audit judged (ISO instant).
scopeYeslive (the published version) or workspace (a draft).
completeYesFalse when a list was cut off by paging; completenessNotes says which.
findingsYesFindings, worst first.
lowCountYesLOW findings.
publicIdNoPublic GTM-XXXXXXX id of the container.
tagCountYesTags in the version or workspace judged.
tagKindsYesTags per kind.
fromCacheYesTrue when the live version came from the ten-minute cache rather than Google.
highCountYesHIGH findings.
mediumCountYesMEDIUM findings.
ruleVersionYesVersion of the audit rules that produced these findings.
triggerCountYesTriggers.
containerNameYesThe container's name.
containerPathYesAPI path of the container, accounts/{a}/containers/{c}.
evidenceNotesYesWhy the reference graph is incomplete: lists cut off, kinds not read, references that resolved to nothing.
liveVersionIdNoId of the published container version the answer describes.
variableCountYesUser-defined variables.
workspaceNameNoThe workspace read, when scope is workspace.
pausedTagCountYesOf which paused.
evidenceCompleteYesTrue when the reference graph was complete, so unused verdicts are facts; false when evidenceNotes list what could not be checked.
googleAdsCheckedYesTrue when conversion actions were compared.
completenessNotesYesWhat the read did not cover, empty when complete.
conversionActionsYesOne row per Google Ads conversion action; empty when not checked.
googleAdsCustomerIdNoThe Google Ads account audited.
conversionCustomerIdNoThe account whose conversion actions apply (the manager under cross-account tracking).
conversionTrackingIdNoNumeric part of the AW- id the container's conversion tags must send to.
googleAdsSkippedReasonNoWhy they were not, when they were not.
unpublishedChangeCountYesChanges waiting in the workspaces read; 0 when workspaces were not read.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior5/5

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

Annotations declare read-only safety, and the description adds real behavioral context beyond them: explicit 'read-only; it changes nothing', a ten-minute cache with the fresh override, and the caveat that reference checks are reported as unverified when the graph is incomplete. It also pre-empts false positives — GA4-imported, offline, call and app conversions are 'not applicable, never as missing' — which is exactly the kind of disclosure an agent needs to interpret findings.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The purpose is front-loaded in the first clause, but the body is a single ~250-word run-on sentence packing every check and join rule together. The content mostly earns its place, yet the enumeration of checks and Google Ads join cases would read far better as a short list.

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?

With an output schema present, return values need no explanation, and the description still explains the finding shape (id, severity, confidence, entities, next action) so the agent knows what to do with results. Safety, caching, mode selection, Google Ads cross-account handling, and known false-positive cases are all covered for a tool of this complexity.

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 100% and each parameter is already documented in the schema, so the description only needs to reinforce. It does add meaning for scope by tying 'workspace' to judging unpublished changes, but it does not explain fresh, include_workspaces, or google_ads_account_id beyond what the schema already says. Baseline 3 applies.

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?

States a specific verb and resource — 'audit the conversion tracking in one Google Tag Manager container' — then enumerates exactly what is checked (paused tags, duplicates, consent settings, orphaned entities, unpublished changes). An agent can distinguish this from gtm_list_tags or gtm_get_container without opening any schema.

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 clear conditions for the two main modes ('live ... or a draft workspace when scope is workspace') and for the Google Ads side ('when Google Ads is also connected'), plus the skip_google_ads escape hatch. It stops short of naming sibling alternatives such as gtm_list_tags for raw inspection or gtm_get_workspace_status for a lighter check, so routing is inferred rather than stated.

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