AI visibility
get_ai_visibilityHow 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
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | Last day, YYYY-MM-DD (inclusive). | |
| from | No | First day, YYYY-MM-DD (inclusive). Use with to. | |
| fields | No | Optional: 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. | |
| period | No | Preset period, default 30d. today/yesterday/wtd/mtd follow the timezone. Ignored when from and to are set. | |
| compare | No | What 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. | |
| timezone | No | IANA time zone for day boundaries and grouping, e.g. Europe/Madrid. Default UTC. | |
| prompt_id | No | A prompt id from prompts[].id for its latest answers. | |
| ai_filters | No | Up 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_id | No | Website ID from list_websites (the data-site-id value in the tracking script). |