Skip to main content
Glama

list_downloaded_papers

View locally cached arXiv papers with metadata to quickly access previously downloaded scientific literature without re-searching.

Instructions

List all locally downloaded papers.

Returns:
    List of downloaded papers with their metadata

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Implementation Reference

  • The handler function decorated with @mcp.tool(), implementing the logic to list downloaded papers by fetching from storage, formatting metadata, and returning a string list.
    @mcp.tool()
    def list_downloaded_papers() -> str:
        """List all locally downloaded papers.
    
        Returns:
            List of downloaded papers with their metadata
        """
        papers = storage.list_papers()
    
        if not papers:
            return "No papers downloaded yet."
    
        results = []
        for p in papers:
            authors = ", ".join(p["authors"][:3])
            if len(p["authors"]) > 3:
                authors += " et al."
    
            results.append(f"**{p['id']}**: {p['title']}\nAuthors: {authors}")
    
        return "\n---\n".join(results)
  • Supporting helper method in PaperStorage class that returns all stored paper metadata as a list of dictionaries, used by the tool handler.
    def list_papers(self) -> list[dict]:
        return list(self._metadata.values())
  • The @mcp.tool() decorator registers the list_downloaded_papers function as an MCP tool.
    @mcp.tool()
Behavior2/5

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

With no annotations provided, the description carries full burden for behavioral disclosure. While it states it 'List[s] all locally downloaded papers' and mentions the return format, it doesn't address important behavioral aspects like whether this requires file system access, how it handles large collections, what metadata fields are included, or if there are any limitations on what 'locally downloaded' means.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is appropriately concise with two brief sentences that get straight to the point. The first sentence states the purpose, the second describes the return format. There's no unnecessary verbiage, though the structure could be slightly improved by integrating the return information more seamlessly.

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 the tool has zero parameters, an output schema exists, and no annotations, the description provides basic but incomplete context. It states what the tool does and the return type, but doesn't explain important contextual details like what constitutes 'locally downloaded' (file paths? database records?), what metadata fields are included, or how this differs from sibling tools.

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 zero parameters with 100% schema description coverage, so the baseline is 4. The description appropriately doesn't waste space discussing non-existent parameters, though it could theoretically mention that no filtering options are available (which would be redundant with the empty schema).

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 ('List') and resource ('locally downloaded papers'), making the purpose immediately understandable. However, it doesn't differentiate from sibling tools like 'search' or 'get_paper' - it doesn't specify that this only shows already-downloaded content versus searching for new papers.

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. It doesn't mention that 'search' might be for finding new papers online, or that 'get_paper' might retrieve specific papers. There's no context about prerequisites or when this tool is appropriate.

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

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