Skip to main content
Glama
openags

Paper Search MCP

by openags

download_base

Download PDF files of academic papers from BASE using paper identifiers. Specify a save directory to retrieve and store research documents.

Instructions

Download PDF for a paper from BASE.

Args: paper_id: BASE paper identifier. save_path: Directory to save the PDF (default: './downloads'). Returns: str: Path to downloaded PDF.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
paper_idYes
save_pathNo./downloads

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Implementation Reference

  • MCP tool registration and wrapper for `download_base`.
    @mcp.tool()
    async def download_base(paper_id: str, save_path: str = "./downloads") -> str:
        """Download PDF for a paper from BASE.
    
        Args:
            paper_id: BASE paper identifier.
            save_path: Directory to save the PDF (default: './downloads').
        Returns:
            str: Path to downloaded PDF.
        """
        return base_searcher.download_pdf(paper_id, save_path)
  • Actual implementation of the PDF download logic for BASE in BASESearcher class.
    def download_pdf(self, paper_id: str, save_path: str) -> str:
        """Download PDF for a BASE record.
    
        BASE often provides direct PDF links in metadata.
    
        Args:
            paper_id: BASE identifier or OAI-PMH identifier
            save_path: Directory to save PDF
    
        Returns:
            Path to saved PDF file
    
        Raises:
            NotImplementedError: If PDF cannot be downloaded
        """
        # Try parent method first (searches for PDF URL)
Behavior2/5

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

With no annotations provided, the description carries full burden for behavioral disclosure. While it mentions the download action and return value, it doesn't describe important behavioral aspects like: whether authentication is required, rate limits, error handling (what happens if paper isn't found), file naming conventions, or whether it overwrites existing files. The description provides basic functional information but lacks operational context.

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?

The description is efficiently structured with a clear purpose statement followed by well-organized Arg/Return sections. Every sentence earns its place - the first sentence states the core functionality, and the subsequent lines provide essential parameter and return value information without redundancy or unnecessary elaboration.

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 tool's moderate complexity (2 parameters, download operation) and the presence of an output schema (which handles return value documentation), the description covers the basics adequately. However, for a tool with no annotations and many similar siblings, it should provide more contextual guidance about when to use it versus alternatives and more behavioral details about the download process.

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?

With 0% schema description coverage, the description must compensate but only partially succeeds. It explains that 'paper_id' is a 'BASE paper identifier' and 'save_path' is a 'Directory to save the PDF', which adds useful semantic context beyond the bare schema. However, it doesn't clarify format expectations (e.g., what a BASE identifier looks like, path validation rules) or provide examples, leaving gaps in parameter understanding.

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 action ('Download PDF') and resource ('for a paper from BASE'), making the purpose immediately understandable. However, it doesn't explicitly differentiate this tool from its many sibling download tools (like download_arxiv, download_biorxiv, etc.), which all appear to perform similar PDF downloading operations from different sources.

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 about when to use this specific tool versus the many alternative download tools in the sibling list. The description doesn't mention prerequisites, constraints, or comparison with similar tools like 'download_with_fallback' or the various 'read_*_paper' tools that might serve overlapping purposes.

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