Skip to main content
Glama
flin-ga4-mcp

flin-ga4-mcp

by flin-agency

get_traffic_sources

Read-onlyIdempotent

Break down Google Analytics 4 sessions by channel and source/medium, sorted by sessions, to identify which traffic sources drive engagement for a date range.

Instructions

Session channel and source/medium breakdown, sorted by sessions descending.

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": {
      "start_date": "<start_date>",
      "end_date": "<end_date>"
    },
    "name": "get_traffic_sources"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNo
offsetNo
accountNo
end_dateYes
start_dateYes
property_idNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

C2.9/5.0
Behavior3/5

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

Annotations already declare readOnly, idempotent, openWorld, and non-destructive, so the safety profile is covered. The description adds one genuine behavioral fact — results are sorted by sessions descending — but says nothing about pagination behavior, default row limits, or how the account/property_id scope is resolved.

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 zero filler, listing the grain and sort order immediately. It is efficiently sized, though the terseness leaves no room for the usage or parameter context an agent needs.

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 shape needn't be explained, but for a six-parameter analytics tool with fully undocumented parameters and no sibling differentiation the description is far too thin. Missing: date format expectations, property scoping, and pagination defaults.

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 six parameters: start_date, end_date, limit, offset, account, and property_id are all undocumented. The description compensates only indirectly by implying the row grain (channel, source/medium), which helps interpret limit/offset, but it never clarifies date format or the account-vs-property_id relationship.

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 specific breakdown produced (session channel and source/medium) and the sort order, which is more informative than the tool name alone. However, it doesn't state the verb explicitly or distinguish this report from siblings like get_summary or run_report, so an agent must infer the boundary.

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 guidance on when to use this versus run_report, get_summary, or get_top_pages, and no mention of prerequisites such as needing a property_id. The description only says what the output looks like, leaving selection entirely to inference.

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