HadithDB
Search and retrieve Quran ayahs, tafsir commentary, hadith, and detailed hadith records.
我该使用它吗
质量与安全性
基于对工具定义和协议合规性的自动分析。
上下文开销
这是每次将服务器的工具加载到模型上下文窗口时所消耗的大致 token 数。数值越高,可用于其他任务的注意力就越少。
安装
一键安装
将以下内容添加到你的 `claude_desktop_config.json` 文件中:
{
"mcpServers": {
"hadithdb": {
"url": "https://hadithunlocked.com/mcp"
}
}
}远程端点
https://hadithunlocked.com/mcpstreamable-http它能做什么
工具清单
工具(17)
🟢list_hadith_commentaries(query, limit, offset)
Use this to discover available hadith commentary works (shuruh), authors and aliases before selecting a source. These are commentary works, not the underlying hadith collections. Catalog presence does not guarantee coverage of a particular report.
输入模式
{
"type": "object",
"properties": {
"query": {
"type": "string",
"maxLength": 200
},
"limit": {
"type": "integer",
"minimum": 1,
"maximum": 100,
"default": 25
},
"offset": {
"type": "integer",
"minimum": 0,
"maximum": 10000,
"default": 0
}
},
"additionalProperties": false
}输出模式
{
"type": "object",
"properties": {
"sources": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": [
"integer",
"null"
]
},
"alias": {
"type": [
"string",
"null"
]
},
"title_arabic": {
"type": [
"string",
"null"
]
},
"title_english": {
"type": [
"string",
"null"
]
},
"author_arabic": {
"type": [
"string",
"null"
]
},
"author_english": {
"type": [
"string",
"null"
]
}
},
"required": [
"id",
"alias",
"title_arabic",
"title_english",
"author_arabic",
"author_english"
],
"additionalProperties": false
}
},
"total": {
"type": "integer"
},
"next_offset": {
"type": [
"integer",
"null"
]
},
"error": {
"type": "string",
"description": "Error message when the tool could not complete the request."
}
},
"oneOf": [
{
"required": [
"sources",
"total",
"next_offset"
]
},
{
"required": [
"error"
]
}
],
"additionalProperties": false
}🟢search_hadith_commentary(query, source, reference, limit, cursor)
Use this for scholarly explanations, procedural details and disagreements, including when answering how to perform worship or researching Quranic concepts. Searches shuruh across collections. Results preserve the commentary work and associated hadith separately. Retrieve exact entries with lookup_hadith_commentary and verify reports with lookup_hadith_detail.
输入模式
{
"type": "object",
"properties": {
"query": {
"type": "string",
"minLength": 1,
"maxLength": 200
},
"source": {
"type": "string",
"minLength": 1,
"description": "Optional exact commentary alias from list_hadith_commentaries."
},
"reference": {
"type": "string",
"minLength": 3,
"description": "Optional exact associated hadith reference."
},
"limit": {
"type": "integer",
"minimum": 1,
"maximum": 20,
"default": 10
},
"cursor": {
"type": "string",
"minLength": 1
}
},
"required": [
"query"
],
"additionalProperties": false
}输出模式
{
"type": "object",
"properties": {
"query": {
"type": "string"
},
"results": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "integer"
},
"source": {
"type": "object",
"properties": {
"id": {
"type": [
"integer",
"null"
]
},
"alias": {
"type": [
"string",
"null"
]
},
"title_arabic": {
"type": [
"string",
"null"
]
},
"title_english": {
"type": [
"string",
"null"
]
},
"author_arabic": {
"type": [
"string",
"null"
]
},
"author_english": {
"type": [
"string",
"null"
]
}
},
"required": [
"id",
"alias",
"title_arabic",
"title_english",
"author_arabic",
"author_english"
],
"additionalProperties": false
},
"hadith_reference": {
"type": "string"
},
"hadith_collection": {
"type": "string"
},
"url": {
"type": "string"
},
"text_arabic": {
"type": [
"string",
"null"
]
},
"text_english": {
"type": [
"string",
"null"
]
},
"truncated": {
"type": "boolean"
}
},
"required": [
"id",
"source",
"hadith_reference",
"hadith_collection",
"url",
"text_arabic",
"text_english",
"truncated"
],
"additionalProperties": false
}
},
"pagination": {
"type": "object",
"properties": {
"limit": {
"type": "integer"
},
"returned": {
"type": "integer"
},
"offset": {
"type": "integer"
},
"total_available": {
"type": [
"integer",
"null"
]
},
"total_is_exact": {
"type": "boolean"
},
"has_more": {
"type": "boolean"
},
"next_cursor": {
"type": [
"string",
"null"
]
}
},
"required": [
"limit",
"returned",
"offset",
"total_available",
"total_is_exact",
"has_more",
"next_cursor"
],
"additionalProperties": false
},
"error": {
"type": "string",
"description": "Error message when the tool could not complete the request."
}
},
"oneOf": [
{
"required": [
"query",
"results",
"pagination"
]
},
{
"required": [
"error"
]
}
],
"additionalProperties": false
}🟢lookup_hadith_commentary(id, response_profile)
Retrieve an exact scholarly commentary entry by ID from commentary search or a hadith’s research inventory. Preserve its author and work attribution. Default bounds each language to 6000 characters; full retrieves all indexed text.
输入模式
{
"type": "object",
"properties": {
"id": {
"type": "integer",
"minimum": 1
},
"response_profile": {
"type": "string",
"enum": [
"compact",
"default",
"full"
],
"default": "default"
}
},
"required": [
"id"
],
"additionalProperties": false
}输出模式
{
"type": "object",
"properties": {
"commentary": {
"type": "object",
"properties": {
"id": {
"type": "integer"
},
"source": {
"type": "object",
"properties": {
"id": {
"type": [
"integer",
"null"
]
},
"alias": {
"type": [
"string",
"null"
]
},
"title_arabic": {
"type": [
"string",
"null"
]
},
"title_english": {
"type": [
"string",
"null"
]
},
"author_arabic": {
"type": [
"string",
"null"
]
},
"author_english": {
"type": [
"string",
"null"
]
}
},
"required": [
"id",
"alias",
"title_arabic",
"title_english",
"author_arabic",
"author_english"
],
"additionalProperties": false
},
"hadith_reference": {
"type": "string"
},
"hadith_collection": {
"type": "string"
},
"url": {
"type": "string"
},
"text_arabic": {
"type": [
"string",
"null"
]
},
"text_english": {
"type": [
"string",
"null"
]
},
"truncated": {
"type": "boolean"
}
},
"required": [
"id",
"source",
"hadith_reference",
"hadith_collection",
"url",
"text_arabic",
"text_english",
"truncated"
],
"additionalProperties": false
},
"error": {
"type": "string",
"description": "Error message when the tool could not complete the request."
}
},
"oneOf": [
{
"required": [
"commentary"
]
},
{
"required": [
"error"
]
}
],
"additionalProperties": false
}🟢research_islamic_topic(question, queries, hadith_references, depth)
Use this before answering substantive Islamic topic or practical worship questions, such as what istikharah is and how to pray it. Collects Quran/tafsir discovery candidates, verified hadith records, explanations from distinct shuruh and explicitly linked related reports. Supply short Arabic/English queries and known principal hadith_references when available to anchor the research. Inspect coverage and fetch omitted/truncated sources as needed within the same turn; do not treat topic matches as direct evidence or claim exhaustive research.
输入模式
{
"type": "object",
"properties": {
"question": {
"type": "string",
"minLength": 1,
"maxLength": 2000
},
"queries": {
"type": "array",
"items": {
"type": "string",
"minLength": 1,
"maxLength": 200
},
"minItems": 1,
"maxItems": 4,
"description": "Short concept search phrases, preferably including Arabic equivalents. Do not pass the entire natural-language question as a search phrase."
},
"hadith_references": {
"type": "array",
"maxItems": 4,
"items": {
"type": "string",
"minLength": 3,
"maxLength": 100
},
"description": "Known exact principal report references to prioritize and verify, e.g. bukhari:1166. Do not invent references or translate source numbers across collections."
},
"depth": {
"type": "string",
"enum": [
"brief",
"standard",
"deep"
],
"default": "standard",
"description": "Research breadth, independent of the final answer length. All depths have time and source limits."
}
},
"required": [
"question",
"queries"
],
"additionalProperties": false
}输出模式
{
"type": "object",
"properties": {
"question": {
"type": "string"
},
"depth": {
"type": "string"
},
"scope": {
"type": "string"
},
"queries": {
"type": "array",
"items": {
"type": "string"
}
},
"evidence": {
"type": "array",
"items": {
"type": "object",
"properties": {
"tool": {
"type": "string"
},
"arguments": {
"type": "object",
"additionalProperties": true
},
"relationship": {
"type": "string"
},
"status": {
"type": "string",
"enum": [
"found",
"searched_no_match",
"not_searched",
"unavailable"
]
},
"data": {
"type": [
"object",
"null"
],
"additionalProperties": true,
"description": "Selected source fields and bounded excerpts from the named tool. Truncated text is flagged; exact tools provide complete records. Search hits are discovery candidates, not verified conceptual relationships."
},
"error": {
"type": [
"string",
"null"
]
}
},
"required": [
"tool",
"arguments",
"relationship",
"status",
"data",
"error"
],
"additionalProperties": false
}
},
"coverage": {
"type": "object",
"properties": {
"exhaustive": {
"type": "boolean"
},
"calls_made": {
"type": "integer"
},
"call_limit": {
"type": "integer"
},
"time_limit_ms": {
"type": "integer"
},
"deadline_reached": {
"type": "boolean"
},
"hadith_commentary": {
"type": "string",
"enum": [
"found",
"searched_no_match",
"not_searched",
"unavailable"
]
},
"concept_research": {
"type": "string",
"enum": [
"found",
"searched_no_match",
"not_searched",
"unavailable"
]
},
"omitted_candidates": {
"type": "integer"
}
},
"required": [
"exhaustive",
"calls_made",
"call_limit",
"time_limit_ms",
"deadline_reached",
"hadith_commentary",
"concept_research",
"omitted_candidates"
],
"additionalProperties": false
},
"next_steps": {
"type": "array",
"items": {
"type": "string"
}
},
"interpretation_note": {
"type": "string"
},
"error": {
"type": "string",
"description": "Error message when the tool could not complete the request."
}
},
"oneOf": [
{
"required": [
"question",
"depth",
"scope",
"queries",
"evidence",
"coverage",
"next_steps",
"interpretation_note"
]
},
{
"required": [
"error"
]
}
],
"additionalProperties": false
}🟢research_quran_ayah(surah, ayah, concepts, hadith_references, tafsirs, ...)
Use this for explanations of Quran ayahs. Retrieves the exact ayah and major available tafsirs (default Tabari, Ibn Kathir, Qurtubi; more at deep depth), then searches supplied concepts in Quran, tafsir, hadith and shuruh. If concepts are omitted, read the returned ayah/tafsirs, derive short grounded concept phrases, and call again with concepts without asking the user. Search matches are conceptual candidates, not proof a hadith directly explains this ayah. Verify relevant source text before synthesis. Respect explicitly requested tafsir sources.
输入模式
{
"type": "object",
"properties": {
"surah": {
"type": "integer",
"minimum": 1,
"maximum": 114
},
"ayah": {
"type": "integer",
"minimum": 0,
"maximum": 286
},
"concepts": {
"type": "array",
"items": {
"type": "string",
"minLength": 1,
"maxLength": 200
},
"minItems": 1,
"maxItems": 4,
"description": "Short concept search phrases, preferably including Arabic equivalents. Do not pass the entire natural-language question as a search phrase."
},
"hadith_references": {
"type": "array",
"maxItems": 4,
"items": {
"type": "string",
"minLength": 3,
"maxLength": 100
},
"description": "Known exact principal report references to prioritize and verify, e.g. bukhari:1166. Do not invent references or translate source numbers across collections."
},
"tafsirs": {
"type": "array",
"minItems": 1,
"maxItems": 6,
"items": {
"type": "string",
"minLength": 1,
"maxLength": 100
},
"description": "Optional requested source names/aliases; overrides the default source selection."
},
"depth": {
"type": "string",
"enum": [
"brief",
"standard",
"deep"
],
"default": "standard",
"description": "Research breadth, independent of the final answer length. All depths have time and source limits."
}
},
"required": [
"surah",
"ayah"
],
"additionalProperties": false
}输出模式
{
"type": "object",
"properties": {
"question": {
"type": "string"
},
"depth": {
"type": "string"
},
"scope": {
"type": "string"
},
"queries": {
"type": "array",
"items": {
"type": "string"
}
},
"evidence": {
"type": "array",
"items": {
"type": "object",
"properties": {
"tool": {
"type": "string"
},
"arguments": {
"type": "object",
"additionalProperties": true
},
"relationship": {
"type": "string"
},
"status": {
"type": "string",
"enum": [
"found",
"searched_no_match",
"not_searched",
"unavailable"
]
},
"data": {
"type": [
"object",
"null"
],
"additionalProperties": true,
"description": "Selected source fields and bounded excerpts from the named tool. Truncated text is flagged; exact tools provide complete records. Search hits are discovery candidates, not verified conceptual relationships."
},
"error": {
"type": [
"string",
"null"
]
}
},
"required": [
"tool",
"arguments",
"relationship",
"status",
"data",
"error"
],
"additionalProperties": false
}
},
"coverage": {
"type": "object",
"properties": {
"exhaustive": {
"type": "boolean"
},
"calls_made": {
"type": "integer"
},
"call_limit": {
"type": "integer"
},
"time_limit_ms": {
"type": "integer"
},
"deadline_reached": {
"type": "boolean"
},
"hadith_commentary": {
"type": "string",
"enum": [
"found",
"searched_no_match",
"not_searched",
"unavailable"
]
},
"concept_research": {
"type": "string",
"enum": [
"found",
"searched_no_match",
"not_searched",
"unavailable"
]
},
"omitted_candidates": {
"type": "integer"
}
},
"required": [
"exhaustive",
"calls_made",
"call_limit",
"time_limit_ms",
"deadline_reached",
"hadith_commentary",
"concept_research",
"omitted_candidates"
],
"additionalProperties": false
},
"next_steps": {
"type": "array",
"items": {
"type": "string"
}
},
"interpretation_note": {
"type": "string"
},
"error": {
"type": "string",
"description": "Error message when the tool could not complete the request."
}
},
"oneOf": [
{
"required": [
"question",
"depth",
"scope",
"queries",
"evidence",
"coverage",
"next_steps",
"interpretation_note"
]
},
{
"required": [
"error"
]
}
],
"additionalProperties": false
}🟢lookup_quran_page(page, surah, ayah, response_profile)
Get a Mushaf page by page number, or find the first page containing a surah and ayah. Returns edition information, ayah/word boundaries, all overlapping passage and subsection headings, stored introductions, and a page overview assembled from those headings. The overview is not a separately authored summary or Quran text. Ayahs and passages may continue across pages.
输入模式
{
"type": "object",
"properties": {
"page": {
"type": "integer",
"minimum": 1,
"maximum": 604
},
"surah": {
"type": "integer",
"minimum": 1,
"maximum": 114
},
"ayah": {
"type": "integer",
"minimum": 1,
"maximum": 286
},
"response_profile": {
"type": "string",
"enum": [
"compact",
"default",
"full"
],
"default": "default",
"description": "Per-heading introduction limits: compact 1000 characters per language, default 6000, full all stored text. Titles and ranges are always preserved."
}
},
"oneOf": [
{
"required": [
"page"
],
"not": {
"anyOf": [
{
"required": [
"surah"
]
},
{
"required": [
"ayah"
]
}
]
}
},
{
"required": [
"surah",
"ayah"
],
"not": {
"required": [
"page"
]
}
}
],
"additionalProperties": false
}输出模式
{
"type": "object",
"properties": {
"page": {
"type": "integer"
},
"url": {
"type": "string"
},
"mushaf": {
"type": "object",
"properties": {
"name": {
"type": [
"string",
"null"
]
},
"total_pages": {
"type": "integer"
},
"lines_per_page": {
"type": "integer"
}
},
"required": [
"name",
"total_pages",
"lines_per_page"
],
"additionalProperties": false
},
"previous_page": {
"type": [
"integer",
"null"
]
},
"next_page": {
"type": [
"integer",
"null"
]
},
"ranges": {
"type": "array",
"items": {
"type": "object",
"properties": {
"surah": {
"type": "integer"
},
"ayah_from": {
"type": "integer"
},
"ayah_to": {
"type": "integer"
}
},
"required": [
"surah",
"ayah_from",
"ayah_to"
],
"additionalProperties": false
}
},
"ayahs": {
"type": "array",
"items": {
"type": "object",
"properties": {
"reference": {
"type": "string"
},
"surah": {
"type": "integer"
},
"ayah": {
"type": "integer"
},
"first_word": {
"type": [
"integer",
"null"
]
},
"last_word": {
"type": [
"integer",
"null"
]
}
},
"required": [
"reference",
"surah",
"ayah",
"first_word",
"last_word"
],
"additionalProperties": false
}
},
"page_boundary_note": {
"type": "string"
},
"summary": {
"type": "object",
"properties": {
"kind": {
"type": "string",
"enum": [
"stored_heading_outline"
]
},
"text_english": {
"type": [
"string",
"null"
]
},
"text_arabic": {
"type": [
"string",
"null"
]
},
"note": {
"type": "string"
}
},
"required": [
"kind",
"text_english",
"text_arabic",
"note"
],
"additionalProperties": false
},
"headings": {
"type": "array",
"items": {
"type": "object",
"properties": {
"key": {
"type": "string"
},
"level": {
"type": "integer",
"enum": [
2,
3
]
},
"surah": {
"type": "integer"
},
"section": {
"type": "integer"
},
"subsection": {
"type": [
"integer",
"null"
]
},
"title_arabic": {
"type": [
"string",
"null"
]
},
"title_english": {
"type": [
"string",
"null"
]
},
"introduction_arabic": {
"type": [
"string",
"null"
]
},
"introduction_english": {
"type": [
"string",
"null"
]
},
"introduction_scope": {
"type": "string"
},
"truncated": {
"type": "boolean"
},
"ayah_from": {
"type": "integer"
},
"ayah_to": {
"type": "integer"
},
"reference": {
"type": "string"
},
"url": {
"type": "string"
}
},
"required": [
"key",
"level",
"surah",
"section",
"subsection",
"title_arabic",
"title_english",
"introduction_arabic",
"introduction_english",
"introduction_scope",
"truncated",
"ayah_from",
"ayah_to",
"reference",
"url"
],
"additionalProperties": false
}
},
"error": {
"type": "string",
"description": "Error message when the tool could not complete the request."
}
},
"oneOf": [
{
"required": [
"page",
"url",
"mushaf",
"previous_page",
"next_page",
"ranges",
"ayahs",
"page_boundary_note",
"summary",
"headings"
]
},
{
"required": [
"error"
]
}
],
"additionalProperties": false
}🟢list_quran_sections(surah, limit, offset, response_profile)
List a surah’s passage (level 2) and subsection (level 3) headings in hierarchy order, with exact section identities, Arabic/English titles, stored introductions, ayah ranges, and URLs. These editorial headings and introductions are distinct from Quran text. Follow next_offset for more results.
输入模式
{
"type": "object",
"properties": {
"surah": {
"type": "integer",
"minimum": 1,
"maximum": 114
},
"limit": {
"type": "integer",
"minimum": 1,
"maximum": 100,
"default": 25
},
"offset": {
"type": "integer",
"minimum": 0,
"maximum": 10000,
"default": 0
},
"response_profile": {
"type": "string",
"enum": [
"compact",
"default",
"full"
],
"default": "default",
"description": "Per-heading introduction limits: compact 1000 characters per language, default 6000, full all stored text. Titles and ranges are always preserved."
}
},
"required": [
"surah"
],
"additionalProperties": false
}输出模式
{
"type": "object",
"properties": {
"surah": {
"type": "integer"
},
"url": {
"type": "string"
},
"total": {
"type": "integer"
},
"offset": {
"type": "integer"
},
"has_more": {
"type": "boolean"
},
"next_offset": {
"type": [
"integer",
"null"
]
},
"headings": {
"type": "array",
"items": {
"type": "object",
"properties": {
"key": {
"type": "string"
},
"level": {
"type": "integer",
"enum": [
2,
3
]
},
"surah": {
"type": "integer"
},
"section": {
"type": "integer"
},
"subsection": {
"type": [
"integer",
"null"
]
},
"title_arabic": {
"type": [
"string",
"null"
]
},
"title_english": {
"type": [
"string",
"null"
]
},
"introduction_arabic": {
"type": [
"string",
"null"
]
},
"introduction_english": {
"type": [
"string",
"null"
]
},
"introduction_scope": {
"type": "string"
},
"truncated": {
"type": "boolean"
},
"ayah_from": {
"type": "integer"
},
"ayah_to": {
"type": "integer"
},
"reference": {
"type": "string"
},
"url": {
"type": "string"
}
},
"required": [
"key",
"level",
"surah",
"section",
"subsection",
"title_arabic",
"title_english",
"introduction_arabic",
"introduction_english",
"introduction_scope",
"truncated",
"ayah_from",
"ayah_to",
"reference",
"url"
],
"additionalProperties": false
}
},
"error": {
"type": "string",
"description": "Error message when the tool could not complete the request."
}
},
"oneOf": [
{
"required": [
"surah",
"url",
"total",
"offset",
"has_more",
"next_offset",
"headings"
]
},
{
"required": [
"error"
]
}
],
"additionalProperties": false
}🟢lookup_quran_passage(surah, section, subsection, ayah, response_profile)
Get an exact Quran passage by surah and section number, optionally subsection; or find the passage containing a surah and ayah. Returns stored bilingual headings/introductions, exact ayah ranges, parent/subsection relationships, and Mushaf links. A section number is an editorial passage identifier, not an ayah number. Use list_quran_sections to discover section IDs.
输入模式
{
"type": "object",
"properties": {
"surah": {
"type": "integer",
"minimum": 1,
"maximum": 114
},
"section": {
"type": "integer",
"minimum": 1,
"maximum": 1000
},
"subsection": {
"type": "integer",
"minimum": 1,
"maximum": 1000
},
"ayah": {
"type": "integer",
"minimum": 0,
"maximum": 286,
"description": "Ayah 0 is valid only in surah 1."
},
"response_profile": {
"type": "string",
"enum": [
"compact",
"default",
"full"
],
"default": "default",
"description": "Per-heading introduction limits: compact 1000 characters per language, default 6000, full all stored text. Titles and ranges are always preserved."
}
},
"required": [
"surah"
],
"oneOf": [
{
"required": [
"section"
],
"not": {
"required": [
"ayah"
]
}
},
{
"required": [
"ayah"
],
"not": {
"anyOf": [
{
"required": [
"section"
]
},
{
"required": [
"subsection"
]
}
]
}
}
],
"additionalProperties": false
}输出模式
{
"type": "object",
"properties": {
"passage": {
"type": "object",
"properties": {
"key": {
"type": "string"
},
"level": {
"type": "integer",
"enum": [
2,
3
]
},
"surah": {
"type": "integer"
},
"section": {
"type": "integer"
},
"subsection": {
"type": [
"integer",
"null"
]
},
"title_arabic": {
"type": [
"string",
"null"
]
},
"title_english": {
"type": [
"string",
"null"
]
},
"introduction_arabic": {
"type": [
"string",
"null"
]
},
"introduction_english": {
"type": [
"string",
"null"
]
},
"introduction_scope": {
"type": "string"
},
"truncated": {
"type": "boolean"
},
"ayah_from": {
"type": "integer"
},
"ayah_to": {
"type": "integer"
},
"reference": {
"type": "string"
},
"url": {
"type": "string"
}
},
"required": [
"key",
"level",
"surah",
"section",
"subsection",
"title_arabic",
"title_english",
"introduction_arabic",
"introduction_english",
"introduction_scope",
"truncated",
"ayah_from",
"ayah_to",
"reference",
"url"
],
"additionalProperties": false
},
"parent": {
"anyOf": [
{
"type": "object",
"properties": {
"key": {
"type": "string"
},
"level": {
"type": "integer",
"enum": [
2,
3
]
},
"surah": {
"type": "integer"
},
"section": {
"type": "integer"
},
"subsection": {
"type": [
"integer",
"null"
]
},
"title_arabic": {
"type": [
"string",
"null"
]
},
"title_english": {
"type": [
"string",
"null"
]
},
"introduction_arabic": {
"type": [
"string",
"null"
]
},
"introduction_english": {
"type": [
"string",
"null"
]
},
"introduction_scope": {
"type": "string"
},
"truncated": {
"type": "boolean"
},
"ayah_from": {
"type": "integer"
},
"ayah_to": {
"type": "integer"
},
"reference": {
"type": "string"
},
"url": {
"type": "string"
}
},
"required": [
"key",
"level",
"surah",
"section",
"subsection",
"title_arabic",
"title_english",
"introduction_arabic",
"introduction_english",
"introduction_scope",
"truncated",
"ayah_from",
"ayah_to",
"reference",
"url"
],
"additionalProperties": false
},
{
"type": "null"
}
]
},
"subsections": {
"type": "array",
"items": {
"type": "object",
"properties": {
"key": {
"type": "string"
},
"level": {
"type": "integer",
"enum": [
2,
3
]
},
"surah": {
"type": "integer"
},
"section": {
"type": "integer"
},
"subsection": {
"type": [
"integer",
"null"
]
},
"title_arabic": {
"type": [
"string",
"null"
]
},
"title_english": {
"type": [
"string",
"null"
]
},
"introduction_arabic": {
"type": [
"string",
"null"
]
},
"introduction_english": {
"type": [
"string",
"null"
]
},
"introduction_scope": {
"type": "string"
},
"truncated": {
"type": "boolean"
},
"ayah_from": {
"type": "integer"
},
"ayah_to": {
"type": "integer"
},
"reference": {
"type": "string"
},
"url": {
"type": "string"
}
},
"required": [
"key",
"level",
"surah",
"section",
"subsection",
"title_arabic",
"title_english",
"introduction_arabic",
"introduction_english",
"introduction_scope",
"truncated",
"ayah_from",
"ayah_to",
"reference",
"url"
],
"additionalProperties": false
}
},
"first_page": {
"type": [
"integer",
"null"
]
},
"last_page": {
"type": [
"integer",
"null"
]
},
"mushaf_url": {
"type": [
"string",
"null"
]
},
"error": {
"type": "string",
"description": "Error message when the tool could not complete the request."
}
},
"oneOf": [
{
"required": [
"passage",
"parent",
"subsections",
"first_page",
"last_page",
"mushaf_url"
]
},
{
"required": [
"error"
]
}
],
"additionalProperties": false
}🟢list_quran_reciters
List available Quran audio reciters and their aliases. Use this to resolve a requested reciter. Juhani is the default.
输入模式
{
"type": "object",
"properties": {},
"additionalProperties": false
}输出模式
{
"type": "object",
"properties": {
"default_reciter": {
"type": "string"
},
"reciters": {
"type": "array",
"items": {
"type": "object",
"properties": {
"alias": {
"type": "string"
},
"name": {
"type": "string"
}
},
"required": [
"alias",
"name"
],
"additionalProperties": false
}
},
"error": {
"type": "string",
"description": "Error message when the tool could not complete the request."
}
},
"oneOf": [
{
"required": [
"default_reciter",
"reciters"
]
},
{
"required": [
"error"
]
}
],
"additionalProperties": false
}🟢get_quran_audio(surah, ayah_from, ayah_to, reciter)
Get an audio URL and exact ayah timing segments for a Quran passage by a selected reciter (default: Juhani). Returns playback data, not a command that starts playback. Use surah, ayah_from, and optionally ayah_to for an inclusive range. For portions spanning surahs, call once per surah and play in order. Use list_quran_reciters for available names and aliases. Clients must seek to start_ms and stop at end_ms; the URL points to the full surah.
输入模式
{
"type": "object",
"properties": {
"surah": {
"type": "integer",
"minimum": 1,
"maximum": 114
},
"ayah_from": {
"type": "integer",
"minimum": 1,
"maximum": 286
},
"ayah_to": {
"type": "integer",
"minimum": 1,
"maximum": 286,
"description": "Inclusive last ayah; defaults to ayah_from. For a whole surah, specify its first and last ayah."
},
"reciter": {
"type": "string",
"minLength": 1,
"default": "juhani",
"description": "Reciter alias or exact catalog name. Defaults to Juhani."
}
},
"required": [
"surah",
"ayah_from"
],
"additionalProperties": false
}输出模式
{
"type": "object",
"properties": {
"reciter": {
"type": "object",
"properties": {
"alias": {
"type": "string"
},
"name": {
"type": "string"
}
},
"required": [
"alias",
"name"
],
"additionalProperties": false
},
"reference": {
"type": "string"
},
"audio_url": {
"type": "string",
"description": "Full surah audio file; use the supplied timing boundaries for the requested passage."
},
"playback_url": {
"type": "string",
"description": "Audio URL with a temporal media fragment in seconds. Client support varies."
},
"start_ms": {
"type": "integer",
"minimum": 0
},
"end_ms": {
"type": "integer",
"minimum": 1
},
"segments": {
"type": "array",
"minItems": 1,
"items": {
"type": "object",
"properties": {
"reference": {
"type": "string"
},
"start_ms": {
"type": "integer",
"minimum": 0
},
"end_ms": {
"type": "integer",
"minimum": 1
}
},
"required": [
"reference",
"start_ms",
"end_ms"
],
"additionalProperties": false
}
},
"error": {
"type": "string",
"description": "Error message when the tool could not complete the request."
}
},
"oneOf": [
{
"required": [
"reciter",
"reference",
"audio_url",
"playback_url",
"start_ms",
"end_ms",
"segments"
]
},
{
"required": [
"error"
]
}
],
"additionalProperties": false
}🟢lookup_quran_ayah(surah, ayah)
Retrieve the exact Arabic text, English translation, headings, and canonical URL for one Quran ayah. For explanations of its meaning, use research_quran_ayah to consult major available tafsirs and research its concepts in hadith and shuruh before synthesizing.
输入模式
{
"type": "object",
"properties": {
"surah": {
"type": "integer",
"minimum": 1,
"maximum": 114,
"description": "Surah number, 1 through 114."
},
"ayah": {
"type": "integer",
"minimum": 0,
"description": "Ayah number. Ayah 0 is valid only for Surah 1."
}
},
"required": [
"surah",
"ayah"
],
"additionalProperties": false
}输出模式
{
"type": "object",
"properties": {
"ayah": {
"type": "object",
"description": "A normalized Quran, hadith, sirah, or history record.",
"properties": {
"id": {
"type": [
"integer",
"string",
"null"
]
},
"reference": {
"type": [
"string",
"null"
],
"description": "Canonical HadithDB reference."
},
"url": {
"type": [
"string",
"null"
],
"description": "Canonical public URL for the record."
},
"book": {
"type": "object",
"properties": {
"alias": {
"type": [
"string",
"null"
]
},
"name_english": {
"type": [
"string",
"null"
]
},
"name_arabic": {
"type": [
"string",
"null"
]
},
"short_name_english": {
"type": [
"string",
"null"
]
},
"short_name_arabic": {
"type": [
"string",
"null"
]
}
},
"required": [
"alias",
"name_english",
"name_arabic",
"short_name_english",
"short_name_arabic"
],
"additionalProperties": false
},
"number": {
"type": [
"integer",
"number",
"string",
"null"
]
},
"chapter_number": {
"type": [
"integer",
"number",
"string",
"null"
]
},
"headings": {
"type": "array",
"items": {
"type": "object",
"properties": {
"number": {
"type": [
"integer",
"number",
"string",
"null"
]
},
"english": {
"type": [
"string",
"null"
]
},
"arabic": {
"type": [
"string",
"null"
]
}
},
"required": [
"number",
"english",
"arabic"
],
"additionalProperties": false
}
},
"english": {
"type": "object",
"description": "The separately addressable fields for one language.",
"properties": {
"title": {
"type": [
"string",
"null"
]
},
"chain": {
"type": [
"string",
"null"
]
},
"body": {
"type": [
"string",
"null"
]
},
"footnote": {
"type": [
"string",
"null"
]
}
},
"required": [
"title",
"chain",
"body",
"footnote"
],
"additionalProperties": false
},
"arabic": {
"type": "object",
"description": "The separately addressable fields for one language.",
"properties": {
"title": {
"type": [
"string",
"null"
]
},
"chain": {
"type": [
"string",
"null"
]
},
"body": {
"type": [
"string",
"null"
]
},
"footnote": {
"type": [
"string",
"null"
]
}
},
"required": [
"title",
"chain",
"body",
"footnote"
],
"additionalProperties": false
},
"bilingual": {
"type": "boolean",
"description": "Whether both Arabic and English text are present."
},
"text": {
"type": [
"string",
"null"
],
"description": "Combined English and Arabic text when either is present."
},
"text_arabic": {
"type": [
"string",
"null"
],
"description": "Full Arabic text."
},
"text_english": {
"type": [
"string",
"null"
],
"description": "Full English text."
},
"truncated": {
"type": "boolean",
"description": "Whether one or more text fields were shortened for the selected response profile."
},
"grade": {
"type": "object",
"description": "Hadith grading and attribution. Absent for Quran records.",
"properties": {
"english": {
"type": [
"string",
"null"
]
},
"arabic": {
"type": [
"string",
"null"
]
},
"grader_english": {
"type": [
"string",
"null"
]
},
"grader_arabic": {
"type": [
"string",
"null"
]
}
},
"required": [
"english",
"arabic",
"grader_english",
"grader_arabic"
],
"additionalProperties": false
},
"research_inventory": {
"type": "object",
"description": "Available commentary entries and verified internal report links, including in compact responses. Missing attached commentary does not imply no scholarly discussion exists.",
"properties": {
"commentary_status": {
"type": "string",
"enum": [
"found",
"searched_no_match",
"unavailable"
]
},
"commentary_entry_count": {
"type": "integer"
},
"commentary_work_count": {
"type": "integer"
},
"commentaries": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": [
"integer",
"null"
]
},
"source": {
"type": "object",
"properties": {
"id": {
"type": [
"integer",
"null"
]
},
"alias": {
"type": [
"string",
"null"
]
},
"title_arabic": {
"type": [
"string",
"null"
]
},
"title_english": {
"type": [
"string",
"null"
]
},
"author_arabic": {
"type": [
"string",
"null"
]
},
"author_english": {
"type": [
"string",
"null"
]
}
},
"required": [
"id",
"alias",
"title_arabic",
"title_english",
"author_arabic",
"author_english"
],
"additionalProperties": false
},
"hadith_reference": {
"type": [
"string",
"null"
]
}
},
"required": [
"id",
"source",
"hadith_reference"
],
"additionalProperties": false
}
},
"related_reports": {
"type": "array",
"items": {
"type": "object",
"properties": {
"reference": {
"type": "string"
},
"relationship": {
"type": "string"
},
"label": {
"type": [
"string",
"null"
]
}
},
"required": [
"reference",
"relationship",
"label"
],
"additionalProperties": false
}
},
"commentary_text_included": {
"type": "boolean"
},
"next_step": {
"type": "string"
}
},
"required": [
"commentary_status",
"commentary_entry_count",
"commentary_work_count",
"commentaries",
"related_reports",
"commentary_text_included",
"next_step"
],
"additionalProperties": false
},
"metadata": {
"type": "object",
"description": "Source metadata, narrators, references, and normalized sharh when available.",
"additionalProperties": true
},
"translation_matches": {
"type": "array",
"description": "Distinct translation matches merged under the canonical Quran ayah.",
"items": {
"type": "object",
"properties": {
"source_alias": {
"type": [
"string",
"null"
]
},
"source_name_english": {
"type": [
"string",
"null"
]
},
"source_name_arabic": {
"type": [
"string",
"null"
]
},
"language": {
"type": [
"string",
"null"
]
},
"text": {
"type": "string"
}
},
"required": [
"source_alias",
"source_name_english",
"source_name_arabic",
"language",
"text"
],
"additionalProperties": false
}
}
},
"required": [
"id",
"reference",
"url",
"book",
"number",
"chapter_number",
"headings",
"english",
"arabic",
"bilingual",
"text",
"text_arabic",
"text_english",
"truncated"
],
"additionalProperties": false
},
"error": {
"type": "string",
"description": "Error message when the tool could not complete the request."
}
},
"oneOf": [
{
"required": [
"ayah"
]
},
{
"required": [
"error"
]
}
],
"additionalProperties": false
}🟢search_quran(query, limit, cursor, offset, sort)
Search Quran Arabic text and English translations by words or phrases. Use lookup_quran_ayah for an exact reference.
输入模式
{
"type": "object",
"properties": {
"query": {
"type": "string",
"minLength": 1,
"description": "Words or phrase to search for."
},
"limit": {
"type": "integer",
"minimum": 1,
"maximum": 20,
"default": 10
},
"cursor": {
"type": "string",
"minLength": 1,
"description": "Opaque cursor returned by the previous page. Do not modify it."
},
"offset": {
"type": "integer",
"minimum": 0,
"default": 0,
"description": "Deprecated numeric pagination offset. Prefer cursor."
},
"sort": {
"type": "string",
"enum": [
"relevance",
"canonical"
],
"default": "relevance"
}
},
"required": [
"query"
],
"additionalProperties": false
}输出模式
{
"type": "object",
"properties": {
"query": {
"type": "string"
},
"offset": {
"type": "integer",
"minimum": 0
},
"pagination": {
"type": "object",
"properties": {
"limit": {
"type": "integer",
"minimum": 1,
"maximum": 20
},
"returned": {
"type": "integer",
"minimum": 0
},
"offset": {
"type": "integer",
"minimum": 0
},
"total_available": {
"type": [
"integer",
"null"
],
"minimum": 0
},
"total_is_exact": {
"type": "boolean"
},
"has_more": {
"type": "boolean"
},
"next_cursor": {
"type": [
"string",
"null"
]
}
},
"required": [
"limit",
"returned",
"offset",
"total_available",
"total_is_exact",
"has_more",
"next_cursor"
],
"additionalProperties": false
},
"results": {
"type": "array",
"items": {
"type": "object",
"description": "A normalized Quran, hadith, sirah, or history record.",
"properties": {
"id": {
"type": [
"integer",
"string",
"null"
]
},
"reference": {
"type": [
"string",
"null"
],
"description": "Canonical HadithDB reference."
},
"url": {
"type": [
"string",
"null"
],
"description": "Canonical public URL for the record."
},
"book": {
"type": "object",
"properties": {
"alias": {
"type": [
"string",
"null"
]
},
"name_english": {
"type": [
"string",
"null"
]
},
"name_arabic": {
"type": [
"string",
"null"
]
},
"short_name_english": {
"type": [
"string",
"null"
]
},
"short_name_arabic": {
"type": [
"string",
"null"
]
}
},
"required": [
"alias",
"name_english",
"name_arabic",
"short_name_english",
"short_name_arabic"
],
"additionalProperties": false
},
"number": {
"type": [
"integer",
"number",
"string",
"null"
]
},
"chapter_number": {
"type": [
"integer",
"number",
"string",
"null"
]
},
"headings": {
"type": "array",
"items": {
"type": "object",
"properties": {
"number": {
"type": [
"integer",
"number",
"string",
"null"
]
},
"english": {
"type": [
"string",
"null"
]
},
"arabic": {
"type": [
"string",
"null"
]
}
},
"required": [
"number",
"english",
"arabic"
],
"additionalProperties": false
}
},
"english": {
"type": "object",
"description": "The separately addressable fields for one language.",
"properties": {
"title": {
"type": [
"string",
"null"
]
},
"chain": {
"type": [
"string",
"null"
]
},
"body": {
"type": [
"string",
"null"
]
},
"footnote": {
"type": [
"string",
"null"
]
}
},
"required": [
"title",
"chain",
"body",
"footnote"
],
"additionalProperties": false
},
"arabic": {
"type": "object",
"description": "The separately addressable fields for one language.",
"properties": {
"title": {
"type": [
"string",
"null"
]
},
"chain": {
"type": [
"string",
"null"
]
},
"body": {
"type": [
"string",
"null"
]
},
"footnote": {
"type": [
"string",
"null"
]
}
},
"required": [
"title",
"chain",
"body",
"footnote"
],
"additionalProperties": false
},
"bilingual": {
"type": "boolean",
"description": "Whether both Arabic and English text are present."
},
"text": {
"type": [
"string",
"null"
],
"description": "Combined English and Arabic text when either is present."
},
"text_arabic": {
"type": [
"string",
"null"
],
"description": "Full Arabic text."
},
"text_english": {
"type": [
"string",
"null"
],
"description": "Full English text."
},
"truncated": {
"type": "boolean",
"description": "Whether one or more text fields were shortened for the selected response profile."
},
"grade": {
"type": "object",
"description": "Hadith grading and attribution. Absent for Quran records.",
"properties": {
"english": {
"type": [
"string",
"null"
]
},
"arabic": {
"type": [
"string",
"null"
]
},
"grader_english": {
"type": [
"string",
"null"
]
},
"grader_arabic": {
"type": [
"string",
"null"
]
}
},
"required": [
"english",
"arabic",
"grader_english",
"grader_arabic"
],
"additionalProperties": false
},
"research_inventory": {
"type": "object",
"description": "Available commentary entries and verified internal report links, including in compact responses. Missing attached commentary does not imply no scholarly discussion exists.",
"properties": {
"commentary_status": {
"type": "string",
"enum": [
"found",
"searched_no_match",
"unavailable"
]
},
"commentary_entry_count": {
"type": "integer"
},
"commentary_work_count": {
"type": "integer"
},
"commentaries": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": [
"integer",
"null"
]
},
"source": {
"type": "object",
"properties": {
"id": {
"type": [
"integer",
"null"
]
},
"alias": {
"type": [
"string",
"null"
]
},
"title_arabic": {
"type": [
"string",
"null"
]
},
"title_english": {
"type": [
"string",
"null"
]
},
"author_arabic": {
"type": [
"string",
"null"
]
},
"author_english": {
"type": [
"string",
"null"
]
}
},
"required": [
"id",
"alias",
"title_arabic",
"title_english",
"author_arabic",
"author_english"
],
"additionalProperties": false
},
"hadith_reference": {
"type": [
"string",
"null"
]
}
},
"required": [
"id",
"source",
"hadith_reference"
],
"additionalProperties": false
}
},
"related_reports": {
"type": "array",
"items": {
"type": "object",
"properties": {
"reference": {
"type": "string"
},
"relationship": {
"type": "string"
},
"label": {
"type": [
"string",
"null"
]
}
},
"required": [
"reference",
"relationship",
"label"
],
"additionalProperties": false
}
},
"commentary_text_included": {
"type": "boolean"
},
"next_step": {
"type": "string"
}
},
"required": [
"commentary_status",
"commentary_entry_count",
"commentary_work_count",
"commentaries",
"related_reports",
"commentary_text_included",
"next_step"
],
"additionalProperties": false
},
"metadata": {
"type": "object",
"description": "Source metadata, narrators, references, and normalized sharh when available.",
"additionalProperties": true
},
"translation_matches": {
"type": "array",
"description": "Distinct translation matches merged under the canonical Quran ayah.",
"items": {
"type": "object",
"properties": {
"source_alias": {
"type": [
"string",
"null"
]
},
"source_name_english": {
"type": [
"string",
"null"
]
},
"source_name_arabic": {
"type": [
"string",
"null"
]
},
"language": {
"type": [
"string",
"null"
]
},
"text": {
"type": "string"
}
},
"required": [
"source_alias",
"source_name_english",
"source_name_arabic",
"language",
"text"
],
"additionalProperties": false
}
}
},
"required": [
"id",
"reference",
"url",
"book",
"number",
"chapter_number",
"headings",
"english",
"arabic",
"bilingual",
"text",
"text_arabic",
"text_english",
"truncated"
],
"additionalProperties": false
}
},
"error": {
"type": "string",
"description": "Error message when the tool could not complete the request."
}
},
"oneOf": [
{
"required": [
"query",
"offset",
"pagination",
"results"
]
},
{
"required": [
"error"
]
}
],
"additionalProperties": false
}🟢list_tafsirs(query, limit, cursor)
Find available HadithDB tafsir sources and aliases. Use this to resolve an author or title before a tafsir lookup.
输入模式
{
"type": "object",
"properties": {
"query": {
"type": "string",
"description": "Optional author, title, language, or alias filter."
},
"limit": {
"type": "integer",
"minimum": 1,
"maximum": 100,
"default": 25
},
"cursor": {
"type": "string",
"minLength": 1,
"description": "Opaque cursor returned by the previous page. Do not modify it."
}
},
"additionalProperties": false
}输出模式
{
"type": "object",
"properties": {
"query": {
"type": [
"string",
"null"
]
},
"total": {
"type": "integer",
"minimum": 0
},
"has_more": {
"type": "boolean"
},
"next_cursor": {
"type": [
"string",
"null"
]
},
"tafsirs": {
"type": "array",
"items": {
"type": "object",
"description": "A normalized local tafsir source.",
"properties": {
"alias": {
"type": "string"
},
"name_english": {
"type": [
"string",
"null"
]
},
"name_arabic": {
"type": [
"string",
"null"
]
},
"short_name_english": {
"type": [
"string",
"null"
]
},
"short_name_arabic": {
"type": [
"string",
"null"
]
},
"author_english": {
"type": [
"string",
"null"
]
},
"author_arabic": {
"type": [
"string",
"null"
]
},
"available": {
"type": "boolean"
},
"languages": {
"type": "array",
"items": {
"type": "string"
}
}
},
"required": [
"alias",
"name_english",
"name_arabic",
"short_name_english",
"short_name_arabic",
"author_english",
"author_arabic",
"available",
"languages"
],
"additionalProperties": false
}
},
"error": {
"type": "string",
"description": "Error message when the tool could not complete the request."
}
},
"oneOf": [
{
"required": [
"query",
"total",
"has_more",
"next_cursor",
"tafsirs"
]
},
{
"required": [
"error"
]
}
],
"additionalProperties": false
}🟢lookup_tafsir(tafsir, surah, ayah, language, response_profile, ...)
Retrieve commentary from a named HadithDB tafsir source for one Quran ayah.
输入模式
{
"type": "object",
"properties": {
"tafsir": {
"type": "string",
"minLength": 1,
"description": "Alias, author, short name, or title, such as ibn-kathir."
},
"surah": {
"type": "integer",
"minimum": 1,
"maximum": 114
},
"ayah": {
"type": "integer",
"minimum": 0
},
"language": {
"type": "string",
"enum": [
"ar",
"en"
],
"description": "Preferred output language when available."
},
"response_profile": {
"type": "string",
"enum": [
"compact",
"default",
"full"
],
"default": "default",
"description": "Controls response size. Compact shortens long commentary, default balances context and size, and full returns all stored text."
},
"max_chars": {
"type": "integer",
"minimum": 1,
"maximum": 100000,
"description": "Optional explicit character cap per language, overriding the selected response profile."
}
},
"required": [
"tafsir",
"surah",
"ayah"
],
"additionalProperties": false
}输出模式
{
"type": "object",
"properties": {
"source": {
"type": "object",
"description": "A normalized local tafsir source.",
"properties": {
"alias": {
"type": "string"
},
"name_english": {
"type": [
"string",
"null"
]
},
"name_arabic": {
"type": [
"string",
"null"
]
},
"short_name_english": {
"type": [
"string",
"null"
]
},
"short_name_arabic": {
"type": [
"string",
"null"
]
},
"author_english": {
"type": [
"string",
"null"
]
},
"author_arabic": {
"type": [
"string",
"null"
]
},
"available": {
"type": "boolean"
},
"languages": {
"type": "array",
"items": {
"type": "string"
}
}
},
"required": [
"alias",
"name_english",
"name_arabic",
"short_name_english",
"short_name_arabic",
"author_english",
"author_arabic",
"available",
"languages"
],
"additionalProperties": false
},
"reference": {
"type": "string"
},
"url": {
"type": "string"
},
"response_profile": {
"type": "string",
"enum": [
"compact",
"default",
"full"
]
},
"availability": {
"type": "object",
"properties": {
"requested_language": {
"type": [
"string",
"null"
]
},
"resolved_language": {
"type": [
"string",
"null"
]
},
"fallback_used": {
"type": "boolean"
},
"available_languages": {
"type": "array",
"items": {
"type": "string"
}
},
"has_arabic": {
"type": "boolean"
},
"has_english": {
"type": "boolean"
}
},
"required": [
"requested_language",
"resolved_language",
"fallback_used",
"available_languages",
"has_arabic",
"has_english"
],
"additionalProperties": false
},
"commentary": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": [
"integer",
"string",
"null"
]
},
"ayah_from": {
"type": [
"integer",
"number",
"string"
]
},
"ayah_to": {
"type": [
"integer",
"number",
"string"
]
},
"language": {
"type": [
"string",
"null"
]
},
"bilingual": {
"type": "boolean",
"description": "Whether both Arabic and English text are present."
},
"text": {
"type": [
"string",
"null"
],
"description": "Combined English and Arabic text when either is present."
},
"text_arabic": {
"type": [
"string",
"null"
],
"description": "Full Arabic text."
},
"text_english": {
"type": [
"string",
"null"
],
"description": "Full English text."
},
"truncated": {
"type": "boolean",
"description": "Whether one or more text fields were shortened for the selected response profile."
}
},
"required": [
"id",
"ayah_from",
"ayah_to",
"language",
"bilingual",
"text",
"text_arabic",
"text_english",
"truncated"
],
"additionalProperties": false
}
},
"error": {
"type": "string",
"description": "Error message when the tool could not complete the request."
}
},
"oneOf": [
{
"required": [
"source",
"reference",
"url",
"response_profile",
"availability",
"commentary"
]
},
{
"required": [
"error"
]
}
],
"additionalProperties": false
}🟢search_tafsir(query, limit, cursor, offset, tafsir, ...)
Search HadithDB tafsir commentary, optionally restricting results to one named source.
输入模式
{
"type": "object",
"properties": {
"query": {
"type": "string",
"minLength": 1,
"description": "Words or phrase to search for."
},
"limit": {
"type": "integer",
"minimum": 1,
"maximum": 20,
"default": 10
},
"cursor": {
"type": "string",
"minLength": 1,
"description": "Opaque cursor returned by the previous page. Do not modify it."
},
"offset": {
"type": "integer",
"minimum": 0,
"default": 0,
"description": "Deprecated numeric pagination offset. Prefer cursor."
},
"tafsir": {
"type": "string",
"minLength": 1,
"description": "Optional tafsir alias, author, short name, or title."
},
"sort": {
"type": "string",
"enum": [
"relevance",
"canonical"
],
"default": "relevance"
}
},
"required": [
"query"
],
"additionalProperties": false
}输出模式
{
"type": "object",
"properties": {
"query": {
"type": "string"
},
"offset": {
"type": "integer",
"minimum": 0
},
"pagination": {
"type": "object",
"properties": {
"limit": {
"type": "integer",
"minimum": 1,
"maximum": 20
},
"returned": {
"type": "integer",
"minimum": 0
},
"offset": {
"type": "integer",
"minimum": 0
},
"total_available": {
"type": [
"integer",
"null"
],
"minimum": 0
},
"total_is_exact": {
"type": "boolean"
},
"has_more": {
"type": "boolean"
},
"next_cursor": {
"type": [
"string",
"null"
]
}
},
"required": [
"limit",
"returned",
"offset",
"total_available",
"total_is_exact",
"has_more",
"next_cursor"
],
"additionalProperties": false
},
"source": {
"anyOf": [
{
"type": "object",
"description": "A normalized local tafsir source.",
"properties": {
"alias": {
"type": "string"
},
"name_english": {
"type": [
"string",
"null"
]
},
"name_arabic": {
"type": [
"string",
"null"
]
},
"short_name_english": {
"type": [
"string",
"null"
]
},
"short_name_arabic": {
"type": [
"string",
"null"
]
},
"author_english": {
"type": [
"string",
"null"
]
},
"author_arabic": {
"type": [
"string",
"null"
]
},
"available": {
"type": "boolean"
},
"languages": {
"type": "array",
"items": {
"type": "string"
}
}
},
"required": [
"alias",
"name_english",
"name_arabic",
"short_name_english",
"short_name_arabic",
"author_english",
"author_arabic",
"available",
"languages"
],
"additionalProperties": false
},
{
"type": "null"
}
]
},
"results": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": [
"integer",
"string",
"null"
]
},
"source": {
"type": "object",
"properties": {
"alias": {
"type": [
"string",
"null"
]
},
"name_english": {
"type": [
"string",
"null"
]
},
"name_arabic": {
"type": [
"string",
"null"
]
},
"author_english": {
"type": [
"string",
"null"
]
},
"author_arabic": {
"type": [
"string",
"null"
]
},
"languages": {
"type": "array",
"items": {
"type": "string"
}
}
},
"required": [
"alias",
"name_english",
"name_arabic",
"author_english",
"author_arabic",
"languages"
],
"additionalProperties": false
},
"reference": {
"type": "string"
},
"surah": {
"type": [
"integer",
"number",
"string",
"null"
]
},
"ayah_from": {
"type": [
"integer",
"number",
"string",
"null"
]
},
"ayah_to": {
"type": [
"integer",
"number",
"string",
"null"
]
},
"bilingual": {
"type": "boolean",
"description": "Whether both Arabic and English text are present."
},
"text": {
"type": [
"string",
"null"
],
"description": "Combined English and Arabic text when either is present."
},
"text_arabic": {
"type": [
"string",
"null"
],
"description": "Full Arabic text."
},
"text_english": {
"type": [
"string",
"null"
],
"description": "Full English text."
},
"truncated": {
"type": "boolean",
"description": "Whether one or more text fields were shortened for the selected response profile."
},
"url": {
"type": "string"
}
},
"required": [
"id",
"source",
"reference",
"surah",
"ayah_from",
"ayah_to",
"bilingual",
"text",
"text_arabic",
"text_english",
"truncated",
"url"
],
"additionalProperties": false
}
},
"error": {
"type": "string",
"description": "Error message when the tool could not complete the request."
}
},
"oneOf": [
{
"required": [
"query",
"offset",
"pagination",
"source",
"results"
]
},
{
"required": [
"error"
]
}
],
"additionalProperties": false
}🟢search_hadith(query, limit, cursor, offset, books)
Search Arabic or English hadith, sirah, and history text, optionally within selected book aliases or virtual book groups. Use the sirah or history scope to search every book whose type is sirah or history.
输入模式
{
"type": "object",
"properties": {
"query": {
"type": "string",
"minLength": 1,
"description": "Words or phrase to search for."
},
"limit": {
"type": "integer",
"minimum": 1,
"maximum": 20,
"default": 10
},
"cursor": {
"type": "string",
"minLength": 1,
"description": "Opaque cursor returned by the previous page. Do not modify it."
},
"offset": {
"type": "integer",
"minimum": 0,
"default": 0,
"description": "Deprecated numeric pagination offset. Prefer cursor."
},
"books": {
"type": "array",
"items": {
"type": "string",
"minLength": 1
},
"maxItems": 20,
"description": "Optional HadithDB book aliases or groups such as sahihayn, sixbooks, ninebooks, sirah, or history. Either sirah or history searches all books of both historical types."
}
},
"required": [
"query"
],
"additionalProperties": false
}输出模式
{
"type": "object",
"properties": {
"query": {
"type": "string"
},
"offset": {
"type": "integer",
"minimum": 0
},
"pagination": {
"type": "object",
"properties": {
"limit": {
"type": "integer",
"minimum": 1,
"maximum": 20
},
"returned": {
"type": "integer",
"minimum": 0
},
"offset": {
"type": "integer",
"minimum": 0
},
"total_available": {
"type": [
"integer",
"null"
],
"minimum": 0
},
"total_is_exact": {
"type": "boolean"
},
"has_more": {
"type": "boolean"
},
"next_cursor": {
"type": [
"string",
"null"
]
}
},
"required": [
"limit",
"returned",
"offset",
"total_available",
"total_is_exact",
"has_more",
"next_cursor"
],
"additionalProperties": false
},
"books": {
"type": "array",
"items": {
"type": "string"
}
},
"results": {
"type": "array",
"items": {
"type": "object",
"description": "A normalized Quran, hadith, sirah, or history record.",
"properties": {
"id": {
"type": [
"integer",
"string",
"null"
]
},
"reference": {
"type": [
"string",
"null"
],
"description": "Canonical HadithDB reference."
},
"url": {
"type": [
"string",
"null"
],
"description": "Canonical public URL for the record."
},
"book": {
"type": "object",
"properties": {
"alias": {
"type": [
"string",
"null"
]
},
"name_english": {
"type": [
"string",
"null"
]
},
"name_arabic": {
"type": [
"string",
"null"
]
},
"short_name_english": {
"type": [
"string",
"null"
]
},
"short_name_arabic": {
"type": [
"string",
"null"
]
}
},
"required": [
"alias",
"name_english",
"name_arabic",
"short_name_english",
"short_name_arabic"
],
"additionalProperties": false
},
"number": {
"type": [
"integer",
"number",
"string",
"null"
]
},
"chapter_number": {
"type": [
"integer",
"number",
"string",
"null"
]
},
"headings": {
"type": "array",
"items": {
"type": "object",
"properties": {
"number": {
"type": [
"integer",
"number",
"string",
"null"
]
},
"english": {
"type": [
"string",
"null"
]
},
"arabic": {
"type": [
"string",
"null"
]
}
},
"required": [
"number",
"english",
"arabic"
],
"additionalProperties": false
}
},
"english": {
"type": "object",
"description": "The separately addressable fields for one language.",
"properties": {
"title": {
"type": [
"string",
"null"
]
},
"chain": {
"type": [
"string",
"null"
]
},
"body": {
"type": [
"string",
"null"
]
},
"footnote": {
"type": [
"string",
"null"
]
}
},
"required": [
"title",
"chain",
"body",
"footnote"
],
"additionalProperties": false
},
"arabic": {
"type": "object",
"description": "The separately addressable fields for one language.",
"properties": {
"title": {
"type": [
"string",
"null"
]
},
"chain": {
"type": [
"string",
"null"
]
},
"body": {
"type": [
"string",
"null"
]
},
"footnote": {
"type": [
"string",
"null"
]
}
},
"required": [
"title",
"chain",
"body",
"footnote"
],
"additionalProperties": false
},
"bilingual": {
"type": "boolean",
"description": "Whether both Arabic and English text are present."
},
"text": {
"type": [
"string",
"null"
],
"description": "Combined English and Arabic text when either is present."
},
"text_arabic": {
"type": [
"string",
"null"
],
"description": "Full Arabic text."
},
"text_english": {
"type": [
"string",
"null"
],
"description": "Full English text."
},
"truncated": {
"type": "boolean",
"description": "Whether one or more text fields were shortened for the selected response profile."
},
"grade": {
"type": "object",
"description": "Hadith grading and attribution. Absent for Quran records.",
"properties": {
"english": {
"type": [
"string",
"null"
]
},
"arabic": {
"type": [
"string",
"null"
]
},
"grader_english": {
"type": [
"string",
"null"
]
},
"grader_arabic": {
"type": [
"string",
"null"
]
}
},
"required": [
"english",
"arabic",
"grader_english",
"grader_arabic"
],
"additionalProperties": false
},
"research_inventory": {
"type": "object",
"description": "Available commentary entries and verified internal report links, including in compact responses. Missing attached commentary does not imply no scholarly discussion exists.",
"properties": {
"commentary_status": {
"type": "string",
"enum": [
"found",
"searched_no_match",
"unavailable"
]
},
"commentary_entry_count": {
"type": "integer"
},
"commentary_work_count": {
"type": "integer"
},
"commentaries": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": [
"integer",
"null"
]
},
"source": {
"type": "object",
"properties": {
"id": {
"type": [
"integer",
"null"
]
},
"alias": {
"type": [
"string",
"null"
]
},
"title_arabic": {
"type": [
"string",
"null"
]
},
"title_english": {
"type": [
"string",
"null"
]
},
"author_arabic": {
"type": [
"string",
"null"
]
},
"author_english": {
"type": [
"string",
"null"
]
}
},
"required": [
"id",
"alias",
"title_arabic",
"title_english",
"author_arabic",
"author_english"
],
"additionalProperties": false
},
"hadith_reference": {
"type": [
"string",
"null"
]
}
},
"required": [
"id",
"source",
"hadith_reference"
],
"additionalProperties": false
}
},
"related_reports": {
"type": "array",
"items": {
"type": "object",
"properties": {
"reference": {
"type": "string"
},
"relationship": {
"type": "string"
},
"label": {
"type": [
"string",
"null"
]
}
},
"required": [
"reference",
"relationship",
"label"
],
"additionalProperties": false
}
},
"commentary_text_included": {
"type": "boolean"
},
"next_step": {
"type": "string"
}
},
"required": [
"commentary_status",
"commentary_entry_count",
"commentary_work_count",
"commentaries",
"related_reports",
"commentary_text_included",
"next_step"
],
"additionalProperties": false
},
"metadata": {
"type": "object",
"description": "Source metadata, narrators, references, and normalized sharh when available.",
"additionalProperties": true
},
"translation_matches": {
"type": "array",
"description": "Distinct translation matches merged under the canonical Quran ayah.",
"items": {
"type": "object",
"properties": {
"source_alias": {
"type": [
"string",
"null"
]
},
"source_name_english": {
"type": [
"string",
"null"
]
},
"source_name_arabic": {
"type": [
"string",
"null"
]
},
"language": {
"type": [
"string",
"null"
]
},
"text": {
"type": "string"
}
},
"required": [
"source_alias",
"source_name_english",
"source_name_arabic",
"language",
"text"
],
"additionalProperties": false
}
}
},
"required": [
"id",
"reference",
"url",
"book",
"number",
"chapter_number",
"headings",
"english",
"arabic",
"bilingual",
"text",
"text_arabic",
"text_english",
"truncated"
],
"additionalProperties": false
}
},
"error": {
"type": "string",
"description": "Error message when the tool could not complete the request."
}
},
"oneOf": [
{
"required": [
"query",
"offset",
"pagination",
"books",
"results"
]
},
{
"required": [
"error"
]
}
],
"additionalProperties": false
}🟢lookup_hadith_detail(reference, response_profile)
Retrieve the core Arabic and English text, chain, headings, grades, and canonical URL for an exact hadith reference. Complete scholarly metadata and provenance are available with response_profile: "full". Compact includes an inventory of available commentary and verified related reports. For worship instructions or scholarly explanations, use research_islamic_topic and the commentary tools before answering.
输入模式
{
"type": "object",
"properties": {
"reference": {
"type": "string",
"minLength": 3,
"description": "Reference such as bukhari:1, muslim:1907, or ahmad:1.6."
},
"response_profile": {
"type": "string",
"enum": [
"compact",
"default",
"full"
],
"default": "compact",
"description": "Compact returns the core record and is the default. Default adds bounded attribution, narrator, grading, reference, and commentary metadata. Full explicitly returns all stored provenance and metadata."
}
},
"required": [
"reference"
],
"additionalProperties": false
}输出模式
{
"type": "object",
"properties": {
"requested_reference": {
"type": "string"
},
"canonical_url": {
"type": "string"
},
"response_profile": {
"type": "string",
"enum": [
"compact",
"default",
"full"
]
},
"records": {
"type": "array",
"minItems": 1,
"items": {
"type": "object",
"description": "A normalized Quran, hadith, sirah, or history record.",
"properties": {
"id": {
"type": [
"integer",
"string",
"null"
]
},
"reference": {
"type": [
"string",
"null"
],
"description": "Canonical HadithDB reference."
},
"url": {
"type": [
"string",
"null"
],
"description": "Canonical public URL for the record."
},
"book": {
"type": "object",
"properties": {
"alias": {
"type": [
"string",
"null"
]
},
"name_english": {
"type": [
"string",
"null"
]
},
"name_arabic": {
"type": [
"string",
"null"
]
},
"short_name_english": {
"type": [
"string",
"null"
]
},
"short_name_arabic": {
"type": [
"string",
"null"
]
}
},
"required": [
"alias",
"name_english",
"name_arabic",
"short_name_english",
"short_name_arabic"
],
"additionalProperties": false
},
"number": {
"type": [
"integer",
"number",
"string",
"null"
]
},
"chapter_number": {
"type": [
"integer",
"number",
"string",
"null"
]
},
"headings": {
"type": "array",
"items": {
"type": "object",
"properties": {
"number": {
"type": [
"integer",
"number",
"string",
"null"
]
},
"english": {
"type": [
"string",
"null"
]
},
"arabic": {
"type": [
"string",
"null"
]
}
},
"required": [
"number",
"english",
"arabic"
],
"additionalProperties": false
}
},
"english": {
"type": "object",
"description": "The separately addressable fields for one language.",
"properties": {
"title": {
"type": [
"string",
"null"
]
},
"chain": {
"type": [
"string",
"null"
]
},
"body": {
"type": [
"string",
"null"
]
},
"footnote": {
"type": [
"string",
"null"
]
}
},
"required": [
"title",
"chain",
"body",
"footnote"
],
"additionalProperties": false
},
"arabic": {
"type": "object",
"description": "The separately addressable fields for one language.",
"properties": {
"title": {
"type": [
"string",
"null"
]
},
"chain": {
"type": [
"string",
"null"
]
},
"body": {
"type": [
"string",
"null"
]
},
"footnote": {
"type": [
"string",
"null"
]
}
},
"required": [
"title",
"chain",
"body",
"footnote"
],
"additionalProperties": false
},
"bilingual": {
"type": "boolean",
"description": "Whether both Arabic and English text are present."
},
"text": {
"type": [
"string",
"null"
],
"description": "Combined English and Arabic text when either is present."
},
"text_arabic": {
"type": [
"string",
"null"
],
"description": "Full Arabic text."
},
"text_english": {
"type": [
"string",
"null"
],
"description": "Full English text."
},
"truncated": {
"type": "boolean",
"description": "Whether one or more text fields were shortened for the selected response profile."
},
"grade": {
"type": "object",
"description": "Hadith grading and attribution. Absent for Quran records.",
"properties": {
"english": {
"type": [
"string",
"null"
]
},
"arabic": {
"type": [
"string",
"null"
]
},
"grader_english": {
"type": [
"string",
"null"
]
},
"grader_arabic": {
"type": [
"string",
"null"
]
}
},
"required": [
"english",
"arabic",
"grader_english",
"grader_arabic"
],
"additionalProperties": false
},
"research_inventory": {
"type": "object",
"description": "Available commentary entries and verified internal report links, including in compact responses. Missing attached commentary does not imply no scholarly discussion exists.",
"properties": {
"commentary_status": {
"type": "string",
"enum": [
"found",
"searched_no_match",
"unavailable"
]
},
"commentary_entry_count": {
"type": "integer"
},
"commentary_work_count": {
"type": "integer"
},
"commentaries": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": [
"integer",
"null"
]
},
"source": {
"type": "object",
"properties": {
"id": {
"type": [
"integer",
"null"
]
},
"alias": {
"type": [
"string",
"null"
]
},
"title_arabic": {
"type": [
"string",
"null"
]
},
"title_english": {
"type": [
"string",
"null"
]
},
"author_arabic": {
"type": [
"string",
"null"
]
},
"author_english": {
"type": [
"string",
"null"
]
}
},
"required": [
"id",
"alias",
"title_arabic",
"title_english",
"author_arabic",
"author_english"
],
"additionalProperties": false
},
"hadith_reference": {
"type": [
"string",
"null"
]
}
},
"required": [
"id",
"source",
"hadith_reference"
],
"additionalProperties": false
}
},
"related_reports": {
"type": "array",
"items": {
"type": "object",
"properties": {
"reference": {
"type": "string"
},
"relationship": {
"type": "string"
},
"label": {
"type": [
"string",
"null"
]
}
},
"required": [
"reference",
"relationship",
"label"
],
"additionalProperties": false
}
},
"commentary_text_included": {
"type": "boolean"
},
"next_step": {
"type": "string"
}
},
"required": [
"commentary_status",
"commentary_entry_count",
"commentary_work_count",
"commentaries",
"related_reports",
"commentary_text_included",
"next_step"
],
"additionalProperties": false
},
"metadata": {
"type": "object",
"description": "Source metadata, narrators, references, and normalized sharh when available.",
"additionalProperties": true
},
"translation_matches": {
"type": "array",
"description": "Distinct translation matches merged under the canonical Quran ayah.",
"items": {
"type": "object",
"properties": {
"source_alias": {
"type": [
"string",
"null"
]
},
"source_name_english": {
"type": [
"string",
"null"
]
},
"source_name_arabic": {
"type": [
"string",
"null"
]
},
"language": {
"type": [
"string",
"null"
]
},
"text": {
"type": "string"
}
},
"required": [
"source_alias",
"source_name_english",
"source_name_arabic",
"language",
"text"
],
"additionalProperties": false
}
}
},
"required": [
"id",
"reference",
"url",
"book",
"number",
"chapter_number",
"headings",
"english",
"arabic",
"bilingual",
"text",
"text_arabic",
"text_english",
"truncated"
],
"additionalProperties": false
}
},
"error": {
"type": "string",
"description": "Error message when the tool could not complete the request."
}
},
"oneOf": [
{
"required": [
"requested_reference",
"canonical_url",
"response_profile",
"records"
]
},
{
"required": [
"error"
]
}
],
"additionalProperties": false
}社区
证据