Fetch Translation
fetch_translationUse this tool when the person asks for a Quran translation, literal meaning, or rendering, including a named edition, for example, “Give me the Sahih International translation of 2:286.” 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. Retrieves the exact canonical translation unless the requested translation for those ayat is already in context via dynamic context or prior tool calls. Defaults to en-abdel-haleem if no edition is provided. Translations are not the same as tafsir; this returns the literal meaning of the text. For interpretation and commentary, use fetch_tafsir instead. 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_translation"
}
}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 ('en-abdel-haleem'), short codes, 2-letter language codes (e.g., 'en', 'es'), or ≥4 character fuzzy matches across name/author/code/id. Defaults to 'en-abdel-haleem' 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 | Translation results keyed by edition identifier (e.g., 'en-abdel-haleem') | |
| 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. |