Skip to main content
Glama
academic-tools-mcp

academic-tools-mcp

find_in_paper

Read-onlyIdempotent

Locate every occurrence of a text query inside a converted academic paper, returning section, offset, and snippet so you can jump straight to the passage discussing it.

Instructions

Find every occurrence of a query inside one converted paper.

Jumps to the part of a paper that discusses X instead of paging sections; search_cached_papers finds which paper mentions X.

Returns {query, paper_identifier, result_count, truncated, results: [{section_index, section, char_offset, match, snippet}, ...]}. Chain into get_paper_section(identifier, str(section_index), offset=char_offset); offsets align with that tool's stripped text. truncated means more matches exist than max_results returned. paper_identifier is the canonical cache key, which may differ from the spelling you passed (arXiv:2301.00001v2 → 2301.00001v2).

Errors: not converted yet → {error, suggestion} naming the pipeline. No matches is not an error — {result_count: 0, results: []}.

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

Input Schema

NameRequiredDescriptionDefault
queryYesText to find. Always matched literally — regex characters are escaped, so you cannot pass a pattern.
normalizeNoFold diacritics (NFKD + strip combining marks) before matching, so 'cafe' matches 'café' and vice versa. Offsets, match and snippet stay aligned to the original text. Word boundaries remain ASCII-oriented, so whole_words stays unreliable for non-Latin scripts.
identifierYesPaper identifier: arXiv ID, bioRxiv/medRxiv DOI, ACL Anthology ID/URL, DOI, PMID, PMCID (PMC...), or OpenAlex work ID (W...). Pipeline tools also accept freeform import labels.
max_resultsNoMax matches to return in document order.
whole_wordsNoWrap the query in word boundaries so 'set' won't match 'subset'. Default False (substring match).
case_sensitiveNoMatch case-sensitively. Default False — academic prose capitalisation is unreliable.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2026.11.21

TDQS

A4.4/5.0
Behavior3/5

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

The annotations already declare readOnlyHint, idempotentHint, destructiveHint=false, and openWorldHint=false, so safety is covered by structured data. The description adds genuinely non-obvious behavior: the error envelope naming the pipeline, that zero matches is not an error, and that paper_identifier is a canonicalized cache key that may differ from the input spelling. However, a large portion of the text is a literal restatement of the return object, which the output schema already provides.

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 the core purpose, then routing, then return/chaining, then errors — a sensible priority order with no filler sentences. The main inefficiency is the full parenthesized return-type sketch, which duplicates the output schema and crowds out more useful guidance.

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 6-parameter search tool with an output schema and rich annotations, everything an agent needs is present: when to reach for it, the sibling it replaces, how to consume the offsets downstream, deduping/truncation behavior, and the error shape. Nothing material is left to inference.

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 baseline is 3, but the description adds real meaning beyond it: char_offset is stated to align with get_paper_section's stripped text (a cross-tool contract that no schema field expresses), and truncated is defined relative to max_results. It does not explain normalize, whole_words, or case_sensitive, but those are already fully documented in the schema.

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?

The first sentence gives a specific verb and resource with an explicit scope boundary: find every occurrence of a query inside ONE converted paper. It immediately contrasts with search_cached_papers, which finds *which* paper mentions X, so an agent can distinguish the two without reading either schema.

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?

The description states both the use case (jump to the part of a paper discussing X instead of paging sections) and the explicit alternative plus its selection condition (search_cached_papers). It goes further by naming the downstream chaining call get_paper_section with the exact argument form, and clarifies the failure path for papers not yet converted.

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