Create tag (🟡 write)
gtm_create_tagCreate any Google Tag Manager tag in a workspace by specifying its type, parameters, and firing triggers. Preview changes with a dry run before applying.
Instructions
Create any tag type in the workspace. type is the GTM code (gaawe, googtag, html, awct, img, …; see gtm_list_tags
output of similar tags). parameters is a flat dict {key: value} — strings become template parameters, bools boolean,
ints integer, lists/dicts list/map (or pass raw GTM Parameter objects). Use trigger id 2147479553 for All Pages.
For GA4 event tags prefer gtm_create_ga4_event_tag. dry_run=true (default) previews only.
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": {
"container": "<container>",
"name": "<name>",
"type": "<type>",
"parameters": "<parameters>",
"firing_trigger_ids": "<firing_trigger_ids>"
},
"name": "gtm_create_tag"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| type | Yes | ||
| notes | No | ||
| paused | No | ||
| dry_run | No | ||
| container | Yes | ||
| parameters | Yes | ||
| workspace_id | No | ||
| tag_firing_option | No | ||
| firing_trigger_ids | Yes | ||
| blocking_trigger_ids | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||