Skip to main content
Glama

Get Citations

get_citations
Read-onlyIdempotent

Get citation data showing which URLs AI models cite for your brand.

Citations are the source URLs that AI search engines reference in their answers. This tool shows which pages get cited, how often, and trends.

Views:

  • 'list' (default): All citation URLs with metadata.

  • 'history': Citation count trends over time.

  • 'queries': Which search queries generate citations, clustered by topic.

  • 'sources': Deep dive on a specific domain (requires 'domain' param).

  • 'feed': Recent citation events (new, lost, changed).

  • 'recent': Compatibility alias for 'feed'.

  • 'heatmap': Citation coverage matrix across domains and brands.

  • 'analytics': Aggregate citation analytics and metrics.

  • 'detail': Detail for a specific URL (pass the URL via the 'domain' param).

  • 'by_model': Citation breakdown per AI model.

  • 'top_pages': Top cited pages ranked by lifetime citation count. Each page also carries appearance_count_30d for the same 30-day window the rest of the citation views use. days does not move this view; use view='history' for a trend over a window.

Args: brand_id: The brand to check (required). view: Data view. Default 'list'. days: Lookback window, 7-365. Default 30. period: A frozen calendar period (YYYY-MM or YYYY-Qn). When given, days is ignored and the response carries a period block. Only view='top_pages' (citations inside the period, with appearance_count_period and models) and view='analytics' (activity inside the period; top_domains are the domains cited most with no page naming the brand, and period_figures carries the period totals) support it. limit: Results per page, 1-500. Default 100. offset: Pagination offset. domain: Required when view='sources' or view='detail'. The domain or URL to analyze. days_back: view='feed' only, and rarely needed. Omit it and the feed uses days, capped at 30. Set it only to compare over a different window than the rest of the call. tag_ids: Comma-separated tag IDs to filter prompts. prompt_text: Filter to prompts containing this text. response_format: 'concise' (default) caps long citation lists to a readable head to protect the model's context; 'detailed' returns every row (still held under the response ceiling).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
daysNo
viewNolist
limitNo
domainNoRequired when view='sources' or view='detail', ignored otherwise. A domain for view='sources' (example.com), a full URL for view='detail'.
offsetNo
periodNo
tag_idsNo
brand_idYes
days_backNoview='feed' only, and rarely needed: the feed's comparison window in days. Omit it and `days` is used (capped at 30). Every other view ignores this.
prompt_textNo
user_intentNoAnalytics hint: the user's latest request in one short sentence. Omit secrets and prior chat.
response_formatNoconcise

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior3/5

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

Annotations already cover readOnly/idempotent/non-destructive safety profile. The description adds genuinely useful behavioral context beyond that: response_format's context-protection behavior, the period-freezing semantics, and the days_back caveat. However, it doesn't disclose return shape details or rate/cost characteristics; with annotations covering safety, a 3 reflects solid but incomplete added value.

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?

The opening is well front-loaded, but the bulleted view list and Args section are long and partially redundant with the schema (e.g., restating defaults for days, limit). Information density is high, but for a 12-param tool it borders on verbose rather than trimmed.

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, one output-less schema, and read-only annotations, the description is nearly complete: it explains views, filters, pagination, and the response_format trade-off. It could still note expected return fields per view, but the essentials for correct invocation are present.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is only 25%, so the description must compensate — and it does. It explains view, days, period, limit, offset, domain, days_back, tag_ids, prompt_text, and response_format semantics that the schema alone does not, including interactions (days ignored when period set; days_back capped at 30).

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?

States a specific verb+resource ('Get citation data showing which URLs AI models cite') and distinguishes itself from every sibling by domain scope. The opening sentence makes it clear this returns citation sources, not rankings, traffic, or prominence scores.

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 enumerates all 11 views with a one-line description of what each returns and the constraints each imposes (e.g., view='sources' requires 'domain', period only works with top_pages/analytics, feed uses days_back). This is effectively a complete when-to-use map.

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