Skip to main content
Glama

AI assistant referrals

analytics_get_ai_referrals
Read-only

GA4 AI / AEO referrals: ChatGPT, Perplexity, Gemini, and similar assistant traffic.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
urlNo
daysNo
limitNo
date_toNo
page_idNo
sort_byNo
user_idNo
site_urlNo
client_idNo
date_fromNo
ad_accountNo
ig_user_idNo
user_emailNo
range_presetNo
activity_onlyNo
campaign_nameNo
property_nameNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

C2.7/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and openWorldHint=false, so the safety profile is covered. The description adds only scope context (which assistants are counted), but says nothing about filtering defaults, aggregation, or the practical effect of the 17 optional params. Adequate but thin for the annotation-assisted bar.

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 no filler; every word earns its place. It is perhaps too terse for the tool's complexity, but it is structurally clean.

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 values needn't be explained, but for a 17-parameter analytics tool with no required params and no schema descriptions, the agent is left without filtering, date-range, or pagination semantics. The description does not close that gap.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters1/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The schema has 17 parameters at 0% description coverage, and the description offers zero information about any of them (url, date_from/date_to, days, limit, range_preset, activity_only, etc.). With such high parameter count and no schema or description guidance, the description fails entirely to compensate.

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 data source (GA4), the metric category (AI / AEO referrals), and concrete examples of the referrers (ChatGPT, Perplexity, Gemini), distinguishing it from general siblings like analytics_get_ga4_metrics. It lacks an explicit verb, but the resource is unambiguous enough for an agent to select it correctly.

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 tool versus analytics_get_ga4_metrics or analytics_get_organic_roi, nor any prerequisites or exclusions. Usage is only weakly implied by the 'AI/AEO referrals' scope.

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.