mcp-gtm-ga4
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| GTM_ACCOUNT_ID | Yes | GTM account ID | |
| GA4_PROPERTY_ID | Yes | GA4 property ID | |
| MCP_SERVER_NAME | No | Server name (defaults to package name mcp-gtm-ga4) | |
| GTM_CONTAINER_ID | Yes | GTM container ID | |
| GTM_SANDBOX_WORKSPACE_ID | No | Override workspace ID (auto-detects Default Workspace if omitted) | |
| GOOGLE_APPLICATION_CREDENTIALS | Yes | Path 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
| Capability | Details |
|---|---|
| tools | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| 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
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 11 tools
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.
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.
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.
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.