Skip to main content
Glama

get_cache_stats

Retrieve cache statistics to monitor server performance and optimize resource usage for Islamic text queries.

Instructions

Get cache statistics for monitoring server performance.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The core handler function that implements the get_cache_stats tool logic by collecting and returning statistics from all caching services (tafsir, hadith, quran, recitation, search).
    export function getAllCacheStats() { return { tafsir: getTafsirCache().getStats(), hadith: getHadithCache().getStats(), quran: getQuranCache().getStats(), recitation: getRecitationCache().getStats(), search: getSearchCache().getStats(), }; }
  • Tool registration/dispatch in the executeTool switch statement, which calls the getAllCacheStats handler when 'get_cache_stats' is invoked.
    case 'get_cache_stats': { result = getAllCacheStats(); break; }
  • MCP tool definition including name, description, and empty input schema (no parameters required).
    { name: 'get_cache_stats', description: 'Get cache statistics for monitoring server performance.', inputSchema: { type: 'object', properties: {}, }, },

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/Prince77-7/quranMCP'

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