Tag Manager trigger details
get_gtm_triggerFetch a GTM trigger's full raw config—filters, validation, and every tag using it—to diagnose why a tag fires or not. Reads live or draft workspace state.
Instructions
Get the full RAW configuration for a single GTM trigger.
Includes filters, auto-event filters, custom-event filters, validation settings, and a list of every tag that uses this trigger. Helps diagnose why a tag with a specific trigger ID does or doesn't fire. An unknown trigger_id returns an error with the available trigger IDs. Reads the live container, or a workspace's unpublished state when workspace_id is set.
Tag Manager API: https://developers.google.com/tag-platform/tag-manager/api/v2
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": {
"trigger_id": "<trigger_id>"
},
"name": "get_gtm_trigger"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| trigger_id | Yes | Numeric GTM trigger ID, as listed by list_gtm_triggers or a tag's firing/blocking triggers. | |
| workspace_id | No | Workspace to read (see list_gtm_workspaces), which includes drafted changes that are not published yet. Empty reads the live (published) container version. | |
| gtm_account_id | No | Numeric GTM account ID (see list_gtm_accounts). Empty uses gtm.account_id from the config. | |
| gtm_container_id | No | Numeric GTM container ID (see list_gtm_containers). Empty uses gtm.container_id from the config. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||