Skip to main content
Glama
Dianel555

Paper Search MCP

by Dianel555

get_paper_by_doi

Retrieve academic paper information using a DOI identifier from platforms like arXiv, Web of Science, or all available sources.

Instructions

Retrieve paper information using DOI from available platforms

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
doiYesDOI (Digital Object Identifier)
platformNoPlatform to search

Implementation Reference

  • Main execution logic for the get_paper_by_doi tool: handles arguments, dispatches to platform searchers' getPaperByDoi method based on platform ('all' tries multiple), collects results, and returns formatted JSON response.
    case 'get_paper_by_doi': {
      const { doi, platform } = args;
      const results: Record<string, any>[] = [];
    
      if (platform === 'all') {
        for (const [platformName, searcher] of Object.entries(searchers)) {
          if (platformName === 'wos' || platformName === 'scholar') continue;
          try {
            const paper = await (searcher as PaperSource).getPaperByDoi(doi);
            if (paper) {
              results.push(PaperFactory.toDict(paper));
            }
          } catch (error) {
            logDebug(`Error getting paper by DOI from ${platformName}:`, error);
          }
        }
      } else {
        const searcher = (searchers as any)[platform];
        if (!searcher) {
          throw new Error(`Unsupported platform: ${platform}`);
        }
        const paper = await searcher.getPaperByDoi(doi);
        if (paper) {
          results.push(PaperFactory.toDict(paper));
        }
      }
    
      if (results.length === 0) {
        return jsonTextResponse(`No paper found with DOI: ${doi}`);
      }
      return jsonTextResponse(`Found ${results.length} paper(s) with DOI ${doi}:\n\n${JSON.stringify(results, null, 2)}`);
    }
  • Tool registration entry in the exported TOOLS array used for MCP tool advertisement, defining name, description, and JSON input schema.
    {
      name: 'get_paper_by_doi',
      description: 'Retrieve paper information using DOI from available platforms',
      inputSchema: {
        type: 'object',
        properties: {
          doi: { type: 'string', description: 'DOI (Digital Object Identifier)' },
          platform: {
            type: 'string',
            enum: ['arxiv', 'webofscience', 'all'],
            description: 'Platform to search'
          }
        },
        required: ['doi']
      }
    },
  • Zod schema definition for validating and parsing input arguments to the get_paper_by_doi tool.
    export const GetPaperByDoiSchema = z
      .object({
        doi: z.string().min(1),
        platform: z.enum(['arxiv', 'webofscience', 'all']).optional().default('all')
      })
      .strip();
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 states the tool retrieves information, implying a read-only operation, but doesn't clarify aspects like rate limits, authentication needs, error handling, or what 'available platforms' entails. For a tool with no annotations, this leaves significant gaps in understanding its behavior.

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 concise and front-loaded in a single sentence: 'Retrieve paper information using DOI from available platforms.' It efficiently communicates the core purpose without unnecessary details. However, it could be slightly more structured by explicitly mentioning the parameters or usage context, but it's not wasteful.

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 no annotations and no output schema, the description is incomplete. It doesn't explain what 'paper information' includes (e.g., metadata, abstract, citations), how results are returned, or any limitations (e.g., platform availability). For a retrieval tool with multiple sibling alternatives, more context is needed to guide effective use.

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 100%, so the schema already documents both parameters (doi and platform) with descriptions and an enum for platform. The description adds marginal value by mentioning 'available platforms,' which loosely relates to the platform parameter, but doesn't provide additional semantics beyond what the schema offers. Baseline 3 is appropriate given high schema coverage.

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: 'Retrieve paper information using DOI from available platforms.' It specifies the action (retrieve), resource (paper information), and key input (DOI). However, it doesn't explicitly differentiate from sibling tools like 'search_crossref' or 'search_semantic_scholar' that might also retrieve paper information, though the DOI focus provides some distinction.

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 minimal guidance: it implies use when you have a DOI and want paper information from platforms. It doesn't specify when to use this tool versus alternatives (e.g., 'search_crossref' for DOI-based searches or 'search_arxiv' for arXiv-specific queries), nor does it mention prerequisites or exclusions. This lack of explicit context reduces its helpfulness for an AI agent.

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/Dianel555/paper-search-mcp-nodejs'

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