Search Translations
search_translationPREREQUISITE: 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
| Name | Required | Description | Default |
|---|---|---|---|
| query | No | Semantic 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. | |
| surah | No | Optional surah number to restrict search to a specific chapter. If omitted, searches all surahs. | |
| intent | No | Optional 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. | |
| editions | No | Edition 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'. | |
| 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 |
|---|---|---|---|
| query | Yes | The search query that was executed | |
| results | Yes | Ranked translation search results | |
| warnings | No | Warnings about unresolved edition selectors | |
| pagination | Yes | Compact current-page continuation metadata | |
| total_found | Yes | Total results represented by this paginated response set | |
| 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. |