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.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "list_hadith_collections"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/tools/hadith.ts:100-106 (handler)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: {}, }, }, - src/shared/tool-executor.ts:103-105 (registration)Registration in the tool executor switch statement that dispatches calls to the listHadithCollections handler function.
case 'list_hadith_collections': { result = listHadithCollections(); break;