Create Transformation
create_transformationCreate a transformation in a Google Tag Manager workspace to modify data in server containers, solving the need for server-side configuration while avoiding web container limitations.
Instructions
Create a transformation in a workspace.
Only server containers accept transformations. Creating one in a web container fails.
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>",
"transformation": "<transformation>"
},
"name": "create_transformation"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| account_id | Yes | Numeric Tag Manager account ID. | |
| container_id | Yes | Numeric container ID. | |
| workspace_id | Yes | Numeric workspace ID. | |
| transformation | Yes | Transformation resource. Requires name and type, e.g. {"name": "Redact email", "type": "sgtmTransformation", "parameter": [...]}. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||