Skip to main content
Glama

quran.ai

Fetch Translation

fetch_translation
Read-onlyIdempotent

Use 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

NameRequiredDescriptionDefault
ayahsNoVerse 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.
editionsNoEdition 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.
continuationNoOpaque 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_nonceNoAcknowledgment 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

NameRequiredDescriptionDefault
ayahsYesAyah keys in this page (subset of full request)
resultsYesTranslation results keyed by edition identifier (e.g., 'en-abdel-haleem')
warningsNoWarnings about data gaps or unresolved edition selectors
paginationYesContinuation metadata
grounding_rulesNoGrounding 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.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.8/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Beyond the readOnly/idempotent annotations, the description discloses the grounding-rules prerequisite and how to satisfy it, the default edition, the no-op-if-already-in-context behavior, and a full failure contract with error codes ([invalid_request], [not_found], [service_unavailable], continuation failures, [rate_limited], [server_busy], [request_too_large]) plus the 300-ayah / 1,000-pair limits and the instruction to split oversized requests.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Structure is strong and front-loaded: trigger, prerequisite, retrieval behavior, then failure contract. It is dense but nearly all operative; the one expendable piece is the editorial gloss on why grounding rules matter ('a trust and accuracy safeguard for Muslims...'), which explains rather than instructs, and the grounding-nonce instruction is restated across two sentences.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a retrieval tool with an output schema and full annotation coverage, nothing material is missing: the agent knows the trigger, the prerequisite sequence, the default, the dedup behavior, the size limits, and the error taxonomy. Return-value shape is correctly left to the output schema.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the schema already defines all four parameters, and the description largely aligns with it. It still adds value by explaining the two ways to obtain grounding_nonce (packaged skill acknowledgment vs fetch_grounding_rules nonce) and by reinforcing continuation reuse and the default edition rule in the call-flow context.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description opens with a concrete trigger verb and resource ('asks for a Quran translation, literal meaning, or rendering') and includes an example request. It also explicitly separates itself from the nearest sibling: 'Translations are not the same as tafsir... For interpretation and commentary, use fetch_tafsir instead.'

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It states exactly when to invoke the tool, names the exclusion case (tafsir requests go to fetch_tafsir), gives the default edition when the user names none, and describes the dedup condition (skip the call if the translation is already in context). The prerequisite ordering versus fetch_grounding_rules is spelled out with both branches (skill present vs absent).

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.