Skip to main content
Glama

Analytics get traffic sources

analytics_get_traffic_sources
Read-only

GA4 traffic sources. client_id picks the brand (defaults to the active one); extra passes any other field the app accepts.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "analytics_get_traffic_sources"
  }
}

Input Schema

NameRequiredDescriptionDefault
extraNo
limitNo
user_idNo
end_dateNo
client_idNo
start_dateNo
user_emailNo
property_idNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

C2.7/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and openWorldHint=false, so the agent knows this is a non-destructive read against the connected GA4 property. The description adds that client_id defaults to the active brand and that extra is a passthrough for arbitrary fields, but it says nothing about date-range defaults, row limits, or pagination behavior on a large result set.

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 compact sentences with no filler, and the most important fact (client_id picks the brand) is front-loaded after the resource label. It is efficient, though it is brevity bought at the cost of coverage.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/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, but for an 8-parameter report tool with zero schema documentation the description is far too thin. An agent cannot determine how to scope dates, cap results, or choose property_id versus client_id without trial and error.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0% across 8 parameters, so the description carries the full burden and only explains two of them (client_id and extra). The meanings of start_date/end_date formats, limit semantics, property_id versus client_id, and what user_id/user_email filter on are entirely undocumented.

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?

'GA4 traffic sources' names the resource and implies a reporting read, but it never states the verb or what is actually returned (a grouped source breakdown?), and it draws no distinction from siblings such as analytics_get_overview or analytics_list_properties. The agent can guess the domain but not the exact capability.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no when-to-use guidance, no mention of prerequisites, and no routing to alternative analytics tools when a different report is needed. The only usage hint is the client_id default, which is parameter behavior rather than tool selection guidance.

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.