Skip to main content
Glama
paper-retrieval

paper-retrieval

by zhangleiniu

search_passages

Search full-text passages by keyword and embedding to verify a candidate paper or locate where a paper discusses a topic, optionally restricted to specified papers.

Instructions

Passage-level search over full text (keyword + embedding). Use it to verify a candidate or find where a paper discusses something, optionally restricted to given papers. Returns passages with paper_id, section, text.

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": "search_passages"
  }
}

Input Schema

NameRequiredDescriptionDefault
kNo
queryYes
paper_idsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.5/5.0
Behavior3/5

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

With no annotations, the description carries the full burden: it discloses the hybrid retrieval strategy and the returned fields (paper_id, section, text), which is useful. It omits ranking/ordering of results, whether results are exhaustive, and any pagination or cost behavior, leaving meaningful gaps for a search tool.

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?

Three short sentences, front-loaded with the core capability before usage guidance and return format. No filler or repetition of the tool name.

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

Completeness3/5

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

For a small, 3-parameter search tool with no output schema, the description usefully states the return shape. However, the undocumented k parameter and absent result-ordering information mean an agent cannot fully predict result size or ordering before calling.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the description must explain all three parameters. It covers paper_ids implicitly ('optionally restricted to given papers') but says nothing about k — its purpose, default of 20, or cap of 100 — and adds no meaning to query beyond context.

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 specific verb and resource ('passage-level search over full text') plus the retrieval method (keyword + embedding), which separates it from paper-level siblings like find_papers. It does not explicitly name a sibling it replaces, so differentiation is implied rather than stated.

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 concrete use cases ('verify a candidate' or 'find where a paper discusses something') and notes the optional restriction to given papers, which is real when-to-use guidance. It stops short of naming alternatives such as exact_search or stating when not to use it.

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