Skip to main content
Glama

Get Translation

get_translation
Read-onlyIdempotent

Fetch translations for a specific Quran ayah by surah and ayah number, either for one language or grouped across all available languages.

Instructions

Fetch translations of one ayah from the Quranpedia API, for one language or grouped by all available languages.

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

Input Schema

NameRequiredDescriptionDefault
languageNo
surah_idYes
ayah_numberYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.3.0

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, destructiveHint=false and openWorldHint=true, so the safety profile is covered. The description adds the upstream source (Quranpedia API) and the grouped-versus-single-language behavior, but says nothing about failure modes for out-of-range surah_id or ayah_number, rate limits, or response shape.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

A single front-loaded sentence with no wasted wording; the scope constraint and the two modes are packed efficiently. It could be tightened slightly by making the language-versus behavior more explicit rather than relying on the 'grouped by all' phrasing.

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 read-only, three-parameter tool with no output schema, the definition covers the essentials: what is fetched, at what granularity, and the two language modes. It leaves gaps on return shape and on the valid ranges already expressed only in the schema, which matters because no output schema exists to carry them.

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 the burden; it does partially by explaining that language selects one translation and that omitting it yields all available languages, and by tying the call to a single ayah (surah_id plus ayah_number). It adds no format, valid-range or default detail beyond that, so half the parameters remain semantically thin.

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 (Fetch) and resource (translations of one ayah) with an explicit scope constraint ('one ayah'), which separates it from the book- and surah-level siblings. It does not name any alternative tool by name, so it stops short of a 5.

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 phrase 'for one language or grouped by all available languages' implices the two modes of use, but there is no explicit when-to-use guidance, no prerequisites, and no named alternative such as get_translation_available_languages for discovering valid languages. Usage must be inferred from the phrasing.

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