list_translations
Discover available Quran translations to access the holy text in multiple languages for study and understanding.
Instructions
List all available Quran translations.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/tools/quran.ts:201-207 (handler)The core handler function for the list_translations tool. It maps the TRANSLATIONS constant (imported from constants) to return an array of available translation objects with slug, name, and language.export function listTranslations() { return TRANSLATIONS.map(t => ({ slug: t.slug, name: t.name, language: t.language, })); }
- src/shared/tools-definition.ts:206-213 (registration)Registers the list_translations tool in the shared tools array, providing its name, description, and empty input schema (no parameters required). This definition is used by MCP transports.{ name: 'list_translations', description: 'List all available Quran translations.', inputSchema: { type: 'object', properties: {}, }, },
- src/shared/tool-executor.ts:108-110 (helper)The switch case in the tool executor that handles execution of list_translations by calling the imported listTranslations function.case 'list_translations': { result = listTranslations(); break;
- src/shared/tool-executor.ts:13-13 (helper)Import statement that brings the listTranslations handler into the tool executor module.listTranslations