Skip to main content
Glama

list_hadith_collections

Retrieve available Hadith collections to access Islamic traditions and scholarly interpretations for research or study purposes.

Instructions

List all available Hadith collections.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The core handler function that executes the tool logic, returning a list of Hadith collections with their slug, name, and total number of hadiths by mapping from the HADITH_COLLECTIONS constant.
    export function listHadithCollections() { return HADITH_COLLECTIONS.map(collection => ({ slug: collection.slug, name: collection.name, totalHadiths: collection.totalHadiths, })); }
  • The MCP tool schema definition specifying the tool name, description, and input schema (no parameters required).
    { name: 'list_hadith_collections', description: 'List all available Hadith collections.', inputSchema: { type: 'object', properties: {}, }, },
  • Registration in the tool executor switch statement that dispatches calls to the listHadithCollections handler function.
    case 'list_hadith_collections': { result = listHadithCollections(); break;

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