Skip to main content
Glama
InspireHEP MCP Server

InspireHEP MCP Server

Get Citations

get_citations
Read-onlyIdempotent

Retrieve a paper's citation graph by InspireHEP ID, choosing citing or cited-by papers, with metadata, total counts, and a year-by-year timeline.

Instructions

Retrieve citation graph data for a paper.

Args: inspire_id: InspireHEP record ID (numeric). direction: "citing" (papers that cite this) or "cited_by" (papers this cites). size: Number of results to return (1–250, default 50). page: One-based result page; follow next_page with the same direction and size. compact: Return paper summaries without abstracts and author lists.

Returns citation list with metadata, total count, and a year-by-year citation timeline for the returned page.

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": {
      "inspire_id": "<inspire_id>"
    },
    "name": "get_citations"
  }
}

Input Schema

NameRequiredDescriptionDefault
pageNoOne-based result page; keep size and sort fixed.
sizeNo
compactNo
directionNociting
inspire_idYes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed7 schema fields changedv0.4.0
    • addedInput schema / properties / compact
      Added value: +{
      +  "default": false,
      +  "title": "Compact",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / direction / enum
      Added value: +[
      +  "citing",
      +  "cited_by"
      +]
    • addedInput schema / properties / inspire_id / maxLength
      Added value: +512
    • addedInput schema / properties / inspire_id / minLength
      Added value: +1
    • addedInput schema / properties / page
      Added value: +{
      +  "default": 1,
      +  "description": "One-based result page; keep size and sort fixed.",
      +  "minimum": 1,
      +  "title": "Page",
      +  "type": "integer"
      +}
    • addedInput schema / properties / size / maximum
      Added value: +250
    • addedInput schema / properties / size / minimum
      Added value: +1
  2. Changed4 schema fields changedv0.3.0
    • addedOutput schema / additionalProperties
      Added value: +true
    • removedOutput schema / properties
      Removed value: -{
      -  "result": {
      -    "title": "Result",
      -    "type": "string"
      -  }
      -}
    • removedOutput schema / required
      Removed value: -[
      -  "result"
      -]
    • changedOutput schema / title
      Previous value: -"get_citationsOutput"New value: +"get_citationsDictOutput"
  3. First observedv0.1.4

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive, open-world behavior, and the description does not contradict them. Beyond that it adds real value by disclosing the return shape (metadata, total count, year-by-year timeline for the returned page) and the effect of compact (strips abstracts and author lists). It omits only rate limits or error behavior, which are minor for a read tool.

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?

Purpose is front-loaded in one sentence, then a compact Args block per parameter. The structure is scannable and has little waste, though the Args list partially duplicates schema titles and defaults.

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 an output schema present, the description need not detail return values, yet it still summarizes them usefully. Parameters, pagination discipline, and the compact mode are all covered; the only meaningful gap is the lack of disambiguation from get_references in a crowded sibling set.

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 description coverage is only 20% (only 'page' is documented in the schema), so the description carries the burden and mostly does: it explains direction values in plain language, the size range and default, page semantics, and the compact effect. It loses a point because the inspire_id note says 'numeric' while the schema types it as a string, and it repeats defaults already present in 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?

The description opens with a specific verb and resource: 'Retrieve citation graph data for a paper.' Combined with the direction argument semantics it is clear this is a citation-graph traversal tool. It does not, however, distinguish itself from the sibling get_references, which an agent could easily confuse with the 'cited_by' direction.

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?

It implies usage through the direction semantics ('papers that cite this' vs 'papers this cites') and gives explicit pagination advice ('follow next_page with the same direction and size'). There is no statement of when to prefer this over get_references or when not to use it, so guidance is implied rather than explicit.

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