Skip to main content
Glama

Get Ayah Content

get_ayah_content
Read-onlyIdempotent

Fetch a specific ayah's content for one service, such as tafsir, translations, e3rab, or asbab. Check available options first with get_ayah_options for that surah and ayah.

Instructions

Fetch one service's content for one ayah: asbab, e3rab, fatwa, meanings, mutshabeh, nasekh, notes, qiraat, similar, tafsir, topics or translations. Call get_ayah_options first to see which of them exist for that ayah.

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>",
      "service": "<service>"
    },
    "name": "get_ayah_content"
  }
}

Input Schema

NameRequiredDescriptionDefault
ayahYes
surahYes
serviceYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.3.0

TDQS

A3.7/5.0
Behavior3/5

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

Annotations already declare readOnly, idempotent, non-destructive, openWorld, so the safety profile is covered. The description adds only the ordering dependency on get_ayah_options; it says nothing about response shape, which varies substantially across the twelve services, nor about behavior when a service is absent.

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, zero waste: the operation and its valid values come first, the prerequisite call second. Every clause carries information an agent needs before invoking.

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 tool with no output schema and content that differs radically per service (translations vs. tafsir vs. qiraat), the definition never indicates what the returned content looks like or how it is keyed. Given the six combined behavioral/annotation signals it is adequate, but a short note on return shape would close the gap.

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 should carry the burden. It lists the valid service values, but that duplicates the schema enum, and it never clarifies that surah/ayah are numeric indexes with per-surah ayah limits (schema caps ayah at 286 regardless of surah).

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?

Names a specific verb ("Fetch") and a precise resource (one service's content for one ayah), and enumerates the twelve service values so the agent knows the scope of the operation. It does not distinguish itself from near-siblings such as get_ayah_book_content or get_surah_tafsirs, which an agent could easily confuse with a service='tafsir' call.

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?

Gives an explicit prerequisite workflow: "Call get_ayah_options first to see which of them exist for that ayah," which prevents wasted calls for services that don't exist on a given ayah. It stops short of stating when-not to use this tool versus get_ayah_book_content or aliases like get_surah_tafsirs.

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