Skip to main content
Glama

ga4_test_connection

Check that a saved property's credentials can read its GA4 data: returns active users and events for the last 7 days, or the API error.

Instructions

Check that a saved property's credentials can read its GA4 data: returns active users and events for the last 7 days, or the API error. Requires: Google Analytics Data API (analyticsdata.googleapis.com) enabled on the quota project; Lector (Viewer) en la propiedad de GA4. If it fails for access, the error explains how to fix it; ga4_check_access checks everything at once.

Input Schema

NameRequiredDescriptionDefault
propertyNoSaved property name; defaults to the default property

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.1.0

TDQS

A4.1/5.0
Behavior4/5

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

With no annotations provided, the description carries the burden well: it discloses prerequisites (analyticsdata.googleapis.com enabled on the quota project, Viewer role on the property), what the response contains, and that access failures return an explanatory error. It does not mention quotas, rate limits, or whether any state is written, leaving minor gaps for a diagnostic tool.

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?

The core purpose and return values are front-loaded in the first clause, and every sentence carries information. It is a dense run-on using semicolons, and the mixed-language fragment 'Lector (Viewer) en la propiedad de GA4' slightly hurts readability.

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?

With no output schema and no annotations, the description still covers return values, prerequisites, failure behavior, and the sibling alternative. The only omission is any note on latency, quota consumption, or whether the returned metrics are sampled, which is minor for a connectivity test.

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 description coverage is 100% and the single parameter is already documented as 'Saved property name; defaults to the default property'. The description adds no further meaning about accepted names, formats, or how the default is resolved, so it meets the baseline only.

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: verifying that a saved property's credentials can read its GA4 data, with concrete evidence returned (active users and events for the last 7 days, or the API error). It also names the sibling ga4_check_access and contrasts scope, so an agent can distinguish it without opening 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 Guidelines4/5

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

It implies the usage context (validate a saved property before relying on it) and points to ga4_check_access as the broader alternative, which is clear routing guidance. It stops short of an explicit 'use this instead of X when Y' rule or stating when not to use it.

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