Skip to main content
Glama
kb223

gtm-ga4-mcp

by kb223

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
GTM_GA4_MCP_DENYNoComma-separated list of tool names to disable, e.g., 'gtm_get,ga4_run_report'. Equivalent to passing --deny for each listed tool.
GTM_GA4_MCP_ALLOW_WRITENoSet to '1' to enable the write tier tools (gtm_create, gtm_update, ga4_admin_create, ga4_admin_update). Equivalent to passing --allow-write.0
GTM_GA4_MCP_ALLOW_DESTRUCTIVENoSet to '1' to enable the destructive tier tools (gtm_delete, gtm_publish, gtm_permissions, ga4_admin_delete). Equivalent to passing --allow-destructive.0

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
{
  "listChanged": false
}
prompts
{
  "listChanged": false
}
resources
{
  "subscribe": false,
  "listChanged": false
}
experimental
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
ga4_account_summariesA

List every GA4 account and property the authenticated user can access.

This is the entry point for all GA4 work — it returns the property IDs the other ga4_* tools need.

ga4_admin_listA

List a GA4 property's sub-entities.

Covers data streams, key events, custom dimensions/metrics, Google Ads links, and Firebase links.

ga4_metadataA

List the dimension/metric API names available on a property (standard + custom).

Use this before ga4_run_report to find exact API names.

ga4_property_getA

Fetch one GA4 property's full configuration (timezone, currency, industry, service level).

ga4_run_realtime_reportA

Run a GA4 realtime report (last 30 minutes) — e.g. to verify events are firing now.

ga4_run_reportA

Run a GA4 report over a date range and return one dict per row.

Rows are keyed by the requested dimension/metric API names. row_count is the total available on the server; raise limit or refine dimensions if rows were truncated.

gtm_getA

Fetch one GTM entity's complete JSON by its path (tag, trigger, variable, version, ...).

Note: fetching a version returns the entire published container (large).

gtm_listA

List Google Tag Manager entities one hierarchy level at a time.

Returns trimmed summaries (path, name, type, IDs) to keep context small; each item's path feeds gtm_get (full detail) or a deeper gtm_list call.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/kb223/gtm-ga4-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server