Skip to main content
Glama

check_scihub_mirrors

Verify the operational status of Sci-Hub mirror sites to identify accessible sources for academic paper retrieval.

Instructions

Check the health status of all Sci-Hub mirror sites

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
forceCheckNoForce a fresh health check even if recent data exists

Implementation Reference

  • The handler implementation for the 'check_scihub_mirrors' tool. It destructures the 'forceCheck' argument, optionally calls forceHealthCheck on the Sci-Hub searcher if true, retrieves the mirror status, and returns it as a JSON-formatted text response.
    case 'check_scihub_mirrors': { const { forceCheck } = args; if (forceCheck) { await searchers.scihub.forceHealthCheck(); } const mirrorStatus = searchers.scihub.getMirrorStatus(); return jsonTextResponse(`Sci-Hub Mirror Status:\n\n${JSON.stringify(mirrorStatus, null, 2)}`); }
  • Zod schema defining the input structure for the 'check_scihub_mirrors' tool, with an optional 'forceCheck' boolean parameter.
    export const CheckSciHubMirrorsSchema = z .object({ forceCheck: z.boolean().optional().default(false) }) .strip();
  • Tool registration entry in the TOOLS array, defining the name, description, and input schema for 'check_scihub_mirrors'.
    { name: 'check_scihub_mirrors', description: 'Check the health status of all Sci-Hub mirror sites', inputSchema: { type: 'object', properties: { forceCheck: { type: 'boolean', description: 'Force a fresh health check even if recent data exists', default: false } } } },
  • Switch case in parseToolArgs function that uses the CheckSciHubMirrorsSchema to validate tool arguments.
    case 'check_scihub_mirrors': return CheckSciHubMirrorsSchema.parse(args);
  • Inclusion of 'check_scihub_mirrors' in the ToolName type union.
    | 'check_scihub_mirrors'

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