Skip to main content
Glama
stucchi

Google Analytics 4 MCP Server

by stucchi

get_measurement_protocol_secret

Retrieve or create an API secret for server-side event tracking in Google Analytics 4.

Instructions

Get or create a Measurement Protocol API secret for server-side event tracking.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
stream_idYes
property_idYes
display_nameNoMCP Server

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior2/5

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

With no annotations, the description carries the full burden. It mentions 'get or create' but does not disclose behavioral traits like idempotency, authentication requirements, or what happens on conflict. The existence of an output schema somewhat compensates, but the description itself adds minimal behavioral context.

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 a single, concise sentence of 14 words, efficiently front-loading the core action. No wasted or redundant information.

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

Completeness2/5

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

Given the tool has 3 parameters, an output schema, and no annotations, the description is insufficient. It lacks parameter explanations, usage context, and guidance on when to apply. The output schema exists but is not referenced.

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

Parameters1/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 parameters (stream_id, property_id, display_name). The description adds no semantic value beyond the parameter names and types given in the schema.

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

Purpose4/5

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

The description clearly states the tool gets or creates a Measurement Protocol API secret for server-side event tracking. The verb-resource combination is specific, but the dual action ('get or create') introduces slight ambiguity. It distinguishes from sibling tools, none of which directly handle measurement protocol secrets.

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

Usage Guidelines2/5

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

No guidance on when to use this tool versus alternatives. Siblings include various data stream and property management tools, but no context is given for selecting this one.

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

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