Skip to main content
Glama

Search the Quran by Arabic text

ayah_search
Read-only

DEFAULT tool for user-facing Quran search. Use this for ANY user-facing search — 'find ayahs that contain X', 'where does X appear in the Quran', 'search the Quran for X', or similar. This is the FINAL tool call for these requests; do not follow it with search_ayahs_text. Shows matches in an interactive widget the user can browse. Query is Arabic script only (diacritics and punctuation are ignored). A numeric-only query matches ayahs by that ordinal number (for example '255' returns ayahs ending in ':255'). ONLY skip this widget and use search_ayahs_text when EITHER (a) the user explicitly asks for plain text / raw results, OR (b) the results will be fed into another tool in the same turn without being shown. When in doubt, use this widget.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
queryYesSearch query in Arabic script. Diacritics and punctuation are stripped automatically; matching is diacritic-insensitive and ranked by BM25 relevance. Numeric fragments (e.g. '255') match ayahs with that ordinal number.
max_resultsNoMaximum number of ayah results to return (1-100, default 20).

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
errorNo
queryYes
resultsYes
errorMessageNo
total_resultsYes
strategy_summaryNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.7/5.0
Behavior5/5

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

Annotations already indicate a read-only, non-destructive operation, and the description adds meaningful behavioral context: it shows matches in an interactive widget, requires Arabic-script queries, and states this should be the FINAL tool call rather than chaining search_ayahs_text. No contradiction with annotations.

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

Conciseness5/5

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

The description is dense and front-loaded, opening with 'DEFAULT tool' before covering use cases, widget behavior, query constraints, and the alternative. Every sentence contributes essential decision-making information, making the length justified.

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?

Given the rich schema and annotations, the description covers all necessary context: purpose, widget display, query constraints, and the precise conditions for using the sibling tool. The output schema exists, so not explaining return values is fine.

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

Parameters3/5

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

The input schema already provides thorough descriptions of both parameters (query semantics, numeric matching, max_results bounds). The description's mention of Arabic script and numeric matching largely duplicates the schema, so it adds little beyond the schema's coverage.

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 clearly states this is the DEFAULT tool for user-facing Quran search, with explicit example queries and the scope ('find ayahs that contain X'). It distinguishes from sibling search_ayahs_text by specifying this is the widget-based final call.

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?

The description provides explicit guidance: use for ANY user-facing search, and ONLY skip when the user asks for plain text or results feed another tool. It names the alternative tool (search_ayahs_text) and gives a 'when in doubt' rule, making usage conditions unambiguous.

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.

Resources