Search the library
searchFull-text search over the OCR text of the Maktaba-e-Qamar books (Urdu/Arabic/Persian, Hanafi/Barelvi). Search works best with 1-4 distinctive Urdu or Arabic keywords, not whole sentences. Try both scripts and spelling variants in separate searches (Urdu نماز / Arabic صلاة, ص/س, ة/ت, old spellings like صلوٰة, singular/plural). ی/ي, ک/ك, ہ/ھ, harakat, hamza forms, with/without ال, particles (کا، کی، میں، في، على) and old orthography (مین = میں) are handled automatically. Romanized and English queries are machine-transliterated (see searched_as) and less precise; prefer typing Urdu/Arabic yourself. Optional book limits the search to one book (work number like "46" or title/author words in any script; all volumes; if several books match, all are searched and listed in books with their text coverage). Returns one result per page: {id, title, url (the page as text on the library site when the book's text is public, else the scan), scan_url, text, metadata}; index_entry results are table-of-contents lines (points_to_page = the printed book page; target_url / target_id = the page it links to, open it to read the actual discussion). Use fetch with the id to read the page.
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": {
"query": "<query>"
},
"name": "search"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| book | No | Optional: work number ("46") or book title/author words, e.g. "شامی", "Radd-ul-Muhtar". | |
| limit | No | Max pages to return (default 10, max 25). | |
| query | Yes | Keywords (Urdu or Arabic script preferred; English / romanized accepted). | |
| meaning | No | Optional: true = search by meaning (semantic) instead of words: for a question or concept in any language whose wording may differ from the book's (e.g. "patience in hardship"). Keyword search already adds meaning-based pages when it finds few. | |
| section | No | Optional topic key: own (works of Mufti Muhammad Qamarul Hasan himself, and a few writings about him), quran (Quran & Quranic sciences), tafsir (tafsir), hadith (hadith), fiqh (fiqh & usul), fatawa (fatawa), aqidah (aqidah & kalam), munazara (polemics & refutations), tasawwuf (tasawwuf), sirah (sirah & virtues of the Prophet ﷺ), manaqib (manaqib), tarikh (history), tazkira (biography), poetry (poetry (naat, qasida)), language (Arabic language), mantiq (logic & philosophy), adab (literature & misc.), other (other), notref (other material, not reference books (mostly not OCR'd)). |