Skip to main content
Glama

Get Ayah

get_ayah
Read-onlyIdempotent

Get a single ayah (verse) of the Quran by reference — either surah:ayah (e.g. "2:255" for Ayat al-Kursi) or a global ayah number (1-6236). Returns the verse text in the chosen edition (translation like en.asad / en.sahih, or Arabic via quran-uthmani).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
editionNoEdition identifier. Default 'en.asad'. Use 'quran-uthmani' for Arabic.
referenceYesVerse reference: "surah:ayah" like "2:255", or a global ayah number like "262".

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. Changed1 schema field changed
    • addedInput schema / examples
      Added value: +[
      +  {
      +    "reference": "2:255"
      +  },
      +  {
      +    "edition": "en.sahih",
      +    "reference": "262"
      +  }
      +]
  2. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, and destructiveHint, so the safety profile is clear. The description adds valuable context about return format (verse text in chosen edition) and mentions the Arabic option, which is beyond the schema.

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?

Two sentences, front-loaded with purpose, includes a functional example. No filler or redundant text.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a simple read operation with 2 parameters and no output schema, the description is adequate. It mentions return of verse text, but lacks details on error handling (e.g., invalid reference). However, the openWorldHint suggests resilience.

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%, but the description adds meaning by explaining the two reference types ('surah:ayah' vs. global number) and giving concrete examples. The edition parameter is clarified with default and Arabic option.

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 the tool retrieves a single ayah by reference, specifying two reference formats (surah:ayah or global number) and the ability to choose an edition. This distinguishes it from siblings like get_surah (whole surah) and search_quran (search).

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

Usage Guidelines4/5

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

The description explains how to use the tool (reference format, editions) and provides examples in the input schema. While it doesn't explicitly state when not to use it, the sibling tool list provides context for alternatives, and the openWorldHint annotation suggests it won't error on novel inputs.

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.