environments_reauthorize
Re-authorize a Google Tag Manager environment by generating a new authorization code. Requires explicit confirmation and rotates the auth token, invalidating the previous one.
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 |
|---|---|---|---|
| accountId | Yes | The GTM account ID. | |
| containerId | Yes | The GTM container ID. | |
| environmentId | Yes | The GTM environment ID to reauthorize. | |
| confirm | Yes | Must be true to confirm this high-impact operation. |