Skip to main content
Glama

get_citations

Read-only

Which domains AI engines cite when answering this project's prompts, over a window: per domain the runs that cited it and the runs that only retrieved it during search (where the provider exposes that split; legacy runs without it are reported separately), its share of chats, its category, and its top pages. Returns the most cited domains first: limit sets how many (default 25) and topPages how many pages each (default 1, max 5); summary: true or topPages: 0 drops the pages. totalDomains, runsAnalyzed and shareOfChatsAnswers cover every domain in the window, and domainsReturned says how many rows came back. Filters: days, model, promptId; engine/prompt: the filter. How cited, retrieved, legacy and share of chats are defined arrives in howToRead and note.

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

Input Schema

NameRequiredDescriptionDefault
daysNoWindow in days (default 30, max 180).
limitNoDomains returned, most cited first (default 25, max 100). Totals cover every domain.
modelNoFilter to one engine (a channel id such as grok-3, or its label): every model id behind it counts, Peec AI rows included.
summaryNotrue = the totals and the domain list without top pages.
clientIdNoClient id — uses the AI-Visibility project its Overview opens in the app (the newest).
promptIdNoFilter to one prompt.
topPagesNoTop pages per domain (default 1, max 5); 0 leaves the pages out, like summary.
projectIdNoAI-Visibility project id.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
    • removedInput schema / additionalProperties
      Removed value: -false
  2. Changed1 schema field changed
    • changedInput schema / properties / topPages / description
      Previous value: -"Top pages per domain (default 1, max 5)."New value: +"Top pages per domain (default 1, max 5); 0 leaves the pages out, like summary."
  3. Changed3 schema fields changed
    • addedInput schema / properties / limit
      Added value: +{
      +  "description": "Domains returned, most cited first (default 25, max 100). Totals cover every domain.",
      +  "maximum": 100,
      +  "minimum": 1,
      +  "type": "integer"
      +}
    • addedInput schema / properties / summary
      Added value: +{
      +  "description": "true = the totals and the domain list without top pages.",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / topPages
      Added value: +{
      +  "description": "Top pages per domain (default 1, max 5).",
      +  "maximum": 5,
      +  "minimum": 0,
      +  "type": "integer"
      +}
  4. First observed

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false and openWorldHint=false, so the safety profile is covered. The description adds real behavioral substance on top: the cited-vs-retrieved-only distinction, the caveat that legacy runs without that split are reported separately, result ordering (most cited first), and the exact effect of `summary`/`topPages: 0`. It remains silent on auth, cost, and empty-result behavior, so not a 5.

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?

The purpose and return shape are front-loaded, and the durable details (ordering, defaults, totals scope) each carry information. It is dense to the point of being run-on, and the stray 'engine/prompt' sentence is wasted wording that slightly muddies the parameter story.

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?

With 8 optional parameters and no output schema, the description does the needed work of naming the returned fields (totalDomains, runsAnalyzed, shareOfChatsAnswers, domainsReturned) and explaining pagination and trimming. It also points to `howToRead`/`note` for metric definitions rather than leaving them undefined. Minor gaps remain around zero-result and error behavior.

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 every parameter is already documented, and the description largely restates those defaults (limit 25, topPages 1/0/5). It does add useful coupling information — that totals span all domains regardless of `limit`, and that `summary: true` and `topPages: 0` are equivalent. The line 'Filters: days, model, promptId; `engine`/`prompt`: the filter' refers to parameter names that do not exist in this schema (the actual names are `model` and `promptId`), which adds noise rather than meaning.

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 gives a specific verb and resource: it reports which domains AI engines cite for a project's prompts over a time window, and enumerates the per-domain fields returned (cited runs, retrieved-only runs, share of chats, category, top pages). That is far more precise than the title 'Get cited sources' alone. It does not explicitly name or contrast a sibling (e.g. get_cited_url or get_referring_domains), which keeps it out of 5 territory.

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

Usage Guidelines3/5

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

Usage is implied by the purpose statement — an agent can infer this is for domain-level citation analysis over a window. However, there is no explicit when-to-use/when-not guidance and no routing to alternatives such as get_cited_url for per-URL data or get_ai_visibility_metrics for aggregate metrics. The reader must infer the boundary.

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