integrations tools google-tag-manager
Google Tag Manager MCP for your AI agent
Cogny's Google Tag Manager integration exposes 37 tools (20 read, 12 write, 5 destructive) to an AI agent over MCP. The same tools are available on every plan, from your own AI client or inside the Cogny app.
- 20readonly reads data.
- 12writecreates or changes something.
- 5destructivedeletes, removes or replaces something.
Over MCP your own AI client asks before it runs a write. To take a tool away from your agent, block it in Settings → Integrations. Plans, approvals and limits
set it up.
Add Cogny to your AI client once, then connect Google Tag Manager in Cogny. Every Google Tag Manager tool below appears in the client.
- Claude CodeRun
claude mcp add --transport http cogny https://app.cogny.com/mcp, then authorise in the browser. - Claude.aiSettings → Connectors → Add custom connector, URL
https://app.cogny.com/mcp, then log in and pick your workspace. - ChatGPTSettings → Apps → Advanced settings → Developer mode → Create app, URL
https://app.cogny.com/mcp, authentication OAuth. - CursorIn Cogny, Settings → Data & Integrations → Connect AI Clients shows the block to paste into
.mcp.json, with an API key. - CodexRun
codex mcp add cogny --url https://app.cogny.com/mcp.
what each tool does.
Read 20 · only reads data
tool_list_accountsReadList the Google Tag Manager accounts this workspace can use.tool_get_accountReadGet one Google Tag Manager account's details.tool_list_containersReadList the containers in a Google Tag Manager account.tool_get_containerReadGet one container's details: name, public id, usage and domains.tool_get_container_snippetReadGet the GTM install snippet (the HTML/JavaScript to paste into the site's pages).tool_list_workspacesReadList the workspaces (drafts) in a container, with their numeric workspaceId.tool_get_workspaceReadGet one workspace's details.tool_get_workspace_statusReadShow a workspace's unpublished changes and what is live on the site.tool_get_live_versionReadShow the container version that is live on the website.tool_list_versionsReadList a container's versions, newest first, marking the live one.tool_list_tagsReadList the tags in a workspace with the triggers that fire them.tool_get_tagReadGet one tag's full configuration, with its trigger names resolved.tool_search_tagsReadFind tags by name, type, vendor or text inside their Custom HTML.tool_list_triggersReadList the triggers in a workspace and the tags each one fires.tool_get_triggerReadGet one trigger's full configuration.tool_list_variablesReadList the user-defined variables in a workspace.tool_list_built_in_variablesReadList the built-in variables enabled in a workspace, such as {{Page Path}} and {{Event}}.tool_get_variableReadGet one user-defined variable's full configuration, with lastModified as an ISO date.tool_audit_container_privacyReadAudit a container for privacy and GDPR risks in one call.tool_audit_container_healthReadAudit a container's setup in one call: what is broken, stale or doubled.
Write 12 · creates or changes something
tool_create_tagWriteCreate a tag in a Google Tag Manager workspace.tool_update_tagWriteChange a tag in a Google Tag Manager workspace.tool_create_triggerWriteCreate a trigger in a Google Tag Manager workspace.tool_update_triggerWriteChange a trigger in a Google Tag Manager workspace.tool_create_variableWriteCreate a variable in a Google Tag Manager workspace.tool_update_variableWriteChange a variable in a Google Tag Manager workspace.tool_create_containerWriteCreate a container in a Google Tag Manager account.tool_update_containerWriteChange a container's settings, such as its name or domains.tool_create_workspaceWriteCreate a workspace (a separate draft) in a container.tool_update_workspaceWriteRename a workspace or change its description.tool_create_versionWriteTurn a workspace's changes into a container version, ready to publish.tool_publish_versionWritePublish a container version to the live website.
Destructive 5 · deletes, removes or replaces something
tool_delete_tagDestructiveDelete a tag from a Google Tag Manager workspace.tool_delete_triggerDestructiveDelete a trigger from a Google Tag Manager workspace.tool_delete_variableDestructiveDelete a variable from a Google Tag Manager workspace.tool_delete_containerDestructiveDelete a whole container, its tags and its versions.tool_delete_workspaceDestructiveDelete a workspace and every unpublished change in it.
Exact input schemas come from tools/list once Google Tag Manager is connected; the free plan is enough to check. Missing something? Your agent can ask for it with request_feature.
This page as markdownAll integrationsHow Cogny uses Google Tag Manager