Skip to main content
Glama
yzfly

ArXiv Paper MCP

by yzfly

get_recent_ai_papers

Retrieve recent AI research papers from arXiv's cs.AI category to access current scientific literature for academic or professional use.

Instructions

获取 arXiv AI 领域最新论文(cs.AI/recent)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The core handler function that fetches and returns the HTML content of recent AI papers from the arXiv cs.AI/recent page.
    async function getRecentAIPapers(): Promise<string> {
      try {
        const url = 'https://arxiv.org/list/cs.AI/recent';
        console.log(`正在获取 AI 领域最新论文: ${url}`);
    
        const response = await axios({
          method: 'GET',
          url: url,
          timeout: 30000,
          headers: {
            'User-Agent': 'Mozilla/5.0 (compatible; ArXiv-Paper-MCP/1.0)'
          }
        });
    
        return response.data;
      } catch (error) {
        console.error("获取最新 AI 论文时出错:", error);
        throw new Error(`获取最新论文失败: ${error instanceof Error ? error.message : String(error)}`);
      }
    }
  • src/index.ts:343-351 (registration)
    Tool registration in the ListToolsRequestSchema handler, defining the tool name, description, and empty input schema.
    {
      name: "get_recent_ai_papers",
      description: "获取 arXiv AI 领域最新论文(cs.AI/recent)",
      inputSchema: {
        type: "object",
        properties: {},
        required: []
      }
    },
  • Dispatcher case in the CallToolRequestSchema handler that calls the getRecentAIPapers function and formats the response.
    case "get_recent_ai_papers": {
      const htmlContent = await getRecentAIPapers();
    
      return {
        content: [{
          type: "text",
          text: htmlContent
        }]
      };
    }
  • Input schema definition for the get_recent_ai_papers tool (no required parameters).
    inputSchema: {
      type: "object",
      properties: {},
      required: []
    }
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. It states what the tool does but provides no information about rate limits, authentication requirements, pagination behavior, response format, or error conditions. For a tool that presumably makes external API calls, this lack of behavioral context is a significant gap.

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 extremely concise - a single Chinese sentence that efficiently communicates the core functionality. Every word earns its place: it specifies the action ('获取'), the resource ('arXiv AI 领域最新论文'), and the specific category ('cs.AI/recent'). There's zero waste or redundancy.

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 that this tool likely makes API calls to arXiv and has no annotations or output schema, the description is insufficiently complete. It doesn't explain what format the results will be in, how many papers are returned, whether there's pagination, or any error handling. For a tool that fetches data from an external service, more context about the response behavior is needed.

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 tool has 0 parameters with 100% schema description coverage, so the schema already fully documents the parameter situation. The description appropriately doesn't discuss parameters since none exist. The baseline for 0 parameters is 4, as there's no need for parameter explanation when none are required.

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: '获取 arXiv AI 领域最新论文' (Get latest arXiv AI papers). It specifies the verb ('获取' - get) and resource ('arXiv AI 领域最新论文' - latest arXiv AI papers), and mentions the specific category 'cs.AI/recent'. However, it doesn't explicitly differentiate from sibling tools like 'search_arxiv' or 'get_arxiv_pdf_url', 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 alternatives. It doesn't mention sibling tools like 'search_arxiv' (which might allow broader searches) or 'get_arxiv_pdf_url' (which fetches specific PDFs). There's no indication of when this tool is appropriate versus when other tools should be used instead.

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/yzfly/Arxiv-Paper-MCP'

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