Gtm Tag
gtm_tagCreate, update, list, and delete Google Tag Manager tags in a workspace. Retrieve existing tags or revert changes to keep tag configurations accurate.
Instructions
Manage GTM tags within a workspace.
Actions:
list: parent="accounts/{a}/containers/{c}/workspaces/{w}".
get: path="/tags/{tagId}".
create: parent=, config={tag definition}.
update: path="/tags/{tagId}", config={...}.
remove: path="/tags/{tagId}", confirm=true. (destructive)
revert: path="/tags/{tagId}", confirm=true. (destructive)
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": {
"action": "<action>"
},
"name": "gtm_tag"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | ||
| action | Yes | ||
| config | No | ||
| params | No | ||
| parent | No | ||
| confirm | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||