List Available Editions
list_editionsList all available editions of a specific type (quran, tafsir, or translation). Use when you need to discover editions, resolve an unfamiliar name, compare their focuses, or check current availability. Known editions from the provided tafsir guide or prior results can be used directly without this call. Returns edition IDs, names, authors, language codes, description fields, and average entry token counts. Use descriptions to match editions to the user's question — each mufassir has distinct strengths (legal, linguistic, hadith-critical, rhetorical, structural, practical). Use token counts to plan context-efficient multi-source retrieval. Accepts a single type or a list of types to fetch multiple in one call (e.g., edition_type=["tafsir", "translation"]). Use the lang parameter to filter translation editions by language. Ignored for quran and tafsir types — all tafsir editions are always returned because Arabic tafsir is valuable regardless of the user's language. Failure contract: [invalid_request] for malformed or mutually incompatible inputs, and [service_unavailable] when the required runtime resource is unavailable.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"edition_type": "<edition_type>"
},
"name": "list_editions"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lang | No | Optional 2-letter language code to filter editions (e.g., 'en', 'ur'). Only respected for edition_type='translation'. Ignored for 'quran' and 'tafsir' types; the complete tafsir corpus is always returned because the diversity of Arabic tafsir offers insights that may not be present in the limited set directly available in the user's language. LLMs are multilingual. | |
| edition_type | Yes | Type of editions to list. Must be one of: 'quran' (Quran text editions), 'tafsir' (Quranic commentary editions), 'translation' (Quran translation editions). Accepts a single type or a list of types (e.g., ["tafsir", "translation"]). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| count | Yes | Number of editions returned | |
| editions | Yes | List of available editions, sorted by edition_id within each type | |
| lang_filter | Yes | The language filter applied to translation editions, if any | |
| edition_types | Yes | The edition type(s) that were queried (always a list) |