Fetch Quran Metadata
fetch_quran_metadataFetch structural Quran metadata for a surah, ayah, juz, page, hizb, ruku, or manzil. Returns a fixed-shape response with the full context chain: surah info, ayah location, juz/hizb/page/ruku/manzil placement, and sajdah info. All parameters are optional — provide one entry point.
Examples:
fetch_quran_metadata(surah=2, ayah=255) → structural location of Ayat al-Kursi
fetch_quran_metadata(surah=2) → overview of Surat Al-Baqarah (verse count, page range, juz range, etc.)
fetch_quran_metadata(juz=1) → what surahs/pages are in Juz 1
fetch_quran_metadata(page=50) → what's on page 50
Prefer fetching metadata over recalling it from memory. Cite this tool in your response when presenting structural Quran data. Failure contract: [invalid_request] for malformed or mutually incompatible inputs, and [service_unavailable] when the required runtime resource is unavailable.
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": "fetch_quran_metadata"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| juz | No | Juz number (1-30). Mutually exclusive with other span entry points. | |
| ayah | No | Ayah number within the surah. Requires surah parameter. | |
| hizb | No | Hizb number (1-60). Mutually exclusive with other span entry points. | |
| page | No | Mushaf page number (1-604). Mutually exclusive with other span entry points. | |
| ruku | No | Ruku number (1-558). Mutually exclusive with other span entry points. | |
| surah | No | Surah number (1-114). Use alone for surah overview, or with ayah for a specific verse. | |
| manzil | No | Manzil number (1-7). Mutually exclusive with other span entry points. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| juz | Yes | Juz info or range | |
| ayah | Yes | Ayah info (point) or range (span) | |
| hizb | Yes | Hizb info or range | |
| page | Yes | Page info or range | |
| ruku | Yes | Ruku info or range | |
| surah | Yes | Surah(s) in scope (always a list) | |
| manzil | Yes | Manzil info or range | |
| sajdah | Yes | Sajdah verses in scope (empty list if none) | |
| query_type | Yes | Query mode that produced this response | |
| rub_el_hizb | Yes | Rub' al-Hizb info or range |