Skip to main content
Glama

Traffic sources (GA4)

ga4_sources
Read-onlyIdempotent

Every network that sent visitors in the window (Google, Bing, ChatGPT, Facebook, newsletters, referring sites…), grouped as search / ai / social / ads / email / referral / direct, with sessions and key events.

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": "ga4_sources"
  }
}

Input Schema

NameRequiredDescriptionDefault
daysNoWindow length ending yesterday (default 28, 7–90).
limitNoRows to return (default 25, max 200).
project_idNoProject id or slug.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

B3.4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint and destructiveHint=false, so safety is covered and the bar is lower. The description still adds real value beyond them by disclosing the return shape: one row per network, bucketed into search / ai / social / ads / email / referral / direct, carrying sessions and key events — which matters because there is no output schema.

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 that states the row grain first, then the taxonomy, then the metrics. The parenthetical example list is somewhat long but each example disambiguates what counts as a 'network', so it mostly earns its place.

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?

For a simple three-parameter read tool with full schema coverage and no output schema, the description covers what a row represents and which metrics come back. It leaves out ordering/row-limit behavior and, more importantly, any signal about how this differs from the other ga4_* reporting tools.

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%, with days, limit and project_id all documented including defaults and ranges, so the schema does the heavy lifting. The phrase 'in the window' loosely ties to the days parameter but adds no format or behavior detail beyond what the schema already states.

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 the resource precisely — every network that sent visitors in the window — and enumerates concrete examples (Google, Bing, ChatGPT, Facebook, newsletters, referring sites) plus the channel taxonomy it returns. What is missing is any differentiation from obvious siblings like ga4_traffic and ga4_ai_traffic, which overlap heavily with a channel-grouped source report.

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 and no exclusions. The description never says whether to pick this over ga4_traffic (general traffic) or ga4_ai_traffic (AI-only traffic), even though the 'ai' bucket it mentions directly overlaps the latter. An agent must infer the routing decision from the name alone.

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.