Fetch Quran Text
fetch_quranUse this tool to retrieve exact canonical Quranic text when the person asks what a passage says or asks for its Arabic, for example, “What does Quran 94:5–6 say?” PREREQUISITE: 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. Defaults to ar-uthmani-hafs if no edition is provided. Invoke whenever a verse reference appears and the requested canonical Quran text for those ayat is not already in your context via dynamic context or prior tool calls. Failure contract: [invalid_request] for malformed inputs, [not_found] when requested canonical data is absent, [service_unavailable] when the required runtime resource is unavailable, [continuation_invalid|tampered|expired|conflict|exhausted] for bad continuation tokens. Protected retrieval also returns [rate_limited] or [server_busy] with retry guidance, and [request_too_large] when a selection exceeds 300 ayahs or 1,000 resolved ayah-edition pairs; split those requests.
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"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ayahs | No | Verse reference(s): single ('2:255'), range ('2:255-257'), comma/space-separated string like '2:255-260, 3:33', or an array of such strings. Required unless continuation is provided. | |
| editions | No | Edition identifier(s): accept a single string or list; values may be full identifiers ('ar-uthmani-hafs'), short codes ('uthmani-hafs'), or 2-letter language codes ('ar'). Defaults to 'ar-uthmani-hafs' when omitted on the initial call. | |
| 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. | |
| 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 |
|---|---|---|---|
| ayahs | Yes | Ayah keys in this page (subset of full request) | |
| results | Yes | Quran text results keyed by edition identifier (e.g., 'ar-uthmani-hafs') | |
| warnings | No | Warnings about data gaps or unresolved edition selectors | |
| pagination | Yes | Continuation metadata | |
| 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. |