Skip to main content
Glama
huanongfish

ArXiv MCP Server

by huanongfish

list_papers

Retrieve available arXiv research papers to access scientific literature for reading or analysis.

Instructions

List all existing papers available as resources

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The main handler function for the 'list_papers' tool. It lists locally stored paper IDs, fetches metadata from arXiv API, formats as JSON, and returns as TextContent.
    async def handle_list_papers(
        arguments: Optional[Dict[str, Any]] = None
    ) -> List[types.TextContent]:
        """Handle requests to list all stored papers."""
        try:
            papers = list_papers()
    
            client = arxiv.Client()
    
            results = client.results(arxiv.Search(id_list=papers))
    
            response_data = {
                "total_papers": len(papers),
                "papers": [
                    {
                        "title": result.title,
                        "summary": result.summary,
                        "authors": [author.name for author in result.authors],
                        "links": [link.href for link in result.links],
                        "pdf_url": result.pdf_url,
                    }
                    for result in results
                ],
            }
    
            return [
                types.TextContent(type="text", text=json.dumps(response_data, indent=2))
            ]
    
        except Exception as e:
            return [types.TextContent(type="text", text=f"Error: {str(e)}")]
  • Schema definition for the list_papers tool, specifying name, description, and an empty input schema (no required parameters).
    list_tool = types.Tool(
        name="list_papers",
        description="List all existing papers available as resources",
        inputSchema={
            "type": "object",
            "properties": {},
            "required": [],
        },
    )
  • Helper utility to retrieve list of stored paper IDs by scanning Markdown files in the storage directory.
    def list_papers() -> list[str]:
        """List all stored paper IDs."""
        return [p.stem for p in Path(settings.STORAGE_PATH).glob("*.md")]
  • Registration via list_tools() method, which includes 'list_tool' in the returned list of available tools.
    @server.list_tools()
    async def list_tools() -> List[types.Tool]:
        """List available arXiv research tools."""
        return [search_tool, download_tool, list_tool, read_tool]
  • Tool dispatch registration in the call_tool() handler, routing 'list_papers' calls to handle_list_papers.
    elif name == "list_papers":
        return await handle_list_papers(arguments)
Behavior2/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure. It states the tool lists papers but doesn't mention any behavioral traits such as pagination, rate limits, permissions required, or what 'available as resources' entails. 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 a single, clear sentence with no wasted words. It's front-loaded with the essential information, making it highly efficient and easy to parse.

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

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the lack of annotations and output schema, the description is incomplete. It doesn't explain what 'available as resources' means, the format of the returned list, or any constraints like ordering or limits. For a tool with no structured data support, more context is needed.

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 input schema has 0 parameters with 100% coverage, so no parameter information is needed. The description appropriately doesn't discuss parameters, and since there are none, it meets the baseline of 4 for not adding unnecessary details.

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 ('List') and resource ('all existing papers available as resources'), making the tool's purpose understandable. However, it doesn't explicitly differentiate from sibling tools like 'search_papers', which might offer filtering capabilities, so it doesn't reach the highest score.

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 like 'search_papers'. It lacks any context about use cases, prerequisites, or exclusions, leaving the agent without direction on tool selection.

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/huanongfish/arxiv-mcp'

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