fetch_paper_details_from_arxiv
Retrieve paper details from arXiv using IDs to access metadata, abstracts, and publication information for research analysis.
Instructions
Get the Arxiv info for a list of papers.
Args:
arxiv_ids (list[str] | str): The IDs of the papers to get the Arxiv info for, e.g. ["2503.01469", "2503.01470"]
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| arxiv_ids | Yes |
Implementation Reference
- paperpal.py:34-42 (handler)The handler function decorated with @mcp.tool() registers and implements the 'fetch_paper_details_from_arxiv' tool. It accepts arxiv_ids (str or list[str]), fetches paper details asynchronously from Arxiv via get_arxiv_info_from_arxiv_ids, formats them using stringify_papers, and returns a string representation.@mcp.tool() async def fetch_paper_details_from_arxiv(arxiv_ids: list[str] | str) -> str: """Get the Arxiv info for a list of papers. Args: arxiv_ids (list[str] | str): The IDs of the papers to get the Arxiv info for, e.g. ["2503.01469", "2503.01470"] """ arxiv_papers: list[ArxivPaper] = await get_arxiv_info_from_arxiv_ids(arxiv_ids) return stringify_papers(arxiv_papers)