Skip to main content
Glama
litMcp

litMcp

by L1nze

Graph Neighbors

graph_neighbors

Lists who cites or is cited by specified papers to reveal their local citation context for literature analysis.

Instructions

Show the citation neighbors (who cites it / whom it cites) of papers.

TRIGGER when the user asks 某篇文献被谁引用、它引用了谁, or wants the local citation context of specific papers.

For each requested work, lists who cites it (in / predecessors) and whom it cites (out / successors), within the selected set.

work_ids 必填:同 graph_analyze,先用 library_query 选出论文。方向语义:in = 谁引用了它;out = 它引用了谁; both = 两者都列(默认)。

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": {
      "work_ids": "<work_ids>"
    },
    "name": "graph_neighbors"
  }
}

Input Schema

NameRequiredDescriptionDefault
work_idsYesComma-separated OpenAlex work IDs (required).
directionNo``"in"`` | ``"out"`` | ``"both"`` (default ``"both"``).both

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.7/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full disclosure burden. It explains that output is per-work lists of predecessors/successors 'within the selected set' and the default direction, which is useful context. It says nothing about behavior on invalid IDs, works not in the library, or size/rate limits.

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 core statement is front-loaded and clear, but direction semantics are stated twice: once as 'in / predecessors' versus 'out / successors', and once in the bolded 方向语义 block. Mixed Chinese/English and markdown bolding add noise for a two-parameter tool.

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?

An output schema exists, so return values need not be explained, and both parameters are documented in the schema and enriched in the description. The workflow for obtaining work_ids via library_query closes the main usability gap; only edge-case behavior (unknown or out-of-library IDs) is unaddressed.

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 coverage is 100%, so baseline is 3, but the description adds genuine meaning: it spells out that 'in' means who cites it, 'out' means what it cites, and 'both' is the default, none of which the terse schema descriptions state. It also reinforces that work_ids is required and gives workflow guidance to obtain them via library_query.

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?

States a concrete verb and resource: 'Show the citation neighbors (who cites it / whom it cites) of papers.' The in/out direction framing makes the resource precise. It does not fully differentiate itself from graph_analyze or graph_visualize, beyond a reference to graph_analyze for work_ids selection.

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

Usage Guidelines4/5

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

An explicit TRIGGER block names the user intents (谁被引用 / 引用了谁) and the local-citation-context use case, and it directs the agent to select papers via library_query first. It gives no explicit when-not guidance or comparison to graph_analyze/graph_visualize, so the agent must infer which graph tool to pick.

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