Skip to main content
Glama

list_papers

Retrieve available research papers from arXiv to access scientific literature for academic exploration and analysis.

Instructions

List all existing papers available as resources

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • Main handler function for the 'list_papers' tool. It lists locally stored papers, fetches metadata from arXiv API, and returns a JSON-formatted list with titles, summaries, authors, links, and PDF URLs.
    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 parameters required).
    list_tool = types.Tool(
        name="list_papers",
        description="List all existing papers available as resources",
        inputSchema={
            "type": "object",
            "properties": {},
            "required": [],
        },
    )
  • Registration of the 'list_papers' tool (as 'list_tool') in the server's list_tools method, making it discoverable via MCP protocol.
    @server.list_tools()
    async def list_tools() -> List[types.Tool]:
        """List available arXiv research tools."""
        return [search_tool, download_tool, list_tool, read_tool]
  • Dispatch/registration logic in the call_tool handler that routes 'list_papers' calls to the specific handle_list_papers function.
    elif name == "list_papers":
        return await handle_list_papers(arguments)
  • Helper function that scans the storage directory for downloaded paper Markdown files and returns their IDs (filenames without extension).
    def list_papers() -> list[str]:
        """List all stored paper IDs."""
        return [p.stem for p in Path(settings.STORAGE_PATH).glob("*.md")]
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, sorting, filtering, rate limits, or what 'available as resources' entails. This leaves significant gaps for a tool that likely returns a list of items.

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 core purpose and appropriately sized for a simple list tool, making it highly efficient.

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 'papers' or 'resources' mean, the format of the returned list, or any constraints (e.g., access limits). For a tool with no structured metadata, more context is needed to be fully helpful.

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 tool has 0 parameters, and the input schema has 100% description coverage (though empty). The description doesn't need to add parameter semantics, so it meets the baseline of 4 for tools with no parameters, as it doesn't introduce confusion or omissions.

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'), providing a specific verb+resource combination. However, it doesn't differentiate from sibling tools like 'search_papers' or 'read_paper', which would be needed for a score of 5.

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' or 'download_paper'. It lacks context about usage scenarios, exclusions, or prerequisites, leaving the agent with minimal direction.

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

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