gtm_create_tag
Create a GTM tag by supplying the full tag resource as JSON along with account, container, and workspace IDs for precise deployment.
Instructions
Create a tag. tag_json is the full GTM Tag resource as a JSON string, e.g. {"name":"GA4 Config","type":"gaawc","parameter":[...], "firingTriggerId":["2147479553"]}.
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": {
"account_id": "<account_id>",
"container_id": "<container_id>",
"workspace_id": "<workspace_id>",
"tag_json": "<tag_json>"
},
"name": "gtm_create_tag"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tag_json | Yes | ||
| account_id | Yes | ||
| container_id | Yes | ||
| workspace_id | Yes |