Skip to main content
Glama

quran.ai

List Available Editions

list_editions
Read-onlyIdempotent

List all available editions of a specific type (quran, tafsir, or translation). Use when you need to discover editions, resolve an unfamiliar name, compare their focuses, or check current availability. Known editions from the provided tafsir guide or prior results can be used directly without this call. Returns edition IDs, names, authors, language codes, description fields, and average entry token counts. Use descriptions to match editions to the user's question — each mufassir has distinct strengths (legal, linguistic, hadith-critical, rhetorical, structural, practical). Use token counts to plan context-efficient multi-source retrieval. Accepts a single type or a list of types to fetch multiple in one call (e.g., edition_type=["tafsir", "translation"]). Use the lang parameter to filter translation editions by language. Ignored for quran and tafsir types — all tafsir editions are always returned because Arabic tafsir is valuable regardless of the user's language. Failure contract: [invalid_request] for malformed or mutually incompatible inputs, and [service_unavailable] when the required runtime resource is 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": {
      "edition_type": "<edition_type>"
    },
    "name": "list_editions"
  }
}

Input Schema

NameRequiredDescriptionDefault
langNoOptional 2-letter language code to filter editions (e.g., 'en', 'ur'). Only respected for edition_type='translation'. Ignored for 'quran' and 'tafsir' types; the complete tafsir corpus is always returned because the diversity of Arabic tafsir offers insights that may not be present in the limited set directly available in the user's language. LLMs are multilingual.
edition_typeYesType of editions to list. Must be one of: 'quran' (Quran text editions), 'tafsir' (Quranic commentary editions), 'translation' (Quran translation editions). Accepts a single type or a list of types (e.g., ["tafsir", "translation"]).

Output Schema

NameRequiredDescriptionDefault
countYesNumber of editions returned
editionsYesList of available editions, sorted by edition_id within each type
lang_filterYesThe language filter applied to translation editions, if any
edition_typesYesThe edition type(s) that were queried (always a list)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already cover the read-only, idempotent, non-destructive profile, and the description still adds real value: the returned fields, the rationale for ignoring lang on tafsir, and a failure contract naming `[invalid_request]` and `[service_unavailable]`. That is behavioral context the annotations cannot supply.

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 purpose, then usage, returns, parameters, and failure modes in a sensible order. It is somewhat long and duplicates the schema's lang explanation almost verbatim, which costs a point, but no sentence is filler.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Covers everything an agent needs for a two-parameter discovery tool: when to call it, what comes back, how to interpret token counts and descriptions, multi-type batching, language filtering behavior, and error outcomes. An output schema exists, so the return description is a bonus rather than a necessity.

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 coverage is 100%, so both parameters are already fully documented in the schema, including the lang-ignored-for-tafsir rule and the single-or-list form. The description restates those rules and adds the example edition_type=["tafsir","translation"] but no genuinely new semantics, so the baseline of 3 applies.

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?

States a specific verb and resource with its full scope: 'List all available editions of a specific type (quran, tafsir, or translation).' It also makes the boundary with the fetch_* siblings visible by noting known editions 'can be used directly without this call,' so an agent can tell discovery apart from retrieval.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives explicit when-to-use triggers (discover editions, resolve an unfamiliar name, compare focuses, check availability) and an explicit when-not ('known editions ... can be used directly without this call'). It also describes downstream use of the results (match descriptions to the user's question, use token counts for context planning), which is unusually actionable guidance.

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.