Google Tag Manager scriptable from Bash.
Walk the account → container → workspace tree, list and search tags, triggers, and variables, run a GDPR privacy audit, and create or publish container versions — all from the shell over the Google Tag Manager MCP. No GTM UI clicking, no API client.
cogny --who
TWO PATHSAuditing a container today means clicking through every tag, trigger, and variable in the GTM UI to find what fires where and whether consent is wired up. The CLI returns the whole workspace as JSON so you (or an agent) can diff it, grep it, and publish a versioned change. Connect Google Tag Manager once in Cogny Solo and let your coding agent — or scheduled reports — do the querying for you.
❯ start SoloSelf-onboard with one command. The CLI issues a key, wires nothing, and exposes every Google Tag Manager tool over JSON-RPC. First 15 calls are free.
$ npx @cogny/cli init --agent claude-codecogny tools call
3 EXAMPLESReal tool names from the Google Tag Manager MCP. Send --input JSON, get JSON back.
mcp__Google_Tag_Manager__tool_list_tagsList every tag in a workspace with its type and firing triggers.mcp__Google_Tag_Manager__tool_audit_container_privacyFlag tracking tags, cookie variables, and missing consent triggers.mcp__Google_Tag_Manager__tool_create_versionSnapshot the workspace into a publishable container version.cogny tools list
MOREA sample of the rest of the Google Tag Manager surface. Run cogny tools list --json for every tool and its input schema.
mcp__Google_Tag_Manager__tool_list_accountsmcp__Google_Tag_Manager__tool_list_containersmcp__Google_Tag_Manager__tool_get_container_snippetmcp__Google_Tag_Manager__tool_list_triggersmcp__Google_Tag_Manager__tool_list_variablesmcp__Google_Tag_Manager__tool_search_tagsmcp__Google_Tag_Manager__tool_create_tagmcp__Google_Tag_Manager__tool_create_triggermcp__Google_Tag_Manager__tool_publish_versioncogny --faq
No — it is the Cogny CLI calling the Google Tag Manager MCP over the cogny-mcp-proxy. You connect Google once in Cogny and then read or edit containers from Bash with no tagmanager API client to wire up.
Both. Read tools list accounts, containers, workspaces, tags, triggers, and variables. Write tools create/update/delete tags, triggers, and variables, then tool_create_version snapshots the workspace and tool_publish_version makes it live (subject to the connected account’s GTM publish permission and OAuth scope).
tool_audit_container_privacy scans a workspace for third-party tracking tags, cookie variables, and tags firing without a consent trigger, and returns recommendations — a fast first pass before a manual review.
related CLIs
Building an agent? The full tool map for all servers is one fetch: /cli/llms.txt