Skip to main content
Glama

get_details

Retrieve article details from arXiv.org by searching with the title. Get arXiv ID, authors, PDF link, timestamps, and summary.

Instructions

Retrieve information of an article hosted on arXiv.org based on its title. This tool searches for the article based on its title and retrieves arXiv ID, title, authors, link, direct PDF URL, published timestamp, last updated timestamp, and summary.

Args: title: Article title.

Returns: A JSON-formatted string containing article details if retrieval is successful; otherwise, a plain error message string.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
titleYes

Implementation Reference

  • Implementation of the 'get_details' tool handler. Decorated with @mcp.tool() for registration. Fetches arXiv article details based on title and returns JSON.
    @mcp.tool()
    async def get_details(title: str) -> str:
        """
        Retrieve information of an article hosted on arXiv.org based on its title. This tool searches for the article 
        based on its title and retrieves arXiv ID, title, authors, link, direct PDF URL, published timestamp, last 
        updated timestamp, and summary.
    
        Args:
            title: Article title.
    
        Returns:
            A JSON-formatted string containing article details if retrieval is successful; 
            otherwise, a plain error message string.
        """
        info = await fetch_information(title)
        if isinstance(info, str):
            return info
        id = info.id
        link = info.link
        article_title = info.title
        authors = [author['name'] for author in info.authors]
        arxiv_id = id.split("/abs/")[-1]
        direct_pdf_url = f"https://arxiv.org/pdf/{arxiv_id}"
        updated = getattr(info, "updated", "Unknown")
        published = getattr(info, "published", "Unknown")
        summary = getattr(info, "summary", "Unknown")
        info_dict = {
            "arXiv ID": arxiv_id,
            "Title": article_title,
            "Authors": authors,
            "Link": link,
            "Direct PDF URL": direct_pdf_url,
            "Published": published,
            "Updated": updated,
            "Summary": summary
        }
        return json.dumps(info_dict)
Behavior3/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 the tool's behavior (searches by title, returns JSON on success or error message on failure), but lacks details on error conditions, rate limits, authentication needs, or whether the search is exact or fuzzy.

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 core purpose, followed by clear sections for arguments and returns. Every sentence adds value without redundancy, making it efficient and easy to parse.

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 moderate complexity (single parameter, no output schema, no annotations), the description is mostly complete. It covers purpose, usage, parameters, and return behavior, but could improve by addressing error specifics or search nuances for full completeness.

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?

The description adds meaningful context beyond the schema, which has 0% coverage. It explains that the 'title' parameter is used to search for the article and retrieve its details, though it doesn't specify format expectations or search behavior (e.g., exact match, partial).

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's purpose with specific verb ('Retrieve information') and resource ('article hosted on arXiv.org'), and distinguishes it from siblings by specifying it searches by title and returns comprehensive metadata rather than downloading or loading content.

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 clear context for when to use this tool (retrieving article details by title), but does not explicitly mention when not to use it or name specific alternatives among the sibling tools like search_arxiv or get_article_url.

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/prashalruchiranga/arxiv-mcp-server'

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