Skip to main content
Glama
adityak74

MCP Scholarly Server

by adityak74

search-google-scholar

Search academic articles on Google Scholar using keywords to find relevant research papers and scholarly publications.

Instructions

Search google scholar for articles related to the given keyword.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
keywordYes

Implementation Reference

  • Core handler function that performs the Google Scholar publication search using the scholarly library and delegates parsing to _parse_results.
    def search_pubs(self, keyword) -> List[str]:
        search_results = self.scholarly.search_pubs(keyword)
        articles = self._parse_results(search_results)
        return articles
  • Static helper method that parses raw search results into formatted strings for up to 10 articles, extracting title, abstract, and publication URL.
    @staticmethod
    def _parse_results(search_results):
        articles = []
        results_iter = 0
        for searched_article in search_results:
            bib = searched_article.get('bib', {})
            title = bib.get('title', 'No title')
            abstract = bib.get('abstract', 'No abstract available')
            pub_url = searched_article.get('pub_url', 'No URL available')
            
            article_string = f"Title: {title}\nAbstract: {abstract}\nURL: {pub_url}"
            articles.append(article_string)
            results_iter += 1
            if results_iter >= MAX_RESULTS:
                break
        return articles
  • Registration of the tool in the @server.list_tools() handler, including name, description, and input schema definition.
    types.Tool(
        name="search-google-scholar",
        description="Search google scholar for articles related to the given keyword.",
        inputSchema={
            "type": "object",
            "properties": {
                "keyword": {"type": "string"},
            },
            "required": ["keyword"],
        },
    )
  • Dispatch logic in the @server.call_tool() handler that instantiates the GoogleScholar class and calls its search_pubs method.
    elif name == "search-google-scholar":
        google_scholar = GoogleScholar()
        formatted_results = google_scholar.search_pubs(keyword=keyword)
  • JSON schema defining the tool's input: an object with a required 'keyword' string property.
    inputSchema={
        "type": "object",
        "properties": {
            "keyword": {"type": "string"},
        },
        "required": ["keyword"],
    },
Behavior2/5

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

No annotations are provided, so the description carries the full burden of behavioral disclosure. It only states the basic action of searching, without mentioning rate limits, authentication needs, result formats, pagination, or potential side effects. This is inadequate for a search tool with zero annotation coverage.

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, efficient sentence that directly states the tool's function without unnecessary words. It is appropriately sized and front-loaded, making it easy to parse quickly.

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, no output schema, and low schema description coverage, the description is incomplete. It doesn't address behavioral aspects like result handling or limitations, nor does it provide enough context for effective use in a multi-tool environment with a sibling tool.

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 schema description coverage is 0%, and the description adds minimal value beyond the schema. It mentions 'keyword' as the input but doesn't explain what constitutes a valid keyword, how it's used in the search, or any constraints. With one undocumented parameter, the description fails to compensate for the coverage gap.

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 as searching Google Scholar for articles related to a keyword, providing a specific verb ('search') and resource ('Google Scholar articles'). However, it doesn't explicitly differentiate from its sibling tool 'search-arxiv', which likely searches a different academic database, so it doesn't reach the highest 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 alternatives. It doesn't mention the sibling tool 'search-arxiv' or any other search options, nor does it specify contexts where Google Scholar is preferred over other databases. This leaves the agent with minimal usage 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/adityak74/mcp-scholarly'

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