Skip to content

Reference

Google Tag Manager tools

Audit GTM containers, detect duplicate conversion tracking, find unused tags and triggers, and list tags that have no consent settings.

Markdown
On this page

Before you begin

Connect the relevant Google Tag Manager account through Accounts, then connect your AI assistant. Confirm the target account and date range before querying data or making changes.

This is the generated catalog. The tools shown in your AI assistant depend on your connected accounts, active workspace, role, write permissions, enabled features and the client's supported tool surface. A listed tool is not a promise that it is enabled in every workspace. See accounts, workspace access and troubleshooting.

Available tools

4 tools.

ToolAccessPurpose
gtm_list_containersReadList all GTM accounts and containers accessible to the connected Google account
gtm_list_entitiesReadList GTM tags, triggers, and variables with writable paths and fingerprints for updates
gtm_auditReadAudit a GTM container: tag health, duplicate conversions, unused triggers and variables, and tags without consent settings
gtm_manageWriteCreate workspaces, manage versions, and inspect tag configurations within a container

Write tools can change account settings, campaigns or workspace content. Confirm the target and proposed changes before running them.

Using these tools

Start by asking which accounts are connected. Then request a read-only report or inspection for one account before making a change.

API capabilities

Available fields and combinations depend on the resource, account and campaign type. Adapt the examples to your selected account.

Metrics

CategoryFields
Container Healthtag_count, trigger_count, variable_count, workspace_count

Dimensions

CategoryFields
Containeraccount_id, container_id, workspace_id, tag_type, trigger_type

Query examples

List All Containers

List all GTM accounts and containers linked to your Google account

Tool: gtm_list_containers.

{
  "include_container_details": true
}

Full Container Audit

Run an audit that checks for duplicate conversions, unused tags and tags without consent settings

Tool: gtm_audit.

{
  "account_id": "123456",
  "container_id": "GTM-XXXXXX",
  "checks": ["duplicates", "unused", "consent", "health"]
}

Create Workspace

Create a new workspace for making tag changes without affecting the live container

Tool: gtm_manage.

{
  "account_id": "123456",
  "container_id": "GTM-XXXXXX",
  "action": "create_workspace",
  "name": "Q1 Conversion Tracking Updates"
}

Technical reference

API endpoint: tagmanager.googleapis.com/tagmanager/v2. Status: stable.

Tag Manager API v2 provides access to accounts, containers, workspaces, tags, triggers, and variables.

Rate limits

LimitScopeNotes
10 req/s per userTag Manager APIStandard Google API quota, rarely reached in normal usage
100,000 req/dayTag Manager APIDaily quota per project, sufficient for most audit workflows

Limitations and notes

  • Read and manage access require Tag Manager API enabled in Google Cloud Console
  • Publishing changes requires Editor or Publisher role on the container
  • Server-side GTM containers require separate account setup
  • Historical version data limited to the last 200 published versions

Other platforms and tools

All tools · Quickstart

Cookies on this site

We use analytics cookies to see how the site is used. They load only if you accept, and you can change your choice at any time. Read our privacy policy.