Skip to main content
Glama
mcp-google-analytics

mcp-google-analytics

Verify data is flowing

site_verify_tracking

Verifies that a live page serves the GA4 gtag for a measurement ID and that realtime reports show events. Use it to confirm tracking works after onboarding or tag changes.

Instructions

Checks that the live page serves the gtag for the measurement ID and that GA4 realtime shows events. Pass siteName of an onboarded site, or propertyId + measurementId.

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": "site_verify_tracking"
  }
}

Input Schema

NameRequiredDescriptionDefault
siteUrlNo
siteNameNo
streamIdNo
propertyIdNo
waitSecondsNoPoll realtime up to this long.
measurementIdNo
sendTestEventNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.4/5.0
Behavior3/5

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

Annotations declare readOnlyHint=false and openWorldHint=true; the description is consistent with that by describing a live page fetch plus realtime polling, but it never explains what makes the call non-read-only (the sendTestEvent path) or what network/permission dependencies exist. It also omits the time cost implied by polling realtime, which the waitSeconds parameter exposes.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two short sentences with the core assertion front-loaded and the input alternatives second. No filler, though the input-mode sentence could name the exclusivity more explicitly.

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?

For a seven-parameter, zero-required, side-effecting verification tool with no output schema, the description says little about what a passing vs failing result looks like or how sendTestEvent and waitSeconds change behavior. It covers the happy path but leaves an agent guessing about result interpretation.

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

Parameters3/5

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

Schema coverage is only 14 percent (just waitSeconds), so the description has to compensate; it usefully explains the two mutually exclusive input modes (siteName alone vs propertyId + measurementId) that a flat optional schema cannot express. However siteUrl, streamId and sendTestEvent remain unexplained, and it does not say the interaction between siteName and the property/measurement pair.

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?

States a concrete verb and two concrete checks: the live page serving the gtag for the measurement ID, and GA4 realtime showing events. That distinguishes it from site_inject_tracking and the read-only ga_* tools without needing the schema.

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

Usage Guidelines3/5

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

Gives input-mode guidance (siteName of an onboarded site, or propertyId + measurementId) which implies it is a post-onboarding verification step, but never says when to prefer this over ga_realtime_report or ga_get_tracking_snippet, nor any prerequisites like auth state.

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