Skip to main content
Glama

Get Mushaf Ayah

get_mushaf_ayah
Read-onlyIdempotent

Retrieve a single ayah’s text from a specified mushaf by providing surah and ayah numbers, optionally with a mushaf ID to choose the edition.

Instructions

Get a single ayah text from a mushaf by mushaf id, surah id, and ayah number.

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_id": "<surah_id>",
      "ayah_number": "<ayah_number>"
    },
    "name": "get_mushaf_ayah"
  }
}

Input Schema

NameRequiredDescriptionDefault
surah_idYes
mushaf_idNo
ayah_numberYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.3.0

TDQS

B3.3/5.0
Behavior2/5

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

Annotations already declare readOnly, idempotent, non-destructive and open-world, so the safety profile is fully covered elsewhere. The description adds only that the return is 'text' from a mushaf, with no mention of what happens with an out-of-range surah/ayah combination or that mushaf_id falls back to a default.

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?

A single front-loaded sentence that identifies the verb, resource, and keying identifiers with zero filler. Nothing in it is redundant or misplaced.

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

Completeness3/5

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

For a three-parameter read with no output schema and no parameter descriptions, the definition is minimally sufficient: it says what is fetched and by which keys. It falls short on the defaulted mushaf_id and on any sense of the returned structure (e.g. whether translations or tafsir accompany the text).

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 0%, so the description carries the burden, and it does map each of the three parameters to a role (mushaf id, surah id, ayah number). However it adds nothing beyond the parameter names — no explanation of what a 'mushaf' edition is, no note that mushaf_id defaults to 1, and no indication of the valid ranges the schema enforces.

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?

Specific verb and resource: 'Get a single ayah text from a mushaf' keyed by mushaf/surah/ayah identifiers. The word 'single' implicitly contrasts with whole-surah siblings like get_mushaf_surah, though no sibling is named explicitly.

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 by 'single ayah' — an agent can infer this is the per-verse lookup versus a surah-level fetch, but the description never states when to choose it over get_ayah_content or get_mushaf_surah, nor any prerequisites.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.