Skip to main content
Glama
openags

Paper Search MCP

by openags

search_biorxiv

Search bioRxiv for recent academic papers by research category. Filter papers from the last 30 days using discipline keywords like 'bioinformatics' or 'neuroscience' to find relevant preprints.

Instructions

Search academic papers from bioRxiv.

Note: bioRxiv API filters by category name within the last 30 days, not full-text keyword search. Use a category keyword such as 'bioinformatics', 'neuroscience', 'cell biology', etc.

Args: query: Category name to filter by (e.g., 'bioinformatics', 'neuroscience'). max_results: Maximum number of papers to return (default: 10). Returns: List of paper metadata in dictionary format.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
queryYes
max_resultsNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Implementation Reference

  • The search_biorxiv handler function in server.py calls the async_search helper with the biorxiv_searcher platform instance.
    async def search_biorxiv(query: str, max_results: int = 10) -> List[Dict]:
        """Search academic papers from bioRxiv.
    
        Note: bioRxiv API filters by category name within the last 30 days, not full-text
        keyword search. Use a category keyword such as 'bioinformatics', 'neuroscience',
        'cell biology', etc.
    
        Args:
            query: Category name to filter by (e.g., 'bioinformatics', 'neuroscience').
            max_results: Maximum number of papers to return (default: 10).
        Returns:
            List of paper metadata in dictionary format.
        """
        papers = await async_search(biorxiv_searcher, query, max_results)
        return papers if papers else []
  • The actual implementation of the search logic for bioRxiv, located in the BioRxivSearcher class.
    def search(self, query: str, max_results: int = 10, days: int = 30) -> List[Paper]:
        """
        Search for papers on bioRxiv by category within the last N days.
    
        Args:
            query: Category name to search for (e.g., "cell biology").
            max_results: Maximum number of papers to return.
            days: Number of days to look back for papers.
    
        Returns:
            List of Paper objects matching the category within the specified date range.
        """
        # Calculate date range: last N days
        end_date = datetime.now().strftime('%Y-%m-%d')
        start_date = (datetime.now() - timedelta(days=days)).strftime('%Y-%m-%d')
        
        # Format category: lowercase and replace spaces with underscores
        category = query.lower().replace(' ', '_')
        
        papers = []
        cursor = 0
        while len(papers) < max_results:
            url = f"{self.BASE_URL}/{start_date}/{end_date}/{cursor}"
            if category:
                url += f"?category={category}"
            tries = 0
            while tries < self.max_retries:
                try:
                    response = self.session.get(url, timeout=self.timeout)
                    response.raise_for_status()
                    data = response.json()
                    collection = data.get('collection', [])
                    for item in collection:
                        try:
                            date = datetime.strptime(item['date'], '%Y-%m-%d')
                            papers.append(Paper(
                                paper_id=item['doi'],
                                title=item['title'],
                                authors=item['authors'].split('; '),
                                abstract=item['abstract'],
                                url=f"https://www.biorxiv.org/content/{item['doi']}v{item.get('version', '1')}",
                                pdf_url=f"https://www.biorxiv.org/content/{item['doi']}v{item.get('version', '1')}.full.pdf",
                                published_date=date,
                                updated_date=date,
                                source="biorxiv",
                                categories=[item['category']],
                                keywords=[],
                                doi=item['doi']
                            ))
                        except Exception as e:
                            print(f"Error parsing bioRxiv entry: {e}")
                    if len(collection) < 100:
                        break  # No more results
                    cursor += 100
                    break  # Exit retry loop on success
                except requests.exceptions.RequestException as e:
                    tries += 1
                    if tries == self.max_retries:
                        print(f"Failed to connect to bioRxiv API after {self.max_retries} attempts: {e}")
                        break
                    print(f"Attempt {tries} failed, retrying...")
            else:
                continue
            break
    
        return papers[:max_results]
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 of behavioral disclosure. It effectively describes key behavioral traits: the search is limited to category-based filtering (not full-text), results are constrained to the last 30 days, and it returns paper metadata in dictionary format. It doesn't mention rate limits, authentication needs, or pagination behavior, but covers the core operational constraints well.

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 efficiently structured with a clear purpose statement, important behavioral note, and well-organized parameter explanations. Every sentence earns its place by providing essential information without redundancy. The use of sections (Args, Returns) enhances readability while maintaining brevity.

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

Completeness5/5

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

Given the tool's moderate complexity (2 parameters, no annotations, but with output schema), the description provides complete context. It explains what the tool does, its limitations (category-only, last 30 days), parameter semantics, and return format. The presence of an output schema means the description doesn't need to detail return value structure, and it appropriately focuses on usage constraints and parameter guidance.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

With 0% schema description coverage, the description fully compensates by providing clear semantic meaning for both parameters. It explains that 'query' should be a category name like 'bioinformatics' or 'neuroscience' (not arbitrary keywords), and that 'max_results' has a default of 10 and controls the maximum number of papers returned. This adds significant value beyond the bare schema.

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

Purpose5/5

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

The description clearly states the tool searches academic papers from bioRxiv, specifying it filters by category name within the last 30 days rather than full-text keyword search. This distinguishes it from sibling tools like search_arxiv or search_pubmed that might have different search mechanisms or data sources.

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

Usage Guidelines5/5

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

The description explicitly states when to use this tool ('Search academic papers from bioRxiv') and provides critical exclusion guidance: 'Note: bioRxiv API filters by category name within the last 30 days, not full-text keyword search.' It also provides specific examples of valid category keywords like 'bioinformatics' and 'neuroscience' to guide proper usage.

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