Skip to main content
Glama

Get Translation By Book

get_translation_by_book
Read-onlyIdempotent

Fetch translation text for a single Quran ayah or a full surah from a selected translation book; omit the ayah number to retrieve the whole surah.

Instructions

Fetch translation text for one ayah (or a whole surah when ayah_number is omitted) from a specific translation book.

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": {
      "book_id": "<book_id>",
      "surah_id": "<surah_id>"
    },
    "name": "get_translation_by_book"
  }
}

Input Schema

NameRequiredDescriptionDefault
book_idYes
surah_idYes
ayah_numberNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.3.0

TDQS

A3.6/5.0
Behavior4/5

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

The annotations state readOnly, idempotent, non-destructive and openWorld, so safety is already covered. The description adds real behavior beyond that: the parameter-driven branch between a single-ayah read and a whole-surah read. It does not mention error behavior for an invalid book_id or the missing translation case, which keeps it below a 5.

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?

One front-loaded sentence with a parenthetical that carries the key conditional. There is no waste and no hedging, and the scope statement sits before the omission rule.

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?

The tool is a simple idempotent read with no output schema and full annotation coverage of its safety profile, so the description is largely sufficient. The gap is that two of the three parameters remain completely unexplained in both the description and schema.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/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 the parameter burden, but it only explains ayah_number's optionality and effect. It never states that book_id identifies the translation book, what surah_id means (1–114), or the valid ayah range (1–286), leaving two of three parameters undocumented everywhere.

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?

The description gives a specific verb ('Fetch') and resource ('translation text') and clarifies the scope precisely: a single ayah, or a whole surah when ayah_number is omitted. However, it does not distinguish itself from the sibling tools get_translation or get_ayah_book_content, so an agent cannot tell from the text alone which 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?

It includes one useful usage rule — omit ayah_number to retrieve the entire surah — which is genuine when-to-use guidance. It stops short of saying when to prefer this over get_translation or get_ayah_book_content, so the choice between siblings is left to inference.

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