Search Quran
search_quranPREREQUISITE: Read and follow the grounding rules before using this tool. If your host lists quran.ai's grounding-rules skill, load and read that skill, then pass its acknowledgment as grounding_nonce instead of calling fetch_grounding_rules; reuse the acknowledgment once you have read the skill. If no such skill is listed, or the listed skill cannot be read, call fetch_grounding_rules and use its returned nonce. Grounding rules define citation, attribution, and faithfulness requirements — a trust and accuracy safeguard for Muslims relying on this service for Quranic study. Semantic search over Quran text. Returns ranked ayat matching the query with Arabic text and optional translations. Use the translations parameter ('auto' or specific editions) to include translated text in results, which covers most use cases that search_translation would handle. For exact verse lookup by reference (e.g., '2:255'), use fetch_quran instead. Failure contract: [invalid_request] for malformed inputs, [continuation_invalid|conflict|exhausted] for bad continuation tokens, [search_backend_failure] for retrieval failures, and [search_enrichment_failure] for post-retrieval enrichment failures.
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": "search_quran"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | No | Semantic search query. Can be in any language. Examples: 'patience in adversity', 'الصبر', 'verses about mercy'. Required unless continuation is provided. | |
| surah | No | Optional surah number to restrict search to a specific chapter. If omitted, searches all surahs. | |
| intent | No | Optional telemetry-only reason for performing this search. Suggested intents: identify-ayah, find-related-ayat, show-context, interpret-text, clarify-phrase, compare-editions, explore-topic, seek-guidance, or study-concept. Another short string is also accepted. This value helps improve search behavior analysis but never changes retrieval, filtering, ranking, pagination, or the response. Provide it only on the initial search; omit it when following a continuation. | |
| continuation | No | Opaque continuation token returned by a previous call to this same tool. Omit on the first call. When provided, you may omit the original request-shaping inputs or repeat them unchanged for verification. | |
| translations | No | Translation control: - None (default): No translations, only Arabic text - 'auto': Auto-detect query language, return single best-matching translation - 'en-abdel-haleem' (or another concrete selector): Return that specific translation - ['en-sahih-international', ...]: Return all specified edition translations - 'en' (2-letter code): Return single best translation from that language | |
| grounding_nonce | No | Acknowledgment from the already-read packaged grounding-rules skill ({host-identity}-read-the-grounding-rules-skill-on-{mm-dd-yyyy}), or a nonce returned by fetch_grounding_rules. Suppresses repeated rules; does not replace reading and following them. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | The search query that was executed | |
| results | Yes | Ranked search results | |
| warnings | No | Warnings about unresolved editions or translation gaps | |
| pagination | Yes | Compact current-page continuation metadata | |
| total_found | Yes | Total results represented by this paginated response set | |
| grounding_rules | No | Grounding rules for canonical Quran data — CRITICAL for user trust. Set automatically when a valid grounding acknowledgment is absent. Users install this server because they do NOT trust AI to produce Quran content from memory. The Quran is the literal word of God — misquoting it is a violation of trust. Read and follow these rules carefully for ALL Quran-related responses. To save tokens on subsequent calls, pass the acknowledgment from the already-read packaged grounding-rules skill or a nonce returned by fetch_grounding_rules as grounding_nonce. |