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.
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.
| Tool | Access | Purpose |
|---|---|---|
gtm_list_containers | Read | List all GTM accounts and containers accessible to the connected Google account |
gtm_list_entities | Read | List GTM tags, triggers, and variables with writable paths and fingerprints for updates |
gtm_audit | Read | Audit a GTM container: tag health, duplicate conversions, unused triggers and variables, and tags without consent settings |
gtm_manage | Write | Create 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
| Category | Fields |
|---|---|
| Container Health | tag_count, trigger_count, variable_count, workspace_count |
Dimensions
| Category | Fields |
|---|---|
| Container | account_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
| Limit | Scope | Notes |
|---|---|---|
| 10 req/s per user | Tag Manager API | Standard Google API quota, rarely reached in normal usage |
| 100,000 req/day | Tag Manager API | Daily 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
