Fetch Tafsir Commentary
fetch_tafsirPREREQUISITE: 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. Use the mufassir or edition explicitly requested by the user when its edition ID is already verified; look up an unknown ID instead of guessing. Otherwise choose the tafsirs best suited to this question using the shared tafsir guide or an available catalogue. IDs from the guide can be used directly. Use list_editions(edition_type='tafsir') for unknown IDs, additional selection information, or checking current availability when needed; it is not a prerequisite. Do not reuse a source automatically because it served a previous question. Do not limit yourself to the user's language — Arabic tafsir editions often contain richer scholarship. Fetch the most authoritative source regardless of language and translate the result yourself. Retrieve full canonical tafsir text for one or more ayat. Use when the user asks for tafsir, explanation, commentary, interpretation, or context and the requested canonical tafsir text for an ayah or 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_tafsir"
}
}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): required. Accept a single string or list; values may be full identifiers ('{lang}-{code}'), short codes ('{code}'), 2-letter language codes ('en', 'ar'), or ≥4 character fuzzy matches across name/author/code/id. Use the explicitly requested source, or choose for this question from the shared tafsir guide or an available catalogue. IDs from the guide can be used directly; use list_editions(edition_type='tafsir') when more selection information is needed. Required unless continuation is provided. | |
| 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 | Tafsir results keyed by edition identifier (e.g., '{lang}-{code}') | |
| 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. |