Skip to main content
Glama
burhan29ee

ga4-mcp-server

by burhan29ee

create_measurement_protocol_secret

Create a Measurement Protocol API secret for a GA4 data stream to get the api_secret needed for sending events. Returns the secret value; treat it as sensitive.

Instructions

Create a Measurement Protocol API secret on a data stream. Returns the secret_value (api_secret) needed by send_ga4_event. Treat it as sensitive.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
stream_idYes
property_idYes
display_nameYes
Behavior3/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 behavioral disclosure. It adds a security warning ('Treat it as sensitive') and states the return value, which is useful. However, it does not disclose side effects such as whether creating a new secret invalidates existing ones, or whether permissions are required. This is moderate transparency for a create operation.

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 two sentences long, front-loaded with the primary purpose, followed by return value and a security note. Every sentence earns its place with no redundancy or filler.

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

Completeness3/5

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

The description adequately covers the core purpose and return value, which is important because there is no output schema. However, it omits input parameter semantics, and there are no annotations to provide safety or usage context. For a tool with three required parameters and zero schema description coverage, the description is not fully complete, though it is better than a one-line stub.

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

Parameters2/5

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

Schema description coverage is 0%, and the description does not explain any of the three parameters (property_id, stream_id, display_name). It only vaguely references 'a data stream' which maps to stream_id. The description adds minimal value over the raw schema, failing to compensate for the lack of parameter documentation.

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 action ('Create'), the resource ('Measurement Protocol API secret'), and the scope ('on a data stream'). It also distinguishes itself from sibling tools like list_measurement_protocol_secrets and delete_measurement_protocol_secret by explicitly focusing on creation and the returned secret_value.

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 stating that the returned secret_value is 'needed by send_ga4_event', implying this tool is a prerequisite for sending events. It does not explicitly mention alternatives or when-not-to-use, but the sibling tool names list_measurement_protocol_secrets and delete_measurement_protocol_secret make the management workflow obvious.

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