environments_reauthorize
Reauthorize a Google Tag Manager environment by rotating its authorization token. Old tokens become invalid, requiring snippet updates.
Instructions
[PUBLISH] Re-generate the authorization code for a GTM environment. Requires GTM_MCP_ENABLE_PUBLISH=true and confirm=true. ⚠️ This rotates the environment auth token; any embedded snippet using the old token stops working until updated.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| confirm | Yes | Must be true to confirm this high-impact operation. | |
| accountId | Yes | The GTM account ID. | |
| containerId | Yes | The GTM container ID. | |
| environmentId | Yes | The GTM environment ID to reauthorize. |