Skip to main content
Glama

Visits from AI assistants

ga4_ai_traffic
Read-onlyIdempotent

Visits referred by AI assistants (ChatGPT, Perplexity, Gemini, Claude, Copilot, DeepSeek, Grok, Meta AI and others): sessions, users, engagement and key events per assistant, the pages they land on, and the daily trend, against the period before. Some AI visits arrive without a referrer and count as Direct; say so.

Input Schema

NameRequiredDescriptionDefault
end_dateNoYYYY-MM-DD. Default: yesterday.
propertyNoGA4 property: its id (properties/123456 or 123456) or its name. Optional when one property is picked.
start_dateNoYYYY-MM-DD. Default: 28 days before end_date.
compare_end_dateNo
compare_start_dateNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.5/5.0
Behavior4/5

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

Annotations already establish read-only, idempotent, open-world behavior, and the description adds genuinely new context: the report compares against the prior period, and unreferred AI visits are bucketed as Direct so the agent can caveat the numbers rather than misreport them. It stops short of stating defaults (already in the schema) or limits/pagination, but the caveat is real added value.

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?

Purpose is front-loaded in the first clause, and the single trailing sentence carries a non-obvious caveat rather than filler. The assistant-name list is longer than strictly necessary but it usefully bounds what counts as an AI assistant.

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?

With no output schema, the description must describe the return and it does so thoroughly (metrics, dimension breakdown, landing pages, trend, comparison period). The remaining gap is the two undocumented comparison-date parameters, which is a minor omission for a reporting tool with zero required arguments.

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 coverage is 60%, with start_date, end_date and property documented in-schema and compare_start_date/compare_end_date left blank. The phrase 'against the period before' gestures at the comparison parameters but does not define their semantics or defaults, so the description only marginally compensates for the uncovered pair. Baseline 3 is appropriate.

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 a specific resource (traffic referred by AI assistants) and enumerates the concrete outputs: sessions, users, engagement, key events per assistant, landing pages, and daily trend versus a prior period. It is clearly distinct from ga4_overview or ga4_report by topic, but it never names those siblings so the agent must infer the boundary itself.

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, no prerequisite (e.g. property selection is only hinted at via the schema), and no reference to the alternative GA4 report tools that cover overlapping traffic data. The description is purely a statement of what is returned, leaving routing to inference.

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.

Resources