Skip to main content
Glama

oriiion

Google Analytics Traffic Sources

google_analytics_get_traffic_sources

Analyze website acquisition channels and traffic sources (Organic Search, Organic Social, Direct, Referral, Paid Search) and conversion rates to understand user attribution.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
daysNoLookback period in days (default 30)
propertyIdNoOptional GA4 property ID

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.5/5.0
Behavior3/5

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

Annotations supply the safety profile, so the bar is lower, and the description adds the domain context of which acquisition channels are covered. It does not disclose return granularity, rate limits, or authentication requirements. Note the readOnlyHint=false annotation is questionable for a get-style analysis tool, and the description's neutral 'Analyze' wording does not resolve that ambiguity in either direction.

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?

A single front-loaded sentence with the action and data scope stated first and the channel taxonomy in a compact parenthetical. No filler, though the inline enumeration is the only structural element.

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?

For a read-only analytics query with no output schema, two optional fully documented parameters, and no required inputs, the description is adequate: it names the dimension values the response will be grouped by (channel) plus conversion rates. Return shape and formatting details are the only omissions, which is acceptable given the simple parameter surface.

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% for both parameters (days with default/min/max, optional propertyId), so the schema carries the parameter burden. The description adds no additional semantics such as how the lookback window interacts with channel attribution or what happens when propertyId is omitted, so baseline 3 applies.

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 (Analyze) and resource (acquisition channels / traffic sources) and enumerates the channel dimension values (Organic Search, Organic Social, Direct, Referral, Paid Search) plus conversion rates, so the agent knows exactly what data is produced. It does not explicitly differentiate itself from overlapping analytics siblings such as google_analytics_get_overview or google_analytics_get_top_pages, which keeps it 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?

The stated goal 'to understand user attribution' implies when the tool is useful, but there is no explicit when-to-use, when-not-to-use, or named alternative among the many analytics siblings (get_overview, get_top_pages, get_platform_analytics). Usage is inferable but not guided.

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