Skip to main content
Glama
openags

Paper Search MCP

by openags

read_base_paper

Extract text content from academic papers using the BASE paper identifier. Downloads and processes PDFs to provide readable text for research analysis.

Instructions

Read and extract text content from a BASE paper.

Args: paper_id: BASE paper identifier. save_path: Directory where the PDF is/will be saved (default: './downloads'). Returns: str: Extracted text content.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
paper_idYes
save_pathNo./downloads

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Implementation Reference

  • MCP tool handler for 'read_base_paper'. It calls the 'read_paper' method of the 'base_searcher' instance.
    @mcp.tool()
    async def read_base_paper(paper_id: str, save_path: str = "./downloads") -> str:
        """Read and extract text content from a BASE paper.
    
        Args:
            paper_id: BASE paper identifier.
            save_path: Directory where the PDF is/will be saved (default: './downloads').
        Returns:
            str: Extracted text content.
        """
        return base_searcher.read_paper(paper_id, save_path)
  • Implementation of 'read_paper' in BASESearcher, which wraps the base class 'read_paper' method to provide platform-specific error handling.
    def read_paper(self, paper_id: str, save_path: str = "./downloads") -> str:
        """Read paper text from PDF.
    
        Args:
            paper_id: Paper identifier
            save_path: Directory where PDF is/will be saved
    
        Returns:
            Extracted text content
    
        Raises:
            NotImplementedError: If PDF cannot be read
        """
        try:
            return super().read_paper(paper_id, save_path)
        except Exception as e:
            logger.error(f"Error reading BASE paper {paper_id}: {e}")
            raise NotImplementedError(
                f"Cannot read paper from BASE: {e}"
            )
Behavior2/5

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

No annotations are provided, so the description carries full burden. It mentions that the tool 'read and extract text content' and saves a PDF to a directory, implying file system interaction. However, it doesn't disclose critical behavioral traits like whether it downloads the paper if not already present, potential rate limits, authentication needs, error handling, or what 'extract' entails (e.g., OCR, plain text). The description adds minimal context beyond the basic operation.

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?

The description is appropriately sized and front-loaded: the first sentence states the purpose clearly, followed by structured sections for Args and Returns. There's no wasted text, though the structure could be more integrated (e.g., merging the initial sentence with the sections). Every sentence earns its place by providing essential information.

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?

Given the complexity (a tool that reads and extracts text, potentially involving downloads), no annotations, 0% schema coverage, but with an output schema (implied by 'Returns: str'), the description is minimally adequate. It covers the basic operation and parameters but lacks details on behavior, error cases, or integration with siblings. The output schema reduces the need to explain return values, but more context on the tool's role in the ecosystem would improve completeness.

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 0%, so the schema provides no parameter descriptions. The description includes an 'Args' section that explains 'paper_id' as a 'BASE paper identifier' and 'save_path' as a 'Directory where the PDF is/will be saved', adding meaning beyond the bare schema. However, it doesn't clarify format expectations (e.g., what a BASE paper identifier looks like) or the implications of the save_path default, leaving some ambiguity. With 0% coverage, this partially compensates but not fully.

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 clearly states the tool's purpose: 'Read and extract text content from a BASE paper.' It specifies the verb ('read and extract'), resource ('BASE paper'), and output ('text content'). However, it doesn't explicitly differentiate from sibling tools like 'read_arxiv_paper' or 'download_base' beyond mentioning 'BASE paper' in the resource.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

No guidance is provided on when to use this tool versus alternatives. With many sibling tools like 'download_base', 'search_base', and other 'read_*_paper' tools, the description lacks context on prerequisites, distinctions, or exclusions. It only states what it does, not when it's appropriate.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/openags/paper-search-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server