Skip to main content
Glama

quran.ai

Search Translations

search_translation
Read-onlyIdempotent

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. Use this tool only when you need to filter by specific translation edition(s). Semantic search over Quran translation text. Returns ranked translation passages matching the query with edition metadata. For exact verse translation lookup by reference (e.g., '2:255'), use fetch_translation instead. Prefer search_quran with translations='auto' for most use cases — it searches semantically across both Arabic and translation text, independent of any particular translator's rendering. 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_translation"
  }
}

Input Schema

NameRequiredDescriptionDefault
queryNoSemantic search query. Can be in any language. Examples: 'patience in adversity', 'verses about mercy', 'concept of tawakkul in daily life'. Required unless continuation is provided.
surahNoOptional surah number to restrict search to a specific chapter. If omitted, searches all surahs.
intentNoOptional 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.
editionsNoEdition filter control: - 'auto' (default): Auto-detect query language, filter to matching editions - None: No edition filter, searches all translation editions in all languages - 'en-sahih-international' or ['en-sahih-international', ...]: Filter to specific editions - 'en' or ['en']: Filter to all editions in that language When omitted on the initial call, defaults to 'auto'.
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
queryYesThe search query that was executed
resultsYesRanked translation search results
warningsNoWarnings about unresolved edition selectors
paginationYesCompact current-page continuation metadata
total_foundYesTotal results represented by this paginated response set
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.5/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive, closed-world behavior, yet the description still adds real value beyond them: a prerequisite grounding/auth step, continuation-token semantics, and a full failure contract naming distinct error codes ([invalid_request], [search_backend_failure], [search_enrichment_failure]). The one gap is that it does not characterize result volume, pagination limits, or ranking stability, which matters for a ranked search tool.

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

Conciseness3/5

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

The operative search guidance and the sibling routing are front-loaded and tight, but roughly half the text is a two-branch grounding prerequisite that restates itself ('load and read that skill, then pass its acknowledgment ... reuse the acknowledgment once you have read the skill'). The failure contract is a dense run-on list appended without structure. It is complete but noticeably padded for a tool whose annotations already declare it a safe read.

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 6-parameter semantic search tool with an output schema (so return values need no prose) and full annotation coverage, the description closes every gap an agent needs: prerequisite ordering, alternative routing, edition-filter semantics, and error taxonomy. Nothing required to invoke it correctly is missing.

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 baseline is 3, but the description adds genuine semantics beyond the schema: it frames `editions` as the raison d'être of the tool and contrasts it with search_quran's language-agnostic mode, and it explains the grounding_nonce handoff from the skill path versus fetch_grounding_rules. It does not add much on `surah` or `query` beyond what the schema already documents.

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?

States a specific verb and resource ('Semantic search over Quran translation text') plus the return shape ('ranked translation passages ... with edition metadata'). It explicitly distinguishes itself from two named siblings, fetch_translation and search_quran, so an agent can select it without opening any schema.

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?

Gives an explicit positive condition ('Use this tool only when you need to filter by specific translation edition(s)'), names the alternative for reference lookup ('For exact verse translation lookup by reference ... use fetch_translation'), and gives a default recommendation ('Prefer search_quran with translations=auto for most use cases'). When-to-use, when-not-to-use, and alternatives are all present.

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.