Skip to main content
Glama
openags

Paper Search MCP

by openags

download_openalex

Download PDFs for academic papers using OpenAlex paper IDs. Save files to specified directories for research access.

Instructions

Download PDF for a paper from OpenAlex.

Args: paper_id: OpenAlex paper ID. save_path: Directory to save the PDF (default: './downloads'). Returns: str: Error message, typically OpenAlex relies on extracted pdf_url instead of direct downloads.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
paper_idYes
save_pathNo./downloads

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Implementation Reference

  • The 'download_openalex' tool handler in 'paper_search_mcp/server.py'. It calls 'openalex_searcher.download_pdf'.
    async def download_openalex(paper_id: str, save_path: str = "./downloads") -> str:
        """Download PDF for a paper from OpenAlex.
    
        Args:
            paper_id: OpenAlex paper ID.
            save_path: Directory to save the PDF (default: './downloads').
        Returns:
            str: Error message, typically OpenAlex relies on extracted pdf_url instead of direct downloads.
        """
        return await asyncio.to_thread(openalex_searcher.download_pdf, paper_id, save_path)
  • The 'download_pdf' method in 'OpenAlexSearcher' class. It is currently implemented to raise NotImplementedError, reflecting that OpenAlex does not support direct PDF downloads.
    def download_pdf(self, paper_id: str, save_path: str) -> str:
        """
        OpenAlex does not host PDFs natively, it only links to open access versions.
        """
        raise NotImplementedError(
            "OpenAlex does not provide direct PDF downloads natively. "
            "Please use the extracted 'pdf_url' if available, or DOI for fallback."
        )
Behavior3/5

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

With no annotations provided, the description carries the full burden. It discloses that the tool downloads a PDF and saves it to a directory, and importantly notes that OpenAlex 'relies on extracted pdf_url instead of direct downloads' and typically returns error messages. This adds useful behavioral context about potential limitations and return values, though it could elaborate more on failure modes or permissions.

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 efficiently structured with a brief purpose statement followed by Args and Returns sections. Every sentence adds value, though the Returns section could be slightly clearer. It's front-loaded with the main action, avoiding unnecessary fluff.

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

Completeness4/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, no annotations, but with an output schema), the description is reasonably complete. It explains the purpose, parameters, and return behavior, and the output schema handles return value details. However, it lacks guidance on when to use this versus siblings, which is a gap given the extensive list of alternatives.

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 description coverage is 0%, so the description must compensate. It explains both parameters: 'paper_id' as the OpenAlex paper ID and 'save_path' as the directory to save the PDF with a default. This adds clear meaning beyond the bare schema, covering both parameters adequately, though it doesn't detail format constraints (e.g., what constitutes a valid paper_id).

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 target resource ('for a paper from OpenAlex'), providing a specific verb+resource combination. However, it doesn't explicitly differentiate this tool from its many sibling download tools (like download_arxiv, download_biorxiv, etc.) beyond mentioning OpenAlex as the source.

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 tool versus the many alternative download tools in the sibling list. The description mentions OpenAlex as the source but doesn't explain when OpenAlex is appropriate compared to other sources like arXiv, PubMed, or SciHub, nor does it mention prerequisites or constraints.

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