Skip to main content
Glama
burhan29ee

ga4-mcp-server

by burhan29ee

send_ga4_event

Send an event to Google Analytics 4 using the Measurement Protocol. Validate payloads with GA4's debug endpoint before sending.

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?

With no annotations provided, the description carries the full burden of disclosure. It adds useful behavioral details such as the debug/validation endpoint behavior when validate=True ('checks the payload WITHOUT ingesting it') and clarifies the meaning of measurement_id and client_id. It stops short of discussing authentication requirements or potential failure modes, but the disclosed behaviors are meaningful.

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 three sentences long, front-loaded with the core action, and uses compact, precise language. Every sentence adds value, from the main purpose to the parameter clarifications to the validation tip, with no redundancy.

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 tool with no output schema and no annotations, the description covers the essential operational context: what the tool does, how to identify the stream, how to authenticate, and how to use validation mode. It does not describe the response format or error handling, but for a simple send operation this is a minor gap.

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

Parameters3/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 leaves event_name and params largely undocumented. While event_name is self-explanatory, the params object (for additional event parameters) would benefit from explanation, making the compensation partial.

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 tool's function: 'Send an event into a GA4 property via the Measurement Protocol.' This specifies the verb ('send'), the resource ('event into a GA4 property'), and the method ('Measurement Protocol'), which distinguishes it from sibling tools like run_report or list_data_streams.

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 provides clear usage context by explaining the role of each key parameter and recommending validate=True before real sends. However, it does not explicitly mention when not to use this tool or offer alternatives, though the context makes it apparent this is for event ingestion rather than reporting or admin tasks.

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/ga4-mcp-server'

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