Tag Manager tag details
get_gtm_tagRetrieve the full raw configuration of a single Google Tag Manager tag, including triggers, parameters, priority, and pause status, to inspect or debug a flagged tag.
Instructions
Get the full RAW configuration for a single GTM tag.
Includes every parameter, firing/blocking triggers (with their filter conditions resolved to text), priority, pause status, sampling, and monitoring metadata. Suited to inspecting a tag flagged by audit_event_coverage. An unknown tag_id returns an error with the available tag 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": {
"tag_id": "<tag_id>"
},
"name": "get_gtm_tag"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tag_id | Yes | Numeric GTM tag ID, as listed by list_gtm_tags. | |
| 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 | |||