Skip to main content
Glama

Get Google Analytics traffic acquisition

get_google_analytics_traffic_acquisition
Read-only

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. Read-only and uses no FastestRank 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 FastestRank 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.6/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, destructiveHint=false, and openWorldHint=false, so safety is covered. The description adds genuinely new behavioral context beyond that: it consumes no FastestRank credits, the previous-period comparison is limited to the channel_group breakdown, and source_medium includes attribution-quality diagnostics. It does not mention pagination or rate limits.

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 sentences, front-loaded with the purpose and followed by behavioral qualifiers; no filler. The second sentence is dense but every clause carries information.

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?

An output schema exists, so return values need not be described, and annotations cover the safety profile. However, for a 7-parameter tool with 43% schema coverage, the description omits pagination behavior, default date ranges, and how the breakdown choice affects the response shape.

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 43%, so the description has to compensate, and it explains breakdown values and the scope of comparePreviousPeriod. It says nothing about limit/offset pagination or the startDate/endDate pairing requirements, leaving several thinly documented parameters unaddressed in the prose.

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 gives a specific verb and resource (compare session acquisition) and enumerates the three breakdown dimensions plus the metrics returned, which lets an agent distinguish it from audience or page-performance siblings. It stops short of naming a sibling it should not be used for, so it falls just short of a 5.

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?

No explicit when-to-use/when-not guidance against the other Google Analytics tools is given. The only conditional guidance is internal to the tool: previous-period comparison works for channel group, and attribution diagnostics appear for source/medium. The agent must infer usage from the tool name.

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.