Skip to main content
Glama

Get ayahs

get_ayah
Read-only

The Arabic of one ayah or a run of them (up to 50), with a translation. The Arabic is the Uthmani text with every mark and its ayah number; quote it exactly as given. Defaults to the King Fahd Complex English (Hilali & Muhsin Khan).

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "surah": "<surah>",
      "ayah": "<ayah>"
    },
    "name": "get_ayah"
  }
}

Input Schema

NameRequiredDescriptionDefault
toNoLast ayah, for a run; defaults to the first
ayahYesFirst ayah
surahYesSurah number, 1-114
translationNoTranslation id, e.g. "hilali", "sahih", "urdu_junagarhi"; "none" for the Arabic alone

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare this a safe, closed-world read, so the bar is lower. The description still adds real substance: the 50-ayah run limit, the Uthmani orthography with all diacritics, the inclusion of the ayah number in the output, and the instruction to quote the Arabic exactly as given rather than normalizing it — that last point is a genuine behavioral constraint not present in any structured field.

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?

Three short sentences with the payload description first, the fidelity warning second, and the default third. Every clause earns its place and nothing is repeated from the schema or annotations.

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?

With no output schema, the description carries the burden of explaining returns and does so: it states both components (Arabic plus translation), the orthographic form, the run limit, and that the ayah number is embedded in the Arabic. For a four-parameter read tool with full annotation coverage, nothing an agent needs to call it correctly is missing.

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%, so the schema already documents all four parameters, making 3 the baseline. The description adds marginal meaning by spelling out the default translation (King Fahd Complex English / Hilali & Muhsin Khan) and the run-length cap, but gives no syntax detail beyond the schema's own example ids.

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

Purpose4/5

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

The description names the resource ('one ayah or a run of them') and what is returned ('The Arabic ... with a translation'), which implicitly separates it from get_tafsir (commentary) and word_by_word (token-level). It never names a sibling outright, so the differentiation is inferable rather than explicit.

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

Usage Guidelines3/5

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

Usage is only implied: an agent can infer this is the tool for retrieving verse text, and the 'up to 50' cap hints at batching. There is no explicit when-to-use guidance (e.g., use get_tafsir for commentary, word_by_word for morphology) and no stated prerequisites or failure conditions.

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.