Skip to main content
Glama

ga4_audiences

Retrieve GA4 audiences and their membership rules for a property to inspect or troubleshoot audience definitions and access issues.

Instructions

Audiences defined in the property, with their membership rules. Requires: Google Analytics Admin API (analyticsadmin.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 (see ga4_list_properties). Defaults to the default property.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.1.0

TDQS

B3.1/5.0
Behavior3/5

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

With no annotations, the description carries the full burden, and it does disclose useful behavior: the required API enablement, the permission level, and that access failures return a self-explanatory error. It does not state that the operation is read-only, whether pagination applies, or what volume of audiences to expect. The prerequisite/error disclosure is substantive but the operational profile is incomplete.

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

Conciseness3/5

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

The purpose is front-loaded and the sentence count is small. The prerequisite block is a dense run-on mixing English and Spanish ("Lector (Viewer) en la propiedad de GA4"), which costs clarity at exactly the point the agent needs precision. It is compact but not cleanly structured.

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?

This is a one-parameter, no-annotation tool, and the description covers the resource returned, its scope, the access prerequisites, and the failure-recovery path. Since no output schema exists, a fuller sketch of the returned fields would help, but the essentials for calling it correctly are present.

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 already documents itself, including the default-to-default-property behavior and a pointer to ga4_list_properties. The description adds no syntax or format detail beyond that. Baseline 3 is appropriate where the schema does the work.

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

Purpose3/5

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

"Audiences defined in the property, with their membership rules" names the specific resource and what comes back with it, which separates it from ga4_custom_dimensions or ga4_key_events. However, it is a noun phrase with no verb, so the agent must infer that this is a read/list operation rather than a create or configure operation. Purpose is identifiable but not stated outright.

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?

The description lists prerequisites (Admin API enabled on the quota project, Viewer role on the GA4 property) and routes the agent to ga4_check_access when it wants everything checked at once, which is genuine alternative-routing guidance. It never says when to reach for this tool versus siblings like ga4_property_details, and it gives no exclusion conditions. Usage is implied through prerequisites rather than stated.

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