Skip to main content
Glama

devtune_get_ai_referrals

Get complete paginated AI-referral landing pages (including engagement and page value), overview, and the complete engines breakdown with selected-provider sessions, distinct selected conversions, provider provenance, coverage gaps and native metrics for the same fixed window. Selected conversion events with no site visit, such as server-sent events, are reported as noSiteVisitOccurrences and are not coverage gaps. conversionDefinitions gives, per selected PostHog event or action that occurred in the same window (ones with no occurrences are omitted), occurrences with no site visit and occurrences tied to a site visit, with windowComplete; one with no site-visit occurrences in a complete window cannot be credited to AI. GA4 key events are omitted because they are always session-scoped. Also returns visitorShare: AI-referral sessions over all sessions from the selected analytics provider for the same window (0 to 1), whenever the provider imported every day and recorded sessions. Sessions that may be AI referrals but could not be traced (unknown source or site) are not counted as AI; unattributedSessions counts them and partial is true when there are any; priorShare appears only when both windows have a share, with priorPartial. With no provider, a day not imported or no sessions, the share is null with a reason, never 0. Sessions are not people; conversion rates are events per session. Missing provider measurements remain null.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
cursorNoOpaque cursor from the previous response; cursors expire after ~48 hours.
pageSizeNoResults per page (1-100). Defaults to 25.
windowDaysNoFixed rolling window in days: 7, 30, or 90. Defaults to 30.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.2/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does disclose substantial behavior: coverage-gap semantics, that noSiteVisitOccurrences are not gaps, that GA4 key events are omitted, that visitorShare is null (never 0) with a reason, partial/priorPartial flags, and that sessions are not people. It omits any auth or permission context, but the semantic edge cases are unusually well documented.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness2/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The purpose sentence is front-loaded, but the remainder is an enormous run-on packed with undefined jargon (windowComplete, unattributedSessions, priorShare) in a single dense paragraph. It is over-specified and hard to parse rather than tight, so conciseness suffers.

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?

For a complex analytics tool with no output schema and no annotations, the description goes a long way toward explaining the returned shape and null/edge-case handling. What remains missing is pagination/auth framing, but the return-value semantics are otherwise well covered.

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 cursor, pageSize and windowDays are already fully documented in the schema. The description adds only the 'same fixed window' concept, which is marginal beyond what the schema provides, making the baseline 3 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 first sentence states a specific verb (Get) and resource (AI-referral landing pages, overview, engines breakdown) with the fields it returns. It is clearly about AI-referral analytics, but it never names or contrasts with siblings like devtune_get_traffic_summary or devtune_get_page_metrics, so differentiation is left to inference.

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 no alternatives are named. The dense field-level explanation implies this is the AI-referral reporting tool, but an agent gets no routing help against the many traffic/visibility 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.

Resources