Skip to main content
Glama
emi-dm

ArxivSearcher MCP Server

by emi-dm

get_paper_details

Retrieve comprehensive details for a specific arXiv paper using its unique ID to access metadata, abstracts, and publication information.

Instructions

Get detailed information about a specific paper by ArXiv ID.

:param arxiv_id: The ArXiv ID (e.g., '2301.12345')

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
arxiv_idYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • Handler function for the 'get_paper_details' tool, decorated with @mcp.tool for registration in FastMCP. Fetches detailed metadata for a specific arXiv paper using the arxiv library.
    @mcp.tool
    def get_paper_details(arxiv_id: str) -> dict:
        """
        Get detailed information about a specific paper by ArXiv ID.
    
        :param arxiv_id: The ArXiv ID (e.g., '2301.12345')
        """
        try:
            search = arxiv.Search(id_list=[arxiv_id])
            paper = next(search.results())
    
            return {
                "title": paper.title,
                "authors": [a.name for a in paper.authors],
                "summary": paper.summary,
                "pdf_url": paper.pdf_url,
                "published_date": paper.published.strftime("%Y-%m-%d"),
                "updated_date": paper.updated.strftime("%Y-%m-%d"),
                "categories": paper.categories,
                "primary_category": paper.primary_category,
                "arxiv_id": paper.entry_id.split("/")[-1],
                "doi": paper.doi,
                "journal_ref": paper.journal_ref,
                "comment": paper.comment,
            }
        except Exception as e:
            return {"error": f"Failed to fetch paper details: {str(e)}"}
  • Async handler function for the 'get_paper_details' tool in the remote version, decorated with @mcp.tool. Identical logic to the sync version but async.
    @mcp.tool
    async def get_paper_details(arxiv_id: str) -> dict:
        """
        Get detailed information about a specific paper by ArXiv ID.
    
        :param arxiv_id: The ArXiv ID (e.g., '2301.12345')
        """
        try:
            search = arxiv.Search(id_list=[arxiv_id])
            paper = next(search.results())
    
            return {
                "title": paper.title,
                "authors": [a.name for a in paper.authors],
                "summary": paper.summary,
                "pdf_url": paper.pdf_url,
                "published_date": paper.published.strftime("%Y-%m-%d"),
                "updated_date": paper.updated.strftime("%Y-%m-%d"),
                "categories": paper.categories,
                "primary_category": paper.primary_category,
                "arxiv_id": paper.entry_id.split("/")[-1],
                "doi": paper.doi,
                "journal_ref": paper.journal_ref,
                "comment": paper.comment,
            }
        except Exception as e:
            return {"error": f"Failed to fetch paper details: {str(e)}"}
Behavior2/5

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

No annotations are provided, so the description carries the full burden of behavioral disclosure. It states what the tool does but doesn't describe any behavioral traits such as whether it's read-only, potential rate limits, authentication needs, error handling, or what 'detailed information' entails beyond the basic operation. This leaves significant gaps in understanding how the tool behaves.

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 extremely concise and well-structured: the first sentence clearly states the purpose, and the second sentence provides essential parameter details with an example. Every sentence earns its place with no wasted words, making it easy to parse quickly.

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 that there's an output schema (which handles return values), a single parameter with good semantic coverage in the description, and no annotations, the description is minimally adequate. However, it lacks context on behavioral aspects and usage guidelines relative to siblings, leaving room for improvement in completeness for effective tool selection.

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?

The description adds meaningful context for the single parameter 'arxiv_id' by explaining it's an ArXiv ID and providing an example format ('e.g., '2301.12345''). Since schema description coverage is 0% and there's only one parameter, this effectively compensates by clarifying the parameter's purpose and format, though it doesn't cover edge cases or validation rules.

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 verb ('Get detailed information') and resource ('about a specific paper by ArXiv ID'), making the purpose immediately understandable. However, it doesn't explicitly differentiate from sibling tools like 'search_papers' or 'find_related_papers' that might also retrieve paper information but with different scopes or methods.

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?

The description provides no guidance on when to use this tool versus alternatives. With siblings like 'search_papers' and 'find_related_papers' available, there's no indication that this tool is specifically for retrieving details when you already have an ArXiv ID, versus searching or finding related papers through other means.

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/emi-dm/Arxiv-MCP'

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