Skip to main content
Glama
paper-retrieval

paper-retrieval

by zhangleiniu

get_citation_neighbors

Retrieve a paper's in-corpus citation neighbors—references or citing papers—with citation-intent probability and citing sentence; filter by baseline or other intent.

Instructions

In-corpus citation neighbors of a paper: refs (papers it cites) or cited_by (papers citing it), each with P(baseline) of the citation (a classifier of citation intent: baseline / direct comparison / core reference) and the citing sentence. intent: baseline keeps only edges classified as baseline, other the rest.

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": {
      "paper_id": "<paper_id>"
    },
    "name": "get_citation_neighbors"
  }
}

Input Schema

NameRequiredDescriptionDefault
kNo
intentNo
paper_idYes
directionNorefs

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.2/5.0
Behavior3/5

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

With no annotations, the description carries the full burden. It does disclose return content (per-edge P(baseline) and the citing sentence) and implicitly scope ('in-corpus'), which is valuable. But it omits ordering, pagination/truncation behavior tied to `k`, and cost or size expectations for well-cited papers.

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?

Two dense sentences, front-loaded with the core concept and then the parameter semantics; nothing is padding. It leans on backticks and abbreviated phrasing ('edges classified as baseline, `other` the rest'), which is efficient but slightly telegraphic for a first read.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Return-value shape is covered in prose despite no output schema, which is a plus. But for a 4-parameter tool with zero schema coverage, the absence of any explanation for `k` (default 50, max 500) and `paper_id` leaves a real gap in callable completeness.

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 0%, so the description must compensate. It does define `direction` (refs vs cited_by) and `intent` (baseline keeps only baseline-classified edges, other the rest), which is genuinely additive over bare enums. However `k` and `paper_id` are never mentioned, so half the parameters remain semantically undocumented.

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 resource and operation: 'In-corpus citation neighbors of a paper', then names the two directions. An agent can immediately tell this is a graph-adjacency lookup rather than a search. It stops short of explicitly contrasting with siblings like find_related_papers, so a 4 rather than a 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?

It explains what the `intent` filter does mechanically but never says when to reach for this tool instead of find_related_papers, get_paper, or exact_search. There is no prerequisite or exclusion guidance (e.g. that the paper must exist in the corpus), leaving the agent to infer selection from the name alone.

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