read_openalex_paper
Extract text content from OpenAlex academic papers by providing the paper ID and optional save directory for PDFs.
Instructions
Attempt to read and extract text content from an OpenAlex paper.
Args: paper_id: OpenAlex paper ID. save_path: Directory where the PDF is/will be saved (default: './downloads'). Returns: str: Message indicating that direct paper reading is not supported natively.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| paper_id | Yes | ||
| save_path | No | ./downloads |
Implementation Reference
- paper_search_mcp/server.py:1267-1277 (handler)The MCP tool handler that receives the read_openalex_paper request and delegates it to the openalex_searcher instance.
@mcp.tool() async def read_openalex_paper(paper_id: str, save_path: str = "./downloads") -> str: """Attempt to read and extract text content from an OpenAlex paper. Args: paper_id: OpenAlex paper ID. save_path: Directory where the PDF is/will be saved (default: './downloads'). Returns: str: Message indicating that direct paper reading is not supported natively. """ return openalex_searcher.read_paper(paper_id, save_path) - The implementation of the read_paper method within the OpenAlexSearcher class, which informs the user that direct reading is not supported.
def read_paper(self, paper_id: str, save_path: str = "./downloads") -> str: """ Not implemented for OpenAlex. """ return ( "OpenAlex papers cannot be read directly through this aggregator. " "Please use the paper's DOI or pdf_url to access the full text." )