Skip to main content
Glama
zhangluka

grain-seo-mcp

by zhangluka

analytics_traffic_sources

Analyze GA4 traffic sources by channel, source, and medium to pinpoint which channels drive the most visits. Use this data to refine your marketing strategy.

Instructions

Analyze traffic sources (Channel, Source, Medium) in GA4

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
propertyIdYesGA4 Property ID
accountIdNoGA4 account ID for multi-account setups
startDateYesStart date (YYYY-MM-DD)
endDateYesEnd date (YYYY-MM-DD)
channelGroupNoFilter by Channel Group (e.g. 'Organic Search')
limitNoMax rows (default 50)
offsetNoStarting row for pagination (0-based)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.9/5.0
Behavior2/5

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

With no annotations, the description must disclose behavioral traits like read-only or pagination, but it only states 'Analyze traffic sources'. It adds no information about safety, side effects, or performance, leaving the agent underinformed.

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?

The description is a single, focused sentence that communicates the core purpose without waste. It is front-loaded and efficient, though slightly too brief for completeness.

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?

Given 7 parameters, no output schema, and no annotations, the description is inadequate. It does not explain return values, pagination behavior (though offset/limit exist in schema), or how it relates to sibling analytics 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?

All 7 parameters have schema descriptions (100% coverage), so the description adds no extra meaning beyond the schema. The baseline of 3 is appropriate because the schema itself is sufficient.

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 clearly states the tool analyzes traffic sources and specifies three dimensions (Channel, Source, Medium) in GA4, which distinguishes it from sibling tools that focus on queries, pages, etc., but it could be more specific about the metrics returned.

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?

No guidance is provided on when to use this tool versus siblings like analytics_query or analytics_top_pages. The description lacks context for choosing this over alternatives.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools