Skip to main content
Glama

Read AI referral traffic

read_ai_referrals
Read-onlyIdempotent

Visits that arrived from AI assistants such as ChatGPT, from GA4: sessions, share of all traffic, key events and the top 20 landing pages by sessions (landing_page_count counts them all) for a range. These are people clicking through; read_crawl_logs has crawler requests. unavailable no_ai_referrals_snapshot means no referral snapshot is saved for the range, which is not zero; read_integration_status says why.

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": {
      "project_id": "<project_id>"
    },
    "name": "read_ai_referrals"
  }
}

Input Schema

NameRequiredDescriptionDefault
rangeNoA preset window ending today; or pass start_date and end_date instead.
end_dateNoLast day of a custom window, inclusive.
project_idYesA project id that list_projects returned.
start_dateNoFirst day of a custom window, inclusive.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changed
    • addedInput schema / properties / end_date / description
      Added value: +"Last day of a custom window, inclusive."
    • addedInput schema / properties / project_id / description
      Added value: +"A project id that list_projects returned."
    • addedInput schema / properties / range / description
      Added value: +"A preset window ending today; or pass start_date and end_date instead."
    • addedInput schema / properties / start_date / description
      Added value: +"First day of a custom window, inclusive."
  2. First observed

TDQS

A4.4/5.0
Behavior5/5

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

Annotations already cover the safety profile (readOnly, idempotent, non-destructive, closed-world), and the description adds real behavior beyond them: the data source (GA4), the 20-row cap on landing pages with landing_page_count reporting the untruncated total, and an 'unavailable' envelope whose no_ai_referrals_snapshot reason explicitly means missing data rather than zero. That error-state nuance prevents a common misinterpretation and is exactly the kind of context annotations cannot supply.

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?

Content is front-loaded — the resource and returned metrics come first, then the sibling contrast, then the error semantics. It is dense and somewhat run-on with stacked clauses in the first sentence, but nearly every clause carries distinct information.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With no output schema and no annotations about returns, the description carries the burden and does so: it lists the returned fields, discloses truncation behavior and its compensating count, and explains the failure envelope and where to investigate it. An agent has enough to call it and to interpret both success and the unavailable case.

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 100% and each parameter (range presets, inclusive start_date/end_date, project_id from list_projects) is already documented in the schema. The description only says results are 'for a range' and adds no syntax or precedence detail beyond the schema's own note that presets and custom dates are alternatives.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

Names a specific resource (AI assistant referral visits from GA4) and enumerates exactly what is returned: sessions, share of all traffic, key events, and the top 20 landing pages by sessions. It also explicitly contrasts with read_crawl_logs ('people clicking through' vs 'crawler requests'), so an agent can separate the two without opening either schema.

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

Usage Guidelines4/5

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

Clear context for when this is the right tool (human click-through traffic from AI assistants) and an explicit exclusion pointing to read_crawl_logs for crawlers, plus read_integration_status for diagnosing a missing snapshot. It does not distinguish itself from the other read_ai_traffic_* siblings, so the routing guidance is strong but not exhaustive.

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