Skip to main content
Glama
paper-retrieval

paper-retrieval

by zhangleiniu

find_papers

Search a full-text, citation-linked AI/ML paper corpus for work matching a research question and return ranked papers with evidence passages and official URLs.

Instructions

Search the paper corpus (with full text and an in-corpus citation graph) for papers matching a research question. Runs the full pipeline: keyword and embedding search over titles, abstracts and full-text passages, citation-graph expansion, and cross-encoder reranking. This is the main entry point. ALWAYS pass the user's question verbatim, unchanged, as original_query on every call. Put your own rewrite or sub-question in query. On the first call pass the verbatim question as both. Results for the original question are always fused in, so a narrow rewrite cannot lose them. Each result has paper_id, title, venue, year, url (cite this), ranks per retrieval channel, and an evidence passage: judge relevance yourself from the title and the passage. If the results clearly miss the question, rephrase and search again.

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": {
      "query": "<query>"
    },
    "name": "find_papers"
  }
}

Input Schema

NameRequiredDescriptionDefault
kNo
queryYesThe search text: the user's question, or your sub-question / rewrite.
filtersNoOptional restrictions on the returned papers.
llm_judgeNoAlso grade each result with the service's local LLM (slow, ~10 s; off by default, and null when that LLM is not running). Not needed when you read the evidence yourself.
relation_typeNoKind of relation sought. `baseline` uses citation-intent weighting; the others rank as `any` and are reflected in the judgment.any
original_queryNoThe user's question verbatim. Pass it on every call.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.4/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 discloses the multi-stage pipeline, that results for the original query are always fused in so a narrow rewrite cannot lose them, and that relevance must be judged by the caller from title plus evidence passage. It omits any statement about latency, corpus size, or authentication expectations for the non-default judge path, keeping it from a 5.

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-loaded with purpose, then retrieval behavior, then the query-construction rule, then how to read results — a sensible order. A couple of clauses restate schema content (verbatim original_query), which is mild redundancy but earns its place as emphasis.

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

Completeness5/5

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

There is no output schema, and the description compensates by enumerating the result fields (paper_id, title, venue, year, url, per-channel ranks, evidence passage) and telling the agent to judge relevance itself. Combined with the entry-point framing and retry loop, nothing essential is missing for a 6-parameter search tool.

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 83%, so the baseline is 3; the description goes beyond it by prescribing the query/original_query split, insisting original_query be verbatim on every call, and telling the caller to pass both on the first call. It adds no guidance on k, filters or relation_type beyond what the schema already documents.

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 ('Search the paper corpus') and scopes it to 'papers matching a research question', then enumerates the retrieval channels used. 'This is the main entry point' plus the pipeline description distinguishes it from siblings like exact_search, search_passages and find_related_papers without needing to name them.

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?

Gives clear when-to-use context ('main entry point') and a retry policy: 'If the results clearly miss the question, rephrase and search again.' It does not explicitly say when to prefer exact_search or get_citation_neighbors instead, so the routing guidance stops just short of a full when/when-not statement.

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