Skip to main content
Glama
burhan29ee

google-analytics-gtm-mcp

by burhan29ee

send_ga4_event

Send custom events to Google Analytics 4 via the Measurement Protocol. Use debug validation to verify payloads before actual ingestion.

Instructions

Send an event into a GA4 property via the Measurement Protocol. measurement_id is the stream's 'G-XXXXXXX'; api_secret comes from a Measurement Protocol secret; client_id identifies the user/device. Set validate=True to hit GA4's debug/validation endpoint (checks the payload WITHOUT ingesting it) — recommended before real sends.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
paramsNo
validateNo
client_idYes
api_secretYes
event_nameYes
measurement_idYes
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations are provided, so the description carries the full burden of behavioral disclosure. It explains the validate=True behavior (hits debug endpoint, checks WITHOUT ingesting) and clarifies the source of api_secret and measurement_id. This goes beyond a simple 'send' statement, though it does not detail success/failure responses or permissions.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is only two sentences long, front-loaded with the primary action. Every sentence earns its place: the first states the core behavior, the second adds essential validation guidance without verbosity.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a send/action tool with no output schema and no annotations, the description covers the key workflow and parameter sources. It lacks a note on return values or errors, but for a fire-and-forget send operation, the guidance provided is largely sufficient. The unexplained event_name and params are minor gaps.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the description must compensate. It explains measurement_id, api_secret, client_id, and validate, but omits event_name and params. However, the explained parameters include format and source details (e.g., 'G-XXXXXXX', 'from a Measurement Protocol secret'), adding meaningful semantics beyond the schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the verb ('Send') and resource ('an event into a GA4 property') via the Measurement Protocol. It is specific enough to distinguish this tool from sibling tools, which focus on listings, reports, or GTM operations.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description gives clear context for using the tool and provides practical guidance on the validate flag, recommending it for testing before real sends. It does not explicitly list alternatives or exclusions, but the context is sufficient given the uniqueness of the tool among siblings.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

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/burhan29ee/google-analytics-gtm-mcp'

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