Skip to main content
Glama
burhan29ee

google-analytics-gtm-mcp

by burhan29ee

create_measurement_protocol_secret

Create a Measurement Protocol API secret for a GA4 data stream and retrieve the api_secret needed to send events via the Measurement Protocol.

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
Behavior4/5

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

With no annotations, the description carries the burden of behavioral disclosure. It explicitly states that the tool returns a secret_value (api_secret) and warns to treat it as sensitive. This adds value beyond the basic create action, though it doesn't discuss other side effects 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 two sentences, front-loaded with the primary action, and includes essential return-value and security notes. Every word earns its place with no redundancy.

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 covers the core purpose, return value, and sensitivity, but lacks parameter explanations and return format details beyond the secret_value field. Given no output schema and no annotations, it is only partially complete for a create operation with three required parameters.

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?

The input schema has 3 parameters with 0% description coverage, so the description must compensate. It does not explain what property_id, stream_id, or display_name mean, nor their relationships. The phrase 'on a data stream' indirectly relates to stream_id, but no concrete parameter guidance is given.

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 a Measurement Protocol API secret on a data stream') with a specific verb and resource, and distinguishes this from sibling tools like list_measurement_protocol_secrets and delete_measurement_protocol_secret. It also mentions the connection to send_ga4_event, further clarifying its unique role.

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 implies the use case: creating a secret needed by send_ga4_event. It provides context about when to use it (before sending GA4 events) but does not explicitly mention alternatives or when not to use it. The mention of send_ga4_event gives practical usage guidance beyond just 'create'.

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