Skip to main content
Glama
surendranb

Google Analytics MCP Server

by surendranb

setup_ga4_access

Read-onlyIdempotent

Fix a broken Google Analytics 4 (GA4) setup by requesting missing configuration details from the user and re-initializing the connection.

Instructions

Interactively fix a broken GA4 MCP setup (missing property ID, missing or expired credentials, or missing GA4 access) by asking the user for the needed input through the client, then re-initializing without a restart. Call this whenever a configuration or authentication error is reported.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Install Server

TDQS

A4.1/5.0
Behavior3/5

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

Annotations include readOnlyHint=true, openWorldHint=true, idempotentHint=true, which align with the description's interactive and re-initializing nature. The description adds context that it interacts with the user and re-initializes without a restart, which goes beyond annotations, but doesn't disclose potential side effects or details of the interaction.

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?

Compact, two-sentence description. Immediate front-loaded purpose, followed by actionable trigger condition. No filler.

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?

Given zero parameters and a true output schema, the description is sufficient. It explains the interactive process, trigger conditions, and that it re-initializes without restart. Could detail the exact steps or user prompts, but openWorldHint suggests flexible behavior; completeness is adequate.

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?

The tool has zero parameters, and the description explains it works by asking the user for needed input through the client. This adds value by clarifying that no schema parameters are needed and the tool handles collection dynamically.

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's purpose: to fix a broken GA4 MCP setup by asking for missing inputs and re-initializing. It distinguishes itself from data retrieval tools by focusing on configuration/auth errors, but doesn't explicitly name a sibling alternative.

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

Usage Guidelines5/5

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

Explicitly directs when to use: 'Call this whenever a configuration or authentication error is reported.' This is clear guidance and context, though it doesn't discuss when not to use, but the trigger condition is enough for typical use.

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

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

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