gtm_find_references
Find all tags, triggers, and variables that reference a given variable or trigger by name or ID. Use before deleting or renaming to prevent silent runtime failures.
Instructions
Find everything that references a variable or trigger, by name or id.
Run this before deleting or renaming. The API has no referential integrity: deleting a trigger a tag still fires on, or renaming a variable another entity interpolates as {{Name}}, breaks silently at runtime.
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": {
"entity_name": "<entity_name>"
},
"name": "gtm_find_references"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| account_id | No | ||
| entity_name | Yes | ||
| container_id | No | ||
| workspace_id | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |