Skip to main content
Glama

Get a file

get_file
Read-only

Links to download a surah's files: "text", the Arabic (optionally with a translation and the Tafsir al-Muyassar) as a .txt; "audio", its recording as an MP3 (leave out the surah for all of a reciter's); "timing", where each ayah and word of a recording starts and ends, as JSON; "font", the mushaf's fonts for the surah's pages (QCF v4, one a page) with the glyphs each ayah is written in; "data", for developers, the whole data sets (the Uthmani text, a translation or the tafsir in one file, the mushaf layout, word by word), with their sources.

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": {
      "kind": "<kind>"
    },
    "name": "get_file"
  }
}

Input Schema

NameRequiredDescriptionDefault
kindYes
surahNoSurah number, 1-114; needed for all but audio
tafsirNoFor text: the Tafsir al-Muyassar under each ayah
reciterNoFor audio and timing: reciter id; defaults to the site's own
translationNoFor text: a translation id to put under each ayah, e.g. "hilali"; for data: the translation to give whole

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changed
    • changedInput schema / properties / kind / enum
      Previous value: -[
      -  "text",
      -  "audio"
      -]New value: +[
      +  "text",
      +  "audio",
      +  "timing",
      +  "font",
      +  "data"
      +]
    • changedInput schema / properties / reciter / description
      Previous value: -"For audio: reciter id; defaults to the site's own"New value: +"For audio and timing: reciter id; defaults to the site's own"
    • changedInput schema / properties / surah / description
      Previous value: -"Surah number, 1-114; needed for text"New value: +"Surah number, 1-114; needed for all but audio"
    • changedInput schema / properties / translation / description
      Previous value: -"For text: a translation id to put under each ayah, e.g. \"hilali\""New value: +"For text: a translation id to put under each ayah, e.g. \"hilali\"; for data: the translation to give whole"
  2. Added

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false, and openWorldHint=false, so safety is covered. The description contributes the key behavioral fact beyond annotations: this returns download links rather than the content itself, and it discloses that omitting the surah for 'audio' yields all of a reciter's recordings. It does not say whether links expire or how the links are packaged in the response.

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?

Front-loaded with the core statement, then a compact semicolon-delimited enumeration that maps one-to-one onto the five enum values, so no sentence is wasted. The single long sentence is dense and would read faster as a short list, but every clause carries distinguishing information.

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?

For a five-parameter read-only link generator with no output schema, the description covers all kinds, the optional modifiers, and the surah-omission behavior, which is most of what an agent needs. What remains thin is the shape of the return value (a single URL vs. a set of URLs, especially for 'font' and 'data').

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

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 80%, so the baseline is 3, but the description earns more by explaining each enum value's payload and the interaction of optional modifiers ('Arabic optionally with a translation and the Tafsir al-Muyassar'). The parenthetical '(leave out the surah for all of a reciter's)' meaningfully clarifies the boundary condition on an optional parameter beyond the schema's 'needed for all but audio'.

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 first clause states a specific verb and resource ('Links to download a surah's files') and then enumerates the five files kinds, so the agent knows exactly what it gets back. It does not differentiate from siblings like get_recitation, get_tafsir, or word_by_word, which overlap conceptually with the 'audio', 'tafsir' option, and 'data' kinds.

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?

Usage is implied per-kind ('data', for developers, is the whole data sets; 'font' is per-page QCF files), which tells the agent which kind to pick once it has decided to call this tool. There is no explicit statement of when to prefer this tool over get_recitation, get_tafsir, or word_by_word, even though those siblings cover overlapping content.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.