Skip to main content
Glama

Get AI visibility sources

get_ai_visibility_sources
Read-only

List the pages or domains AI answers cited in one tracking run, with ownership, answer and prompt counts, per-engine counts, and supporting observation IDs. For a normal review make one run-wide call with the runId from get_ai_visibility_results and no other filters (topic, engines, and promptId null, competitorGap false): never enumerate every engine or prompt, and pass engines to filter to a few in a single call. Defaults to neutral prompts; pass branded=all to include branded diagnostics. A competitorGap=true query is a separate subset and must be labeled as one; coverage describes the run before the gap filter, so check appliedFilters. Uses no credits, and never crawls URLs or collects answers. For the answers behind a source, pass its observation IDs to get_ai_visibility_answer.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "projectId": "<projectId>"
    },
    "name": "get_ai_visibility_sources"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNo
runIdNoOmit or null for the latest baseline/scheduled run. Reuse the returned runId for related source/answer reads. Do not use the string all.
topicNoOmit or null for all topics in the run. Filter by an exact saved topic name only when requested; do not use the string all.
cursorNoOmit or null for the first page. Use only a returned nextCursor for another page; do not use the string all.
brandedNoneutral
enginesNoOmit or null for all engines in one call. Provide one or more engines for an explicitly requested subset, or an empty array for no engines. Do not make separate calls for each engine or use the string all.
groupByNourl
promptIdNoOmit or null for all prompts in the run. Provide an exact prompt ID only when requested; includeHistory returns that prompt's prior observations. Do not use the string all.
ownershipNoall
projectIdYes
competitorGapNoUse false for the initial review, overall sources and branded diagnostics. True restricts rows to answers where a competitor appears and your brand is absent; an empty gap subset does not mean answer details are missing.
includeHistoryNo

Output Schema

NameRequiredDescriptionDefault
codeNo
dataNo
metaNo
runIdNo
statusYes
messageNo
recoveryNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false, openWorldHint=false, so safety is covered; the description still adds non-obvious behavior: 'Uses no credits, and never crawls URLs or collects answers', plus the caveat that coverage is computed before the gap filter and requires checking appliedFilters. What it does not disclose is pagination/limit behavior or result ordering, which keeps it below the top score.

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?

Front-loaded with purpose, then the call pattern, then the exceptions and the hand-off to get_ai_visibility_answer – a sensible order. It is dense and parenthetical ('topic, engines, and promptId null, competitorGap false'), so a reader must parse carefully, but essentially every clause carries operational information.

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?

Given 12 parameters, an output schema, and full annotations, the description covers the routing logic, filter semantics, and cost/crawl behavior an agent needs to call it correctly. Gaps remain around paging (limit/cursor), grouping (groupBy url vs domain), and the ownership enum, none of which the description touches.

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?

Schema coverage is only 50% across 12 parameters, but the description explains the highest-risk ones well: runId sourcing and reuse, engines as a single-call subset filter rather than a loop, branded default neutral vs branded=all, and competitorGap's exclusion semantics. It leaves limit, cursor, groupBy, ownership, and includeHistory entirely to the schema, so some meaning is still unstated.

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?

Opens with a specific verb and resource: 'List the pages or domains AI answers cited in one tracking run', and names the returned dimensions (ownership, answer/prompt counts, per-engine counts, observation IDs). It also names the sibling queries that precede and follow it (get_ai_visibility_results, get_ai_visibility_answer), so an agent can place it in the workflow without opening other schemas.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicitly prescribes the normal path ('one run-wide call with the runId from get_ai_visibility_results and no other filters') and the anti-pattern ('never enumerate every engine or prompt'). It also states when to deviate (pass engines for an explicitly requested subset, branded=all for branded diagnostics) and labels competitorGap=true as a separate subset that must be reported as such.

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.