Skip to main content
Glama
mcp-google-analytics

mcp-google-analytics

Authorize Google Analytics

ga_auth_login

Starts the Google Analytics OAuth consent flow and returns a URL to open; access is saved automatically after approval. Check authentication status afterward to confirm.

Instructions

Starts the OAuth consent flow. Returns a URL the user must open; the token is saved automatically once access is granted. Call ga_auth_status afterwards to confirm.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "ga_auth_login"
  }
}

Input Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.4/5.0
Behavior4/5

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

With only openWorldHint in the annotations, the description carries real weight and delivers: it discloses that the call does not complete auth by itself, returns a URL the user must open, and that the token is persisted automatically without a second call. It omits scope/credential prerequisites and token lifetime, which for an auth tool are the remaining unknowns.

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?

Three short sentences, front-loaded with the action and then the required user handoff. Every sentence adds a distinct fact — action, return value, follow-up — with no repetition of the title or name.

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 zero-param, no-output-schema tool, the description covers the essentials: what starts, what comes back, and how to verify. It leaves out what happens when credentials are missing or a token already exists, which is a meaningful gap for an auth flow but not disqualifying.

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?

Zero parameters, so there is no schema semantics to supplement; baseline 4 applies. The description correctly signals the call takes no arguments and instead hands back a URL, which is the relevant 'parameter' behavior here.

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?

States a specific verb and resource — 'Starts the OAuth consent flow' — and names the follow-up sibling tool ga_auth_status, which separates it from the reporting/property-management siblings in the same namespace. An agent can tell instantly this is the authentication entry point rather than a data operation.

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?

Gives clear sequencing guidance: call this to begin, then 'Call ga_auth_status afterwards to confirm.' It does not say what to do if a token already exists (whether calling again invalidates or refreshes it), so the exclusions side is only implicit.

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