Skip to main content
Glama
mharnett

mcp-gtm-ga4

by mharnett

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
GTM_ACCOUNT_IDYesGTM account ID
GA4_PROPERTY_IDYesGA4 property ID
MCP_SERVER_NAMENoServer name (defaults to package name mcp-gtm-ga4)
GTM_CONTAINER_IDYesGTM container ID
GTM_SANDBOX_WORKSPACE_IDNoOverride workspace ID (auto-detects Default Workspace if omitted)
GOOGLE_APPLICATION_CREDENTIALSYesPath to a GCP service account JSON key file

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

This server publishes no instructions, or was last inspected before Glama recorded them.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
gtm_get_client_contextA

Health check and status overview. Returns GTM container path, workspace ID, GA4 property ID, and server version. Use this to verify connectivity.

gtm_list_tagsA

List all tags in the sandbox GTM workspace with name, type, consent status, and firing triggers.

gtm_get_tagA

Get full details of a single tag by ID from the sandbox workspace.

gtm_list_triggersA

List all triggers in the sandbox GTM workspace.

gtm_list_variablesA

List all variables in the sandbox GTM workspace.

gtm_get_variableA

Get full details of a single variable by ID from the sandbox workspace.

gtm_audit_consentA

Scan all tags in the sandbox workspace and report consent compliance. Returns tags with no consent, NOT_NEEDED tags, properly configured tags, and recommendations.

gtm_previewA

Generate a GTM Preview URL for the sandbox workspace.

gtm_ga4_run_reportB

Query GA4 historical report for the property linked to this GTM container.

gtm_ga4_realtime_reportA

Query GA4 Realtime Report (last 30 minutes) for the property linked to this GTM container.

gtm_ga4_list_custom_dimensionsA

List all registered custom dimensions for the GA4 property linked to this GTM container.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

A3.9/5.0

Scored across 11 tools

Disambiguation5/5

Each tool targets a distinct GTM or GA4 resource/action: list/get operations are clearly separated by resource type, audit/consent and preview have unique purposes, and the two GA4 report tools are differentiated by live vs. historical data. No two tools appear to do the same thing.

Naming Consistency4/5

Most tools consistently follow the gtm_<verb>_<object> pattern, with list and get verbs used predictably across resources. Minor deviations like gtm_get_client_context and gtm_preview, plus gtm_ga4_run_report vs. gtm_ga4_realtime_report, introduce slight inconsistency but the overall convention remains readable.

Tool Count5/5

11 tools is a well-scoped size for a GTM/GA4 server covering listing, retrieval, auditing, preview, and reporting. Each tool has a clear purpose and the count does not feel bloated or insufficient.

Completeness4/5

The set covers the main read-only workflows for GTM inspection, consent auditing, preview URL generation, and GA4 reporting. Missing pieces like a get_trigger operation and write/management operations are minor relative to the apparent read-only/audit-focused intent.

Maintenance

ActivityMaintained
ResponsivenessNo issues