Skip to main content
Glama
litMcp

litMcp

by L1nze

Graph Visualize

graph_visualize

Render an interactive HTML citation network of selected papers, colored by year and sized by citations, with search, filters, and hover details; open the saved file in a browser.

Instructions

Generate an interactive HTML visualization of the citation network.

TRIGGER when the user asks to 可视化/画出引文网络图, or wants a visual map of how collected papers cite each other.

Renders the selected works as an interactive graph (vis.js) saved to ~/.AI-CACHE/openalex/graphs/ — open the returned path in a browser.

Visual encoding:

  • color = publication year (light = older, dark = newer)

  • label = first-author surname + year on prominent/hovered nodes

  • size = cited-by count (robust log-scaled)

  • edge brightness = local citation-structure strength

  • short force-directed settling animation, then physics auto-freezes

  • click for amber highlight; hover syncs the right detail panel

  • in-page filters: search box (title/author/ID), year range, and community dropdown dim non-matching nodes and hide their edges

work_ids 必填:同 graph_analyze。建议 30~120 篇。超过 120 篇时, 可视化会按被引量、PageRank、集合内被引用次数和奠基性年份自动截取重要论文; 完整集合分析仍可用 graph_analyze。

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

Input Schema

NameRequiredDescriptionDefault
work_idsYesComma-separated OpenAlex work IDs (required).
output_dirNoOptional output directory, must be empty (default ``~/.AI-CACHE/openalex/graphs/``) or a subdirectory beneath it; other locations are rejected.

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.5/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does well: it names the output directory, states the output_dir-must-be-empty constraint, discloses that >120 works are auto-truncated by cited-by/PageRank/in-set citations, and describes the physics freezing and filter behavior. It stops short of saying whether OpenAlex is queried at render time, rough runtime cost, or overwrite semantics for the returned path.

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?

Front-loads the purpose, then TRIGGER, then output/location, then visual encoding as scannable bullets, then the input constraint. The encoding bullets are longer than strictly necessary for invocation but are useful for explaining the artifact to a user.

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 explained, and the description supplies the missing operational context: file location, directory constraint, and truncation policy. For a file-writing visualization tool with no annotations, the main residual gap is whether any external fetch or failure mode should be expected.

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 the schema already documents both parameters; the description still adds value by flagging work_ids as mandatory, recommending 30–120 works, and explaining what happens to the excess. The output_dir empty/subdirectory constraint is repeated from the schema rather than extended.

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 and resource ('Generate an interactive HTML visualization of the citation network'), and the truncation note explicitly contrasts this tool with graph_analyze for full-set analysis, so an agent can tell the two siblings apart.

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?

Gives an explicit TRIGGER condition (可视化/画出引文网络图 or a visual map request), a recommended input size (30–120 works), and routes to graph_analyze when the full set must be analyzed. When-to-use and the alternative are both named.

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