Skip to main content
Glama
Paper Distill MCP Server

Paper Distill MCP Server

by Eclipse-Cj

Rank Papers

rank_papers

Scores and orders a list of papers by weighted relevance, recency, impact, and novelty, returning the top N results for a topic.

Instructions

Score and rank papers using 4-factor weighted formula.

Factors: relevance (0.55), recency (0.20), impact (0.15), novelty (0.10). Uses topic_prefs.json for relevance scoring and papers.jsonl for novelty detection.

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": {
      "papers": "<papers>"
    },
    "name": "rank_papers"
  }
}

Input Schema

NameRequiredDescriptionDefault
top_nNoReturn top N papers after ranking
papersYesList of paper dicts (from search_papers)

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added
  2. Removedv0.2.2
  3. First observedv0.2.4

TDQS

B3.3/5.0
Behavior2/5

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

With no annotations at all, the description carries the full behavioral burden and only partially meets it. It discloses the data dependencies and scoring internals, but says nothing about side effects (whether papers.jsonl or topic_prefs.json are read-only or mutated), what happens when a paper lacks impact or recency metadata, or failure modes for missing preference files.

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?

Three short lines, front-loaded with the core action, then the formula, then the data dependencies. Nothing is padded, though the factor weights and the dependency sentence could be slightly better integrated rather than split as fragments.

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 the two-parameter schema is well documented. What remains missing is edge-case behavior for papers lacking metadata for the impact/novelty factors, which matters for a scoring tool that will silently produce skewed ranks.

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 description coverage is 100%, with both `papers` ("from search_papers") and `top_n` documented in the schema, so the baseline is 3. The description adds no parameter-level meaning, such as what shape a paper dict must have for impact/recency scoring to succeed or how top_n interacts with ties.

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 ("Score and rank papers") and goes further by exposing the exact weighted formula and its four factors, so an agent knows precisely what computation happens. It does not explicitly contrast itself with siblings such as search_papers, though the pipeline role is distinguishable from a retrieval tool.

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?

Usage is only implied: the description reveals prerequisites (topic_prefs.json for relevance, papers.jsonl for novelty) which signals this is a post-search processing step. It never states when to call this instead of alternatives, nor any exclusion such as when ranking is unnecessary or when the preference files are absent.

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