Skip to main content
Glama

Get Ayah Book Content

get_ayah_book_content
Read-onlyIdempotent

Fetch tafsir or e3rab content for a specific Quran ayah; defaults to Taysir al-Tafsir and returns available tafsir books when no content exists.

Instructions

Fetch book content (tafsir, e3rab, etc.) for one ayah from a Quranpedia book. Defaults to Taysir al-Tafsir when book_id is omitted. When the book has no content for the ayah, returns the tafsir books available for that surah.

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_ayah_book_content"
  }
}

Input Schema

NameRequiredDescriptionDefault
book_idNo
surah_idYes
ayah_numberYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.3.0

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive, open-world, so the safety profile is covered. The description adds genuinely new behavioral context: a default book is substituted when book_id is absent, and the return payload changes shape (a list of available tafsir books) when the requested book has no content for that ayah. That non-uniform response is exactly the kind of surprise an agent needs warned about.

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, front-loaded with the core action, then the default, then the edge case. No filler or restated field names beyond what is needed.

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?

With no output schema and zero schema descriptions, the description covers the essential call contract and the fallback return case. The remaining gap is book_id discovery (no pointer to a listing tool) and any hint about the format of returned content, which for an open-world fetch tool leaves a little ambiguity.

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 must carry parameter meaning. It explains book_id's optionality and default value well, and 'for one ayah' implies surah_id plus ayah_number, but it never explains where valid book_id values come from or how surah_id/ayah_number pair together. Partial compensation only.

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?

States a specific verb and resource: fetch book content (tafsir, e3rab, etc.) for a single ayah from a Quranpedia book. The parenthetical examples of content types make the resource concrete. It does not distinguish itself from siblings like get_ayah_content or get_surah_tafsirs, so an agent still has to infer which of these to pick.

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?

The description gives two useful conditional behaviors: book_id omitted defaults to Taysir al-Tafsir, and no-content cases return available tafsir books for the surah. However, it never says when to use this tool instead of get_ayah_content, get_surah_tafsirs, or compare_ayah_books, so selection guidance is only implied.

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