Skip to main content
Glama

quran-mcp-server

by djalal
index.ts11 kB
/** * Examples for MCP tool descriptions * * This module provides example usage and results for MCP tools * to help models understand how to use them correctly. */ /** * Tool examples organized by tool name */ export const toolExamples = { // Chapter-related examples 'list-chapters': [ { description: "Get chapters in English", parameters: { language: "en" }, result: { success: true, message: "list-chapters executed successfully", data: { chapters: [ { id: 1, name_arabic: "الفاتحة", name_simple: "Al-Fatihah", translated_name: { name: "The Opening" } }, { id: 2, name_arabic: "البقرة", name_simple: "Al-Baqarah", translated_name: { name: "The Cow" } }, // Additional chapters truncated for brevity ] } } }, { description: "Get chapters in Arabic", parameters: { language: "ar" }, result: { success: true, message: "list-chapters executed successfully", data: { chapters: [ { id: 1, name_arabic: "الفاتحة", name_simple: "Al-Fatihah", translated_name: { name: "الفاتحة" } }, { id: 2, name_arabic: "البقرة", name_simple: "Al-Baqarah", translated_name: { name: "البقرة" } }, // Additional chapters truncated for brevity ] } } } ], 'GET-chapter': [ { description: "Get Al-Fatihah (Chapter 1) in English", parameters: { language: "en", id: 1 }, result: { success: true, message: "GET-chapter executed successfully", data: { chapter: { id: 1, revelation_place: "makkah", revelation_order: 5, bismillah_pre: false, name_simple: "Al-Fatihah", name_complex: "Al-Fātiĥah", name_arabic: "الفاتحة", verses_count: 7, pages: [1, 1], translated_name: { language_name: "english", name: "The Opening" } } } } } ], // Verse-related examples 'verses-by_chapter_number': [ { description: "Get first 3 verses of Al-Fatihah with English translation", parameters: { chapter_number: 1, language: "en", translations: [131], limit: 3, page: 1 }, result: { success: true, message: "verses-by_chapter_number executed successfully", data: { verses: [ { id: 1, verse_key: "1:1", text_uthmani: "بِسْمِ اللَّهِ الرَّحْمَٰنِ الرَّحِيمِ", translations: [ { text: "In the name of Allah, the Entirely Merciful, the Especially Merciful.", resource_name: "Saheeh International" } ] }, { id: 2, verse_key: "1:2", text_uthmani: "الْحَمْدُ لِلَّهِ رَبِّ الْعَالَمِينَ", translations: [ { text: "All praise is due to Allah, Lord of the worlds -", resource_name: "Saheeh International" } ] }, { id: 3, verse_key: "1:3", text_uthmani: "الرَّحْمَٰنِ الرَّحِيمِ", translations: [ { text: "The Entirely Merciful, the Especially Merciful,", resource_name: "Saheeh International" } ] } ] } } } ], 'verses-by_verse_key': [ { description: "Get verse 1:1 with English translation", parameters: { verse_key: "1:1", language: "en", translations: [131] }, result: { success: true, message: "verses-by_verse_key executed successfully", data: { verse: { id: 1, verse_key: "1:1", text_uthmani: "بِسْمِ اللَّهِ الرَّحْمَٰنِ الرَّحِيمِ", translations: [ { text: "In the name of Allah, the Entirely Merciful, the Especially Merciful.", resource_name: "Saheeh International" } ] } } } } ], 'random_verse': [ { description: "Get a random verse with English translation", parameters: { language: "en", translations: [131] }, result: { success: true, message: "random_verse executed successfully", data: { verse: { id: 2583, verse_key: "20:39", text_uthmani: "أَنِ اقْذِفِيهِ فِي التَّابُوتِ فَاقْذِفِيهِ فِي الْيَمِّ فَلْيُلْقِهِ الْيَمُّ بِالسَّاحِلِ يَأْخُذْهُ عَدُوٌّ لِّي وَعَدُوٌّ لَّهُ وَأَلْقَيْتُ عَلَيْكَ مَحَبَّةً مِّنِّي وَلِتُصْنَعَ عَلَىٰ عَيْنِي", translations: [ { text: "[Saying], 'Cast him into the chest and cast it into the river, and the river will throw it onto the bank; there will take him an enemy to Me and an enemy to him.' And I bestowed upon you love from Me that you would be brought up under My eye.", resource_name: "Saheeh International" } ] } } } } ], // Search-related examples 'search': [ { description: "Search for 'mercy' in English translation", parameters: { query: "mercy", language: "en", size: 5, page: 1 }, result: { success: true, message: "search executed successfully", data: { search: { query: "mercy", total_results: 79, results: [ { verse_key: "1:3", text_uthmani: "الرَّحْمَٰنِ الرَّحِيمِ", translations: [ { text: "The Entirely Merciful, the Especially Merciful,", resource_name: "Saheeh International" } ] }, { verse_key: "2:218", text_uthmani: "إِنَّ الَّذِينَ آمَنُوا وَالَّذِينَ هَاجَرُوا وَجَاهَدُوا فِي سَبِيلِ اللَّهِ أُولَٰئِكَ يَرْجُونَ رَحْمَتَ اللَّهِ وَاللَّهُ غَفُورٌ رَّحِيمٌ", translations: [ { text: "Indeed, those who have believed and those who have emigrated and fought in the cause of Allah - those expect the mercy of Allah. And Allah is Forgiving and Merciful.", resource_name: "Saheeh International" } ] } // Additional results truncated for brevity ] } } } } ], // Juz-related examples 'juzs': [ { description: "Get list of all juzs", parameters: {}, result: { success: true, message: "juzs executed successfully", data: { juzs: [ { id: 1, juz_number: 1, verse_mapping: { "1": "1-7", "2": "1-141" }, first_verse_id: 1, last_verse_id: 148, verses_count: 148 }, { id: 2, juz_number: 2, verse_mapping: { "2": "142-252" }, first_verse_id: 149, last_verse_id: 259, verses_count: 111 } // Additional juzs truncated for brevity ] } } } ], // Translation-related examples 'translations': [ { description: "Get list of available translations", parameters: { language: "en" }, result: { success: true, message: "translations executed successfully", data: { translations: [ { id: 131, name: "Saheeh International", author_name: "Saheeh International", slug: "saheeh-international", language_name: "english", translated_name: { name: "Saheeh International" } }, { id: 20, name: "Yusuf Ali", author_name: "Abdullah Yusuf Ali", slug: "yusuf-ali", language_name: "english", translated_name: { name: "Yusuf Ali" } } // Additional translations truncated for brevity ] } } } ], // Tafsir-related examples 'tafsirs': [ { description: "Get list of available tafsirs", parameters: { language: "en" }, result: { success: true, message: "tafsirs executed successfully", data: { tafsirs: [ { id: 1, name: "Tafsir Ibn Kathir", author_name: "Ibn Kathir", slug: "ibn-kathir", language_name: "english", translated_name: { name: "Tafsir Ibn Kathir" } }, { id: 2, name: "Tafsir al-Jalalayn", author_name: "Jalal ad-Din al-Mahalli and Jalal ad-Din as-Suyuti", slug: "jalalayn", language_name: "english", translated_name: { name: "Tafsir al-Jalalayn" } } // Additional tafsirs truncated for brevity ] } } } ], // Language-related examples 'languages': [ { description: "Get all available languages", parameters: {}, result: { success: true, message: "languages executed successfully", data: { languages: [ { id: 1, name: "English", iso_code: "en", native_name: "English", direction: "ltr", translations_count: 12 }, { id: 2, name: "Arabic", iso_code: "ar", native_name: "العربية", direction: "rtl", translations_count: 5 } // Additional languages truncated for brevity ] } } } ] };

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/djalal/quran-mcp-server'

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