Skip to main content
Glama
adityak74

MCP Scholarly Server

by adityak74

search-arxiv

Search arXiv for academic articles using keywords to find relevant research papers and scholarly publications.

Instructions

Search arxiv for articles related to the given keyword.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
keywordYes

Implementation Reference

  • Main handler function that orchestrates the arXiv search and result formatting.
    def search(self, keyword, max_results=10) -> List[str]:
        results = self.arxiv_search(keyword, max_results)
        return self._parse_results(results)
  • Core search logic using arxiv.Client to query arXiv API.
    def arxiv_search(self, keyword, max_results=10):
        search = arxiv.Search(query=keyword, max_results=max_results, sort_by=arxiv.SortCriterion.SubmittedDate)
        results = self.client.results(search)
        all_results = list(results)
        return all_results
  • Tool dispatch in MCP server that instantiates ArxivSearch and calls its search method.
    if name == "search-arxiv":
        arxiv_search = ArxivSearch()
        formatted_results = arxiv_search.search(keyword)
  • Tool registration in list_tools handler, including name, description, and JSON schema for input validation.
    types.Tool(
        name="search-arxiv",
        description="Search arxiv for articles related to the given keyword.",
        inputSchema={
            "type": "object",
            "properties": {
                "keyword": {"type": "string"},
            },
            "required": ["keyword"],
        },
    ),
  • Helper function to format arXiv search results into readable text strings.
    @staticmethod
    def _parse_results(results):
        formatted_results = []
    
        for result in results:
            title = result.title
            summary = result.summary
            links = "||".join([link.href for link in result.links])
            pdf_url = result.pdf_url
    
            article_data = "\n".join([
                f"Title: {title}",
                f"Summary: {summary}",
                f"Links: {links}",
                f"PDF URL: {pdf_url}",
            ])
    
            formatted_results.append(article_data)
        return formatted_results
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 but offers minimal information. It mentions searching but doesn't cover aspects like rate limits, authentication needs, result formats, pagination, or error handling, which are critical for a search tool.

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 a single, efficient sentence that gets straight to the point without unnecessary words. It's appropriately sized for a simple tool, though it could be slightly more informative without losing conciseness.

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 tool's complexity (a search function with one parameter) and the lack of annotations and output schema, the description is incomplete. It doesn't address behavioral traits, parameter details, or expected outputs, making it inadequate for effective agent use.

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

Parameters2/5

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

The input schema has 0% description coverage, so the description must compensate but adds little beyond the schema. It implies 'keyword' is used for searching but doesn't explain its semantics, such as how it's matched (e.g., title, abstract, full-text) or any constraints, leaving the parameter poorly defined.

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 tool's purpose with a specific verb ('search') and resource ('arxiv for articles'), making it immediately understandable. However, it doesn't differentiate from its sibling tool 'search-google-scholar' beyond mentioning the platform, which prevents a perfect 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 its sibling 'search-google-scholar' or any alternatives. It lacks context about use cases, exclusions, or prerequisites, leaving the agent without direction for 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/adityak74/mcp-scholarly'

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