gtm_get_entity
Retrieve a full Google Tag Manager entity with its parameter tree to use as a reference before creating new tags or triggers, ensuring correct parameter shapes.
Instructions
Fetch one entity in full, including its parameter tree.
Read a working entity of the same type before creating a new one -- tag and trigger parameter shapes are strict and mirroring a known-good example is far more reliable than guessing.
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_type": "<entity_type>",
"entity_id": "<entity_id>"
},
"name": "gtm_get_entity"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| entity_id | Yes | ||
| account_id | No | ||
| entity_type | Yes | ||
| container_id | No | ||
| workspace_id | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |