gtag_config_update
Updates an existing Google Tag Manager gtag configuration using a full JSON resource, with write access enabled and per-call confirmation required.
Instructions
[WRITE] Update an existing GTM gtag config. Requires GTM_MCP_ENABLE_WRITES=true and confirm=true. Pass the full resource as a JSON string in bodyJson.
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>",
"gtagConfigId": "<gtagConfigId>",
"bodyJson": "<bodyJson>",
"confirm": "<confirm>"
},
"name": "gtag_config_update"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| confirm | Yes | Must be true to confirm this write operation. | |
| bodyJson | Yes | Full gtag configs resource as a JSON string. | |
| accountId | Yes | The GTM account ID. | |
| containerId | Yes | The GTM container ID. | |
| fingerprint | No | Current fingerprint (for optimistic locking). | |
| workspaceId | Yes | The GTM workspace ID. | |
| gtagConfigId | Yes | The gtag configs ID to update. |