Skip to main content
Glama

AI visibility

get_ai_visibility
Read-onlyIdempotent

How AI assistants (ChatGPT, Claude, Perplexity, Gemini, Grok, and when switched on Google AI Mode and Google AI Overviews) answer the website's tracked prompts, from weekly checks (an answer status of no_answer means Google showed no AI Overview for that search; it is not counted as not mentioned): visibility score (0–100, position-weighted), presence rate, average position, cited rate and consistency for the latest check and its trend across checks in the period (period defaults to 30d; use 90d or all for a longer trend), per-model results, the competitor leaderboard, per-prompt results and the most cited domains and pages. Prompts that name the website's own brand (branded: true) are left out of every figure, since assistants repeat a name the question contains (summary.excluded counts their answers), and a brand a question names gets no credit in its answers. Pass prompt_id for that prompt's latest answers (brands in order, sources). Reads stored checks only and never starts one; Growth plan, otherwise meta.locked is true.

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_visibility"
  }
}

Input Schema

NameRequiredDescriptionDefault
toNoLast day, YYYY-MM-DD (inclusive).
fromNoFirst day, YYYY-MM-DD (inclusive). Use with to.
fieldsNoOptional: only these parts of the answer, as comma-separated dot paths (e.g. overview.current,series.date,series.visitors). Through a list a path applies to every item; period is always kept. An unknown top-level name fails with the list of valid ones. Leave out for the full answer.
periodNoPreset period, default 30d. today/yesterday/wtd/mtd follow the timezone. Ignored when from and to are set.
compareNoWhat change figures compare against: previous (default, the equal-length window right before), weekdays (the same length, starting whole weeks earlier on the same weekday, so Mondays compare with Mondays), year (same period last year), or a YYYY-MM-DD start (window keeps the period's length). Ignored for period all.
timezoneNoIANA time zone for day boundaries and grouping, e.g. Europe/Madrid. Default UTC.
prompt_idNoA prompt id from prompts[].id for its latest answers.
ai_filtersNoUp to six filters, all of which must match; every figure is recomputed from the matching answers. model: assistant id; prompt: prompt id; group: prompt topic; competitor: answers naming that brand; mention: mentioned, not_mentioned or cited; citedDomain: answers citing that domain.
website_idNoWebsite ID from list_websites (the data-site-id value in the tracking script).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior5/5

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

Beyond the readOnly/idempotent annotations, the description discloses genuinely non-obvious behavior: results come only from stored weekly checks and never trigger a new one, no_answer means Google showed no AI Overview rather than 'not mentioned', branded prompts are excluded from every figure with their answers counted in summary.excluded, and non-Growth plans return meta.locked. These are exactly the caveats an agent would otherwise misinterpret.

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?

It is one dense paragraph, but it is front-loaded with the core payload and every clause carries information (no_answer semantics, brand exclusion, plan gate). The nested parenthetical about Google AI Mode/AI Overviews and the long enumerated metric list make it harder to scan than it needs to be, but little is genuinely redundant.

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 9-parameter, zero-required, no-output-schema tool, the description covers return content, default period, prompt_id behavior, filtering caveats and plan gating. The only real gap is the absence of explicit guidance on how the numerous sibling analytics tools divide labor, which the schema alone cannot supply.

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 the schema already carries period, compare, timezone, fields, ai_filters and prompt_id semantics; the description mostly restates the 30d default. It adds only marginal extra meaning, such as what prompt_id returns (latest answers with brands in order and sources) and that branded prompts are filtered out of figures. A 3 baseline is appropriate given the schema does the heavy lifting.

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 makes clear this returns an AI-visibility report: assistant answers to tracked prompts plus visibility score, presence rate, average position, cited rate, consistency, per-model, competitor and per-prompt breakdowns. That is a specific verb-plus-resource (a read of an analytics report), clearly distinct from siblings like get_traffic or get_ai_crawlers, though it never names those alternatives explicitly.

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?

It gives real usage direction: 'period defaults to 30d; use 90d or all for a longer trend', 'Pass prompt_id for that prompt's latest answers', and the plan gate 'Growth plan, otherwise meta.locked is true'. It also states the negative case 'Reads stored checks only and never starts one', so an agent knows not to expect a refresh. What is missing is explicit routing against sibling tools (e.g. when to prefer the crawler report).

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