Skip to main content
Glama
openags

Paper Search MCP

by openags

download_ssrn

Download PDFs for academic papers from SSRN using paper identifiers. Note: SSRN connector provides metadata only and does not support actual file downloads.

Instructions

Download PDF for a paper from SSRN.

Note: SSRN connector is metadata-only and download is not supported.

Args: paper_id: SSRN paper identifier. save_path: Directory to save the PDF (unused). Returns: str: Error message from metadata-only SSRN connector.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
paper_idYes
save_pathNo./downloads

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Implementation Reference

  • The 'download_ssrn' handler in 'server.py', which acts as the wrapper function for the tool. Note that it delegates to the 'SSRNSearcher' and documentation notes it is a metadata-only connector.
    async def download_ssrn(paper_id: str, save_path: str = "./downloads") -> str:
        """Download PDF for a paper from SSRN.
    
        Note: SSRN connector is metadata-only and download is not supported.
    
        Args:
            paper_id: SSRN paper identifier.
            save_path: Directory to save the PDF (unused).
        Returns:
            str: Error message from metadata-only SSRN connector.
        """
        return ssrn_searcher.download_pdf(paper_id, save_path)
  • The 'SSRNSearcher.download_pdf' implementation in 'ssrn.py'. This contains the logic (or lack thereof, as it is a best-effort/metadata-only service) for downloading PDFs from SSRN.
    def download_pdf(self, paper_id: str, save_path: str = "./downloads") -> str:
        """Download PDF for an SSRN paper when a public direct link is available.
    
        SSRN frequently requires login for PDF delivery. This method is
        best-effort only and returns an explanatory message when no accessible
        public PDF link can be resolved.
    
        Args:
            paper_id: SSRN ID in ``ssrn:<id>`` format, raw numeric id, or URL.
            save_path: Directory to save downloaded PDF.
    
        Returns:
            Saved PDF path on success, otherwise an explanatory message.
        """
        abstract_id = self._extract_abstract_id(paper_id)
        if not abstract_id:
            return f"Invalid SSRN paper id: {paper_id}"
    
        pdf_url = self._resolve_pdf_url(abstract_id)
        if not pdf_url:
            return (
                f"No publicly accessible SSRN PDF URL found for {abstract_id}. "
                "The paper may require SSRN login or restricted access."
            )
    
        os.makedirs(save_path, exist_ok=True)
        output_path = os.path.join(save_path, f"ssrn_{abstract_id}.pdf")
    
        try:
            response = self.session.get(pdf_url, stream=True, timeout=60)
            response.raise_for_status()
    
            content_type = (response.headers.get("content-type") or "").lower()
            first_chunk = next(response.iter_content(chunk_size=1024), b"")
            if "pdf" not in content_type and not first_chunk.startswith(b"%PDF"):
                return (
                    f"Resolved SSRN URL is not a direct PDF ({pdf_url}). "
                    "This likely requires browser login."
                )
Behavior4/5

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

With no annotations provided, the description carries the full burden. It discloses critical behavioral traits: the tool is metadata-only (implying it won't actually download PDFs), the save_path parameter is unused, and it returns an error message. This covers key limitations and expected outcomes, though it lacks details on rate limits, authentication needs, or specific error conditions.

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 well-structured and front-loaded with the main purpose, followed by a critical note and clear parameter/return explanations. Every sentence adds value: the first states the intent, the second warns of limitations, and the subsequent lines detail inputs and outputs without redundancy. It's appropriately sized for the tool's complexity.

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

Completeness4/5

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

Given the tool's complexity (simple parameters but critical behavioral limitations), no annotations, and an output schema present (implied by 'Returns: str'), the description is largely complete. It covers purpose, limitations, parameter semantics, and return values. However, it could improve by mentioning sibling tools or error-handling specifics, though the output schema reduces the need for detailed return explanations.

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?

Schema description coverage is 0%, so the description must compensate. It explains that 'paper_id' is an SSRN paper identifier and 'save_path' is a directory to save the PDF but is unused. This adds meaningful context beyond the schema's basic titles and types, clarifying parameter roles and limitations. However, it doesn't specify format constraints (e.g., paper_id structure) or provide examples.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states the tool downloads PDFs from SSRN, which is a clear verb+resource combination. However, it doesn't differentiate from sibling tools like 'download_arxiv' or 'download_biorxiv' beyond specifying the SSRN source. The note about metadata-only limitations adds specificity but doesn't fully distinguish it from similar download tools for other repositories.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides explicit guidance about when NOT to use this tool ('SSRN connector is metadata-only and download is not supported'), which is valuable context. However, it doesn't mention when to use this tool versus alternatives like 'read_ssrn_paper' or other download tools for different repositories, nor does it provide prerequisites or error handling advice beyond the return statement.

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/openags/paper-search-mcp'

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