Explains how to operate the GTM MCP Server, including ID discovery, tool input formats, and safety guards. Use when GTM tools are available or a tool rejects JSON input.
Ships in gtm-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
How to drive the tools. For what to do with them, use the matching skill:
| Task | Skill |
|---|---|
| Review or score a container | gtm-container-audit |
| Add, change, delete, publish, roll back | gtm-safe-edit |
| Tracking plan, data layer spec | gtm-tracking-plan |
| GA4 and consent mode | gtm-ga4-consent |
| Server containers | gtm-server-side |
Without an MCP server, use the gtm-cli command-line tool and its skill of the
same name.
If those skills are not installed, read the server's best-practices resources.
Account > Container > Workspace > entities. Never guess an ID:
list_accounts > list_containers > list_workspaces
Changes happen in a workspace. Nothing is live until a version is published.
get_tag_templates or get_trigger_templates for the parameter format.create_tag takes
firingTriggerIds, an array of trigger ID strings.gaawe: measurementId is an empty tagReference and
the value goes in measurementIdOverride.googtag with a tagId template parameter.customEventFilterJson. Click and form triggers
take autoEventFilterJson; the server moves those conditions to filter,
because the GTM API drops them otherwise.create_trigger cannot set trigger group members. Create the triggerGroup,
then set them with update_trigger and parameterJson.Deletes, publishing, disabling built-in variables and several admin operations
are rejected without confirm: true. The flag is not the user's approval: say
what will happen and get a yes first.
Publishing: get_workspace_status, resolve conflicts, create_version, then
publish_version.
The operator selects tool groups. Container, folder, workspace and version administration, reverts, environments, destinations and Google tag settings are off by default. If a tool is missing, say so instead of working around it.
| Prompt | Purpose |
|---|---|
audit_container | Load a workspace for an audit |
best_practices_review | Score a workspace against the rules |
plan_safe_edit | Plan a change |
generate_tracking_plan | Document a workspace |
suggest_ga4_setup | Recommend a GA4 structure from goals |
find_gallery_template | Find and import a Gallery template |
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
7 skills in this plugin
/gtm-cliOperates Google Tag Manager through the gtm-cli command-line tool, including authentication checks, ID discovery, JSON input files and safety rules. Use when a shell is available and GTM must be read or changed without an MCP server, or when a gtm-cli command fails./gtm-container-auditAudits a Google Tag Manager container and scores it against best practices. Use when asked to review, audit, clean up or health-check a GTM setup or a container export JSON./gtm-ga4-consentSets up and debugs GA4 and consent mode v2 in Google Tag Manager. Use when working on Google tags, GA4 events, cookie banners, consent checks, or duplicate or missing GA4 data./gtm-safe-editPlans and applies Google Tag Manager changes without breaking production. Use when adding, editing, deleting, publishing or rolling back GTM tags, triggers, variables or templates./gtm-server-sideReviews and configures server-side Google Tag Manager containers. Use when working on sGTM clients, server tags, transformations, PII redaction or first-party tagging domains./gtm-tracking-planWrites tracking plans and dataLayer specs for Google Tag Manager. Use when asked to document what a container tracks, plan events for measurement goals, or brief developers./gtm-skills:gtm-mcpfrom gtm-skills
npx claudepluginhub paolobietolini/gtm-mcp-server --plugin gtm-skillsOther plugins' skills for the same job