Skip to main content
Glama

Search the Quran by Arabic text (data only)

search_ayahs_text
Read-only

INTERNAL/preparatory tool — text-only, no widget rendered. NEVER use as the user-facing answer to a search query — use ayah_search for that (the default interactive widget). Use this ONLY when EITHER (a) the user explicitly asks for plain text / raw results / no widget, OR (b) you will chain the resolved ayah keys into another tool in the same turn (play_ayahs, ayah_tafsir, or ayah_translation) without showing the raw search results to the user. When in doubt, prefer ayah_search. Do not follow ayah_search with this tool — that is duplicated work. Query is Arabic script only; diacritics and punctuation are ignored. A numeric-only query matches ayahs by that ordinal number.

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).

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?

The annotations already declare readOnlyHint=true and destructiveHint=false, so the description doesn't need to re-explain safety. It adds meaningful behavioral context beyond annotations: the tool renders no widget, is internal/preparatory, ignores diacritics and punctuation, and treats numeric-only queries as ordinal matches. These are non-obvious behaviors that help the agent understand what this tool actually does at runtime.

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 front-loaded with the most critical information ('INTERNAL/preparatory tool — text-only, no widget rendered') and every sentence serves a purpose: usage restrictions, chaining context, anti-pattern warning, and query constraints. It is dense but not bloated, and the structure guides the agent through decision-making efficiently.

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 tool's simplicity (2 parameters, full schema coverage, no output schema, annotations present), the description covers all necessary context: when to use, when not to use, specific query behavior, and what to do with results (chain). It leaves no critical gaps for an agent to invoke the tool incorrectly, making it complete for its complexity.

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?

Schema description coverage is 100% because both query and max_results have descriptive text in the schema. The description's main body adds no new parameter semantics; it only echoes the Arabic-script and numeric-ordinal behavior already present in the query parameter description. Thus, the description adds no value beyond the schema, warranting the baseline score.

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 specifies the tool's purpose: 'search the Quran by Arabic text' and is explicitly tagged as 'INTERNAL/preparatory tool — text-only, no widget rendered.' It distinguishes itself from the sibling tool ayah_search by positioning itself as the data-only variant for raw results or chaining, making its purpose unambiguous from the start.

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 when-to-use guidance: ONLY when the user asks for plain text/no widget, or when chaining into other tools (play_ayahs, ayah_tafsir, ayah_translation) in the same turn. It also gives a clear when-not-to-use: never as the user-facing answer, and 'Do not follow ayah_search with this tool — that is duplicated work.' It names the preferred alternative ayah_search and even says 'When in doubt, prefer ayah_search.'

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