Skip to main content
Glama

AI Referral Funnel

get_ai_funnel
Read-onlyIdempotent

The full AI-search funnel per page of the user's site, joined across three measurements nobody else holds together: CITED (engines named the page as a source in tracked answers), CRAWLED (answer-time/indexing AI bots actually fetched it), REFERRED (GA4-measured assistant-referred visitors landing on it), GOOGLE AI (googleAiImpressions: Google's own count of the page's impressions in AI Overviews and AI Mode, from the Search Console generative AI report the user uploaded - quote googleAiReport.dateRange with it; impressions only, no clicks), plus the market's captured fan-out query count as stage 0. HONESTY: check measured first - a false flag means that whole column is UNMEASURED (crawler ingest not connected / GA4 not connected / pre-capture scans), never zero. A page cited but never crawled suggests engines answer from cache; crawled but never cited is content that gets read and passed over; cited+crawled+referred is the full loop working. Cost: FREE - reads your connected/stored data, no AI credits.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "get_ai_funnel"
  }
}

Input Schema

NameRequiredDescriptionDefault
intentNoOptional, not needed to answer: in a few words, what the user is trying to achieve, kept to improve SEOmatic. No personal details.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / intent
      Added value: +{
      +  "description": "Optional, not needed to answer: in a few words, what the user is trying to achieve, kept to improve SEOmatic. No personal details.",
      +  "maxLength": 200,
      +  "type": "string"
      +}
  2. Changed1 schema field changed
    • removedInput schema / properties / user_intent
      Removed value: -{
      -  "description": "Optional: 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.",
      -  "maxLength": 300,
      -  "type": "string"
      -}
  3. Added

TDQS

A4.5/5.0
Behavior5/5

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

Goes well beyond the readOnly/idempotent annotations by disclosing the crucial semantic that a false `measured` flag means UNMEASURED, never zero — an interpretation trap an agent would otherwise fall into. It also states connection-dependency conditions (crawler ingest, GA4), the requirement to quote googleAiReport.dateRange alongside Google AI impressions, that impressions carry no clicks, and that the call is free of AI credits.

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

Conciseness3/5

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

The opening correctly front-loads the funnel definition, but the run-on single paragraph crammed with parenthetical asides, ALL-CAPS labels, and the promotional clause "nobody else holds together" makes it harder to scan than needed. The "market's captured fan-out query count as stage 0" phrase is compressed to the point of ambiguity, so length is not buying proportional clarity.

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?

For a fairly complex multi-source analytics tool with an output schema and rich annotations, the description covers what each column means, how to read zeros versus unmeasured columns, and how to interpret the citation/crawl/referral combinations diagnostically. Nothing an agent needs in order to call it correctly or explain results to a user is missing.

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

Parameters4/5

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

There is a single optional `intent` parameter with 100% schema description coverage, which already says it is not needed to answer and is only for SEO improvement, so the schema carries the burden fully. The description correctly adds no parameter noise, though it also adds nothing the schema lacks; with one trivially-documented optional param, this sits at the baseline rather than above it.

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?

States a concrete verb and resource — a per-page funnel table joining CITED, CRAWLED, REFERRED, GOOGLE AI counts plus a stage-0 fan-out query count. The explicit enumeration of which measurement each column holds cleanly distinguishes it from siblings like ai_citations, get_ai_crawler_activity, and get_referral_link, which each cover only one slice.

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?

Usage context is clear: this is the joined view when the user wants the whole funnel per page rather than a single measurement, and "Cost: FREE - reads your connected/stored data" tells the agent it is cheap to call. However, no sibling is named as an alternative and there is no explicit when-not-to-use or prerequisite (e.g., connections required for each column) beyond the `measured` caveat.

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.