Skip to main content
Glama

Get Google Analytics audience breakdown

get_google_analytics_audience_breakdown
Read-onlyIdempotent

Read device, country, or new-versus-returning users, sessions, engagement, and key events. Previous-period comparison is available for device and new-versus-returning breakdowns. No demographic or user-level dimensions. Reads only the GA4 property already connected to a NameIO project the caller is authorized to access. The server selects the Google account and property from that project's saved connection. Read-only and uses no NameIO credits.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "projectId": "<projectId>"
    },
    "name": "get_google_analytics_audience_breakdown"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNo
offsetNo
channelNoorganic_search
endDateNoInclusive YYYY-MM-DD date. Provide both startDate and endDate.
breakdownNodevice
projectIdYesRequired. The NameIO project ID to scope this call to. Get one from list_projects.
startDateNoInclusive YYYY-MM-DD date. Provide both startDate and endDate.
comparePreviousPeriodNo

Output Schema

NameRequiredDescriptionDefault
rowsNo
errorNo
quotaNo
sourceNo
statusYes
requestNo
pageInfoNo
rowCountNo
warningsNo
comparisonNo
diagnosticsNo
totalRowCountNo
reportMetadataNo
ecommerceActivityNo
diagnosticCoverageNo
siteSearchActivityNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already cover read-only/idempotent/no-destructive, but the description adds substantive context beyond them: it reads only the GA4 property tied to the caller's authorized NameIO project, the server resolves the Google account and property from that saved connection, and it consumes no NameIO credits. That auth/scope/billing detail is exactly what annotations cannot express; only the return format and pagination behavior are left implicit.

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?

Front-loaded with what is read, then scope, then auth/billing caveats; every sentence carries information. The opening sentence's list ('device, country, or new-versus-returning users, sessions...') is slightly tangled, blending dimensions and metrics in one clause.

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 an output schema present and rich annotations, the description only needs to cover scope, access, and constraints — and it does: dimension limits, comparison caveat, auth path, and credit cost. The remaining gap is the undisclosed effect of the default channel filter and pagination, minor but real for an 8-parameter tool.

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 only 38%, so the description needs to compensate. It does explain the breakdown dimension set and the conditional rule for comparePreviousPeriod, but limit, offset, and channel are wholly unexplained — notably channel defaults to organic_search, a filter the caller could easily miss.

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 specific verb (Read) plus the exact dimensions available (device, country, new-vs-returning) and the metric families (users, sessions, engagement, key events). The explicit negative scope 'No demographic or user-level dimensions' helps separate it from broader reporting siblings, though it never names an alternative tool.

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 embeds useful conditional guidance — previous-period comparison works only for device and new-vs-returning breakdowns — which is real when-to-use information. It does not, however, say when to pick this over the sibling tools like organic_overview or traffic_acquisition, leaving selection to inference from the dimension list.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources