create_server_tag
Creates a native Google tag in a GTM server container workspace for GA4 event relay, Ads conversion, Conversion Linker, or remarketing, and assigns server firing triggers.
Instructions
[WRITE] Create a NATIVE Google server tag in a SERVER container workspace, built with the correct shape: platform "ga4" = the GA4 relay (sgtmgaaw; omit eventName to relay every incoming event, pass one for a per-event tag; optional eventParameters / userProperties enrichment rows), "ads_conversion" = Google Ads conversion (sgtmadsct; conversionId + conversionLabel), "ads_conversion_linker" = the server Conversion Linker (sgtmadscl), "ads_remarketing" = Google Ads remarketing (sgtmadsremarket; conversionId). Pass the SERVER trigger id(s) as firingTriggerId. Requires GTM_MCP_ENABLE_WRITES=true and confirm=true.
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": {
"accountId": "<accountId>",
"containerId": "<containerId>",
"workspaceId": "<workspaceId>",
"name": "<name>",
"platform": "<platform>",
"confirm": "<confirm>"
},
"name": "create_server_tag"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Tag name. | |
| confirm | Yes | Must be true to confirm this write operation. | |
| platform | Yes | ||
| accountId | Yes | GTM account ID. | |
| eventName | No | For ga4: a literal event name for a per-event tag; omit to relay every event. | |
| containerId | Yes | The SERVER container ID (for the plan tool: the WEB container). | |
| workspaceId | Yes | Workspace ID. | |
| conversionId | No | For ads_conversion / ads_remarketing: the Ads Conversion ID (AW- prefix is stripped). | |
| measurementId | No | For ga4: the G- Measurement ID or a {{variable}}. | |
| userProperties | No | Override rows {name, value}; names are the template's own field keys. | |
| conversionLabel | No | For ads_conversion: the Conversion Label. | |
| eventParameters | No | Override rows {name, value}; names are the template's own field keys. | |
| firingTriggerId | No | SERVER trigger id(s) the tag fires on (triggers_create, type customEvent). Usually one. | |
| productReporting | No | For ads_conversion: enable product reporting (ecommerce only). |