Skip to main content
Glama

Get AI citations

get_ai_citations
Read-only

Retrieves the pages AI answers cite for an app, including citation rate, source types, top domains and pages, with optional domain, engine, country, and date filters.

Instructions

The pages the answers cite. citation_rate: % of answers citing the app's pages (summary, by_engine). source_types: share of news, review, forum, social, competitor, own, store, other. apps: whose pages are cited. domains, pages: the most cited. store_pages: store listings cited. domain=: that domain's pages. Read-only.

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": {
      "ai_app_id": "<ai_app_id>"
    },
    "name": "get_ai_citations"
  }
}

Input Schema

NameRequiredDescriptionDefault
endNoLast day, YYYY-MM-DD (default today)
daysNoDays in the window (default 7)
limitNoRows per list (default 15)
domainNoe.g. nerdwallet.com
engineNoDefault both
countryNoOne market, ISO code (default all)
ai_app_idYesid from list_ai_visibility_apps

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.9.0

TDQS

B3.4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint and non-destructive, so the trailing 'Read-only' is redundant. The real value is that the description enumerates what each output section means (citation_rate as % of answers citing the app's pages, source_types as share by category), which is the only disclosure of return semantics since there is no output schema. It does not explain limit/pagination behavior or how the date window interacts with the aggregation.

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?

It is short, but written as telegraphic fragments ('domains, pages: the most cited') that require the reader to reconstruct grammar, which hurts parseability more than it saves tokens. 'Read-only' duplicates the annotation and earns no place.

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 seven parameters, full schema coverage, and no output schema, the description correctly spends its budget explaining the shape of the returned report, which is the main gap. What is missing is minor: pagination semantics for 'limit' and how the default 7-day window and country filter affect the aggregates.

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 coverage is 100%, so the baseline is 3. The description adds only that 'domain=<host>' restricts results to that domain's pages and that engine defaults to both, with the rest of the parameters (days, limit, country, end) left entirely to the schema.

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?

Opens with 'The pages the answers cite,' which names the resource (cited pages/domains for AI answers) and the section-by-section breakdown (citation_rate, source_types, apps, domains, pages, store_pages) makes clear it returns a citation-analytics report rather than a single answer. The verb is only implied by the name, and it never explicitly contrasts with get_ai_answer or get_ai_visibility, so it stops short of 5.

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

Usage Guidelines2/5

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

There is no statement of when to use this versus get_ai_answer, get_ai_visibility, or get_ai_opportunities. The only usage-like hint is the 'domain=<host>' note, which explains a filter rather than a selection condition. An agent must infer the use case from the returned sections alone.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.