Skip to main content
Glama
openags

Paper Search MCP

by openags

read_openalex_paper

Extract text content from OpenAlex academic papers by providing the paper ID and optional save directory for PDFs.

Instructions

Attempt to read and extract text content from an OpenAlex paper.

Args: paper_id: OpenAlex paper ID. save_path: Directory where the PDF is/will be saved (default: './downloads'). Returns: str: Message indicating that direct paper reading is not supported natively.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
paper_idYes
save_pathNo./downloads

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Implementation Reference

  • The MCP tool handler that receives the read_openalex_paper request and delegates it to the openalex_searcher instance.
    @mcp.tool()
    async def read_openalex_paper(paper_id: str, save_path: str = "./downloads") -> str:
        """Attempt to read and extract text content from an OpenAlex paper.
    
        Args:
            paper_id: OpenAlex paper ID.
            save_path: Directory where the PDF is/will be saved (default: './downloads').
        Returns:
            str: Message indicating that direct paper reading is not supported natively.
        """
        return openalex_searcher.read_paper(paper_id, save_path)
  • The implementation of the read_paper method within the OpenAlexSearcher class, which informs the user that direct reading is not supported.
    def read_paper(self, paper_id: str, save_path: str = "./downloads") -> str:
        """
        Not implemented for OpenAlex.
        """
        return (
            "OpenAlex papers cannot be read directly through this aggregator. "
            "Please use the paper's DOI or pdf_url to access the full text."
        )
Behavior2/5

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

No annotations are provided, so the description carries full burden. It reveals the tool's key behavioral trait: it returns a message indicating 'direct paper reading is not supported natively,' which is crucial context. However, it doesn't disclose what the tool actually does (e.g., downloads a PDF, attempts extraction, or just returns an error), permissions needed, rate limits, or side effects like saving files.

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 sized and front-loaded with the main purpose. The Args and Returns sections are structured clearly, though the return statement could be more concise. No wasted sentences, but the return message is somewhat verbose.

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 (involves reading/extraction with a non-native limitation), no annotations, and an output schema that only specifies a string return, the description is incomplete. It lacks details on what the tool actually does operationally, error conditions, or how it relates to sibling tools, making it hard for an agent to use effectively.

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

Parameters3/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 adds basic meaning for both parameters: 'paper_id' as an OpenAlex ID and 'save_path' as a directory for PDF saving with a default. However, it doesn't explain parameter formats (e.g., ID structure, path requirements) or interactions, leaving gaps despite the low schema coverage.

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 purpose ('read and extract text content from an OpenAlex paper'), which is clear but vague about what 'read and extract' entails. It distinguishes from siblings by specifying 'OpenAlex' source, but doesn't clarify how it differs from other 'read_*_paper' tools beyond the data source.

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?

No guidance on when to use this tool versus alternatives like 'download_openalex' or other 'read_*_paper' tools. The description doesn't mention prerequisites, constraints, or typical use cases, leaving the agent to guess based on tool names alone.

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