Skip to main content
Glama

Compare Ayah Books

compare_ayah_books
Read-onlyIdempotent

Compare one ayah across two to five tafsir books side by side to see how each treats the same verse and identify unavailable books.

Instructions

Read one ayah from several books at once and return them side by side, for comparing how two to five tafsirs treat the same verse. Get candidate book ids from get_ayah_content with service tafsir. Books with no content for the ayah come back listed as unavailable.

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>",
      "book_ids": "<book_ids>"
    },
    "name": "compare_ayah_books"
  }
}

Input Schema

NameRequiredDescriptionDefault
ayahYes
surahYes
book_idsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.3.0

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, openWorld and non-destructive, so the safety profile is covered. The description adds genuine behavioral detail beyond that: books lacking content for the ayah are returned as 'unavailable' rather than being omitted or erroring, which tells the agent how to interpret partial results.

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: purpose first, then the prerequisite, then a result-behavior caveat. Nothing is redundant with the schema and every clause carries information an agent needs before calling.

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, the description does describe the return shape at a high level ('side by side', unavailable entries) and covers the 3 required params and the 2-5 constraint. It is nearly complete; only the per-book result structure and any ordering guarantee remain unspecified.

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 has to carry the load. It explains that surah/ayah identify a single verse looked up across books, and that book_ids holds 'two to five tafsirs', which justifies the minItems/maxItems bounds. It still doesn't clarify the ayah numbering convention or what 'service tafsir' means for id sourcing beyond a hint, so meaning is added but not complete.

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?

Opens with a specific verb and resource ('Read one ayah from several books at once and return them side by side') and scopes it to comparing two to five tafsirs. This clearly separates it from single-book siblings like get_ayah_book_content and get_ayah_content, which is named as the id source.

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 concrete usage context: the 2-5 tafsir comparison scenario and a prerequisite workflow step ('Get candidate book ids from get_ayah_content with service tafsir'). It stops short of an explicit when-not, e.g. telling the agent to use a single-book tool when only one tafsir is needed.

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