Skip to main content
Glama
academic-tools-mcp

academic-tools-mcp

search_cached_papers

Read-onlyIdempotent

Search locally cached academic papers by keyword to find which paper mentions a term, then trace hits to sections or in-paper matches. Use for exact cached-paper lookup.

Instructions

BM25 keyword search across all locally converted papers (SQLite FTS5).

Answers "which cached paper mentioned X?". Chain hits via get_paper_section(canonical_id, str(section_index)) or find_in_paper. Pure keyword match (no synonyms); reports any unindexable files separately.

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

Input Schema

NameRequiredDescriptionDefault
queryYesFree-text query against the converted-markdown cache. Tokenised on words, stopwords dropped, and matched as a bag-of-words — 'variational dropout' ranks by how often each term appears, not strictly the bigram.
top_kNoMax BM25 hits to return.
namespaceNoOptional cache namespace filter (arxiv, biorxiv, acl_anthology, manual).
normalizeNoFold diacritics on both the query and the documents before tokenising, so 'cafe' and 'café' rank identically. Snippet offsets stay aligned to the original markdown.
force_refreshNoRebuild every index entry instead of trusting the per-file mtime/size staleness check. The index updates incrementally on its own; use this only if a cached file changed without its modification time changing.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2026.11.21

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare read-only, idempotent, closed-world, non-destructive behavior, so the bar is lower; the description still adds real value by disclosing the keyword-only matching model, that unindexable files are reported separately, and that the index self-updates incrementally (making force_refresh a rare escape hatch). It stops short of describing result ordering/scoring output or pagination, but the output schema covers returns.

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?

Four short sentences, front-loaded with the core verb+resource and scope, then the use-case question, then the chaining path, then the keyword-only caveat. Nothing is redundant with the schema and every sentence carries information.

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?

For a filtered local-search tool with full annotation coverage, a 100%-described 5-parameter schema, and an output schema handling return values, the description covers what remains: corpus scope, matching semantics, and how to continue from a hit. Nothing an agent needs to call it correctly is missing.

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 coverage is 100% and each parameter carries a rich description (tokenization behavior, namespace values, diacritic folding, staleness rationale), so the schema does the heavy lifting. The description adds only the chaining signature (canonical_id, section_index) and does not elaborate on top_k, namespace, or normalize beyond what the schema already says. Baseline 3 applies.

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 plus scope: 'BM25 keyword search across all locally converted papers (SQLite FTS5)'. The phrase 'locally converted papers' separates it from the many remote-search siblings (search_arxiv, search_openalex, search_crossref_by_title), and the example question 'which cached paper mentioned X?' pins the intent.

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 a concrete use case ('which cached paper mentioned X?') and explicit next-step routing: chain hits via get_paper_section(canonical_id, section_index) or find_in_paper. The 'Pure keyword match (no synonyms)' note signals when this is the wrong tool for conceptual queries, though it never names a semantic alternative or states exclusions outright.

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