Skip to main content
Glama

Site traffic (GA4)

ga4_traffic
Read-onlyIdempotent

Google Analytics 4 totals for the window (sessions, users, pageviews, key events, bounce rate, average session), visits per channel with AI assistants as a channel of their own, and the landing pages behind the key events. include_daily adds sessions per day.

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_traffic"
  }
}

Input Schema

NameRequiredDescriptionDefault
daysNoWindow length ending yesterday (default 28, 7–90).
project_idNoProject id or slug.
include_dailyNoAlso return sessions per day.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, non-destructive, and closed-world, so the safety profile is covered. The description usefully enumerates what is returned, including the notable AI-assistants-as-channel treatment, but says nothing about data freshness, empty-data behavior, or response shape. With annotations carrying the safety burden, this is adequate but not rich.

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 sentences, both front-loaded with the most important content: the metric set first, then the optional daily breakdown. Dense enumeration earns its place, though the single long sentence is somewhat packed.

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?

No output schema exists, so the description carries the burden of describing return values, and it does so by enumerating metrics, channel breakdown, and landing pages. Missing is any indication of result ordering, limits, or what happens when the project has no GA4 connection.

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%, so all three parameters are already documented, including the default 28 and 7–90 range for days. The description only restates include_daily's effect and adds no format or constraint meaning beyond the schema, which is the baseline case.

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?

States a specific verb and resource: GA4 totals (sessions, users, pageviews, key events, bounce rate, average session), channel breakdown, and landing pages behind key events. It is clear what the tool returns, though it does not distinguish itself from overlapping siblings like ga4_pages, ga4_sources, or ga4_ai_traffic.

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 explicit when-to-use or when-not-to-use guidance, and four sibling tools (ga4_pages, ga4_sources, ga4_ai_traffic, ga4_status) clearly overlap with its outputs. The description only implies this is a combined overview; an agent must infer whether to call this instead of the narrower GA4 tools.

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.