Skip to main content
Glama
litMcp

litMcp

by L1nze

Graph Analyze

graph_analyze

Analyze citation relationships among selected papers by building a directed citation graph and identifying influential works, citation clusters, and core research papers.

Instructions

Analyze the citation network among a selected set of papers.

TRIGGER when the user asks about citation relationships, who cites whom, core/classic papers, or research clusters among collected literature (引文网络分析、引用关系、找关键文献/文献簇).

Builds a directed citation graph over the given works — node = paper, edge A → B means A cites B. Only works in work_ids become nodes; only citations where BOTH papers are in the list are kept (induced subgraph).

work_ids 必填:不填/为空会报错。请先用 library_query 选出目标 论文,再把它们的 ID 列表传进来。例如:

SELECT id FROM works WHERE publication_year > 2023 ORDER BY cited_by_count DESC LIMIT 100

返回 PageRank、被引最多(入度)、引用最多(出度)、中介中心度、 社区划分(密集互引的论文簇)等结构化分析。

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_analyze"
  }
}

Input Schema

NameRequiredDescriptionDefault
work_idsYesComma-separated OpenAlex work IDs (required), e.g. ``"W123,W456,W789"``.

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.9/5.0
Behavior3/5

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

With no annotations at all, the description carries the full burden. It does disclose real behavioral traits: the graph is directed, edges are kept only when both endpoints are in the list (induced subgraph), and empty work_ids raises an error. It says nothing about size limits, runtime cost, or what happens to isolates, which matters for a compute-style tool receiving potentially hundreds of IDs.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded with purpose then trigger, then graph semantics, then the required-parameter rule and an example. Every block earns its place; no filler sentences or restated title.

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 needn't be spelled out, and the description still previews the metric families (PageRank, in/out degree, betweenness, communities). For a single-parameter analysis tool this is nearly complete; only practical limits such as maximum list size or expected runtime are missing.

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% and there is only one parameter, so the baseline is already 3. The description adds genuine meaning beyond the schema: the parameter is strictly required, an empty value errors out, and it shows a concrete SQL query for producing the ID list. The only gap is that the comma-separated example duplicates the schema text.

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 gives a specific verb and resource (analyze the citation network) and precise scope: 'node = paper, edge A → B means A cites B' over an induced subgraph of work_ids. That is far more than a restatement of the name. It does not explicitly distinguish itself from siblings like graph_neighbors or graph_visualize, so an agent must infer the boundary from the induced-subgraph wording alone.

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?

It states a clear trigger condition ('citation relationships, who cites whom, core/classic papers, or research clusters') and a prerequisite workflow: use library_query first to select papers, then pass their IDs. It gives no when-not-to-use guidance and never names the graph_neighbors or graph_visualize alternatives, so the negative case is left to inference.

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