Skip to main content
Glama

Get Google Analytics traffic acquisition

get_google_analytics_traffic_acquisition
Read-onlyIdempotent

Compare session acquisition by channel group, source/medium, or campaign, including sessions, users, engagement, key events, transactions, and revenue. Previous-period comparison is available for channel group; source/medium also reports attribution-quality diagnostics. 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_traffic_acquisition"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNo
offsetNo
endDateNoInclusive YYYY-MM-DD date. Provide both startDate and endDate.
breakdownNochannel_group
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.9/5.0
Behavior4/5

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

Annotations already declare readOnly/idempotent/non-destructive/open-world, and the description adds context those annotations cannot: it reads only the connected property, the server resolves account and property, and the call consumes no NameIO credits. The notable remaining gap is pagination behavior despite limit/offset parameters.

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?

Three dense sentences, front-loaded with what is measured before moving to comparison options and access/cost constraints. No filler, though the access and cost sentences could be tightened.

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, return values need no explanation, and the description covers metrics, breakdown options, prerequisites, and cost. The only meaningful omission for a query tool of this complexity is guidance on limit/offset result-window behavior.

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 43%, so the description must compensate, and it does add real semantics for the breakdown dimension and the fact that previous-period comparison applies only to channel group while source/medium yields attribution-quality diagnostics. It says nothing about limit/offset pagination or the date-range pairing beyond what the schema already documents.

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?

The description names a specific verb ('Compare session acquisition') and resource (channel group, source/medium, campaign) and enumerates the returned metrics, so an agent knows exactly what this tool produces. It does not explicitly contrast itself with neighbors like get_google_analytics_organic_overview or get_google_analytics_ecommerce_performance, leaving that differentiation to inference from the breakdown dimensions.

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 states the context of use clearly: reads a GA4 property already connected to a NameIO project the caller can access, with the server resolving account and property automatically, so the agent knows no GA credentials or property selection are needed. There are no explicit exclusions or 'use X instead when...' routing statements against the sibling analytics tools.

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