Skip to main content
Glama

Get AI visibility sources

get_ai_visibility_sources
Read-onlyIdempotent

For a normal review make one run-wide call using the result runId and these top-level arguments (there is no filters object): topic null, engines null, promptId null, cursor null, competitorGap false; never enumerate every engine or prompt. Use engines to request one or more engines in a single filtered call. Read explicit cited pages or domains for the selected run/topic/engines, with ownership, distinct answer/prompt counts, per-engine counts, supporting observation IDs, and valid-answer coverage. Defaults to neutral prompts; request branded=all to include branded diagnostics. Use the same runId and broad filters as results, with competitorGap=false for overall sources. A gap-only source query is a separate subset and must be labeled. Coverage describes the selected run before the gap filter; consult appliedFilters. Pagination and truncation are explicit. Does not crawl URLs or collect answers.

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 newest finished check that asked the most of what is tracked now (any trigger; a Run now of a few questions never replaces it). 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. First observed

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already establish read-only, idempotent, non-destructive, closed-world behavior, and the description goes further by disclosing that coverage describes the run before the gap filter, that appliedFilters should be consulted, that an empty gap subset does not mean answer details are missing, and that pagination/truncation are explicit. It also adds a useful negative scope: 'Does not crawl URLs or collect answers.' Rates a 4 rather than 5 only because return shape is largely deferred rather than described in detail.

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?

Length is reasonable and most sentences carry operational content, but the opening sentence dumps invocation mechanics without first stating what the tool returns, making the entry point hard to parse. It reads as a dense run-on where the actual purpose appears in the third sentence, so structure rather than word count is the problem.

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?

An output schema exists, so return values need not be spelled out, yet the description still explains the meaningful ones plus pagination, truncation, and filter echo via appliedFilters. Given a 12-parameter tool with three enums, a few parameters (groupBy, ownership, limit) remain unexplained by description or schema, so it is strong but not fully complete.

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 50% across 12 parameters, so description compensation matters, and it delivers on the ambiguous ones: engines subset semantics (array, not per-engine calls), branded default neutral vs branded=all, competitorGap meaning, and cursor-based paging. It adds little or nothing for groupBy, ownership, limit, and includeHistory, which limits the score despite the strong treatment of the key filters.

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 names a concrete verb and resource: 'Read explicit cited pages or domains for the selected run/topic/engines,' plus the returned fields (ownership, answer/prompt counts, per-engine counts, observation IDs, coverage). It also implicitly separates this from get_ai_visibility_results by saying to use 'the same runId and broad filters as results.' However, the purpose statement is buried after invocation mechanics rather than front-loaded, which weakens first-glance identification.

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?

Explicit when-to-use guidance is present for the main branches: one run-wide call with nulls for a normal review, 'Use engines to request one or more engines in a single filtered call,' branded=all for branded diagnostics, and competitorGap=false for overall sources. It also states exclusions ('never enumerate every engine or prompt'; 'A gap-only source query is a separate subset and must be labeled'), leaving little to inference.

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