Skip to main content
Glama

traffic_analytics

Read-onlyIdempotent

Google Analytics (GA4) traffic and Google Ads account, campaign, and search-term performance. overview/sources/landing_pages/top_pages read GA4; the ads_* actions read Google Ads - each names its missing connection instead of returning empty data. GA4 sessions and Search Console clicks measure different things: for search clicks use gsc_performance. ai_pages is first-party AI engagement (answer-crawler fetches and AI-referred visits per page) that GA4 cannot attribute - it files that traffic as "Direct". Already scoped to the connected workspace and its site; call directly, no domain or site parameter is needed. Cost: FREE - reads your connected/stored data, no AI credits.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
daysNolook-back window in days.
limitNomax rows where applicable.
actionYesWhich operation to run. ai_pages (first-party AI engagement per page: crawler fetches + AI-referred visits).
user_intentNoOptional: one short sentence describing what the user is ultimately trying to achieve with this request. Used by SEOmatic to tailor answers and improve the product; never required.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.3/5.0
Behavior5/5

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

Annotations already mark the tool as read-only, idempotent, and non-destructive; the description adds valuable behavior beyond that: missing connections are named rather than silently returning empty data, GA4 cannot attribute AI traffic so it files it as 'Direct', and the tool reads connected/stored data without consuming AI credits. No contradiction with annotations.

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 dense but front-loaded with the core purpose and then expands into distinctions, alternatives, and cost. Each sentence carries useful information, though the long enumeration of action groups could have been tightened without losing meaning.

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?

The description covers purpose, scoping, measurement differences, missing-connection behavior, AI engagement attribution, and cost, and an output schema exists. The main gap is the mismatch between described actions and the actual action enum containing only ai_pages, which leaves an agent uncertain about whether other described actions are callable.

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 the parameters are already well documented. The description adds useful action-level semantics, notably that GA4 actions and Ads actions target different systems, but it does not explain days or limit in more depth. Given the baseline of 3 for full schema coverage, this is adequate.

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's purpose: GA4 traffic and Google Ads account/campaign/search-term performance, plus first-party AI engagement. It also differentiates from gsc_performance by noting Search Console clicks are measured separately. However, it references action names like overview/sources/landing_pages/top_pages and ads_* that are not present in the action enum, which slightly blurs what the tool can actually execute.

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

Usage Guidelines5/5

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

Provides explicit alternative routing: 'for search clicks use gsc_performance'. It also clarifies GA4 vs Search Console measurement semantics, states the tool is pre-scoped so no domain/site parameter is needed, and explains how missing connections behave instead of returning empty data. This gives an agent enough context to decide when to call this tool versus its siblings.

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.