Bayān library

Read-only search of the Quran, hadith and classical books of the four Sunni schools, with citations.

¿Debería usar esto?

Calidad y seguridad

A
Calidad de la descripción
96%
Integridad del esquema
89%
Calidad de los nombres
96%
Riesgo de envenenamiento
100%
Coincidencia de permisos
100%
Cumplimiento del protocolo
100%

Basado en el análisis automatizado de las definiciones de herramientas y el cumplimiento del protocolo.

Costo de contexto

~6,185Tokens (definiciones de herramientas)
~13.9 KBTamaño de respuesta típico
Impacto significativo en la atención (4.83% del contexto de 128k)

Este es el número aproximado de tokens que se consumen cada vez que las herramientas del servidor se cargan en el contexto de un modelo. Los recuentos más altos reducen la atención disponible para otras tareas.

Instalar

Instalación con un clic

Agrega esto a tu archivo `claude_desktop_config.json`:

{
  "mcpServers": {
    "library": {
      "url": "https://bayanlibrary.com/mcp"
    }
  }
}

Puntos de conexión remotos

https://bayanlibrary.com/mcpstreamable-http

Qué puede hacer

Inventario de herramientas

Herramientas (5)

🟢 Solo lectura🟡 Escritura🔴 Eliminación⚪ Desconocido
🟢search(query, kinds, works, language, limit, ...)

Find passages, hadith and works of Bayān's library. Each passage or hadith comes with its ref, its citation and its public url. works, authors, death_year_from/death_year_to, genres and schools restrict the search: filters combine with AND, values of one filter with OR; take their values from list_works.

Esquema de entrada

{
  "type": "object",
  "properties": {
    "query": {
      "description": "Words to find, in Arabic, English or French.",
      "maxLength": 200,
      "minLength": 2,
      "title": "Query",
      "type": "string"
    },
    "kinds": {
      "default": [
        "passage",
        "hadith",
        "work"
      ],
      "description": "What to find: passages, hadith, works.",
      "items": {
        "$ref": "#/$defs/OpenKind"
      },
      "maxItems": 3,
      "minItems": 1,
      "title": "Kinds",
      "type": "array"
    },
    "works": {
      "anyOf": [
        {
          "items": {
            "maxLength": 200,
            "minLength": 1,
            "type": "string"
          },
          "maxItems": 20,
          "type": "array"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "description": "Only these works: their slugs, from list_works or lookup_work. Any of them matches.",
      "title": "Works"
    },
    "language": {
      "default": "en",
      "description": "Language of titles and of the translation attached.",
      "enum": [
        "ar",
        "en",
        "fr"
      ],
      "title": "Language",
      "type": "string"
    },
    "limit": {
      "default": 8,
      "description": "Hits to return.",
      "maximum": 10,
      "minimum": 1,
      "title": "Limit",
      "type": "integer"
    },
    "authors": {
      "anyOf": [
        {
          "items": {
            "maxLength": 200,
            "minLength": 1,
            "type": "string"
          },
          "maxItems": 20,
          "type": "array"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "description": "Only works by these authors: each an author_key from list_works, the Arabic name exactly as listed (e.g. \"محمد بن إسماعيل البخاري\"), not the Latin name. Any of them matches.",
      "title": "Authors"
    },
    "death_year_from": {
      "anyOf": [
        {
          "maximum": 1500,
          "minimum": 1,
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "description": "Only works whose author died in this hijri year or later (e.g. 200). Works without a stated year are left out.",
      "title": "Death Year From"
    },
    "death_year_to": {
      "anyOf": [
        {
          "maximum": 1500,
          "minimum": 1,
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "description": "Only works whose author died in this hijri year or earlier (e.g. 300). Works without a stated year are left out.",
      "title": "Death Year To"
    },
    "genres": {
      "anyOf": [
        {
          "items": {
            "$ref": "#/$defs/Discipline"
          },
          "maxItems": 17,
          "type": "array"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "description": "Only works of these genres, the library's disciplines as list_works names them. Any of them matches.",
      "title": "Genres"
    },
    "schools": {
      "anyOf": [
        {
          "items": {
            "enum": [
              "hanafi",
              "maliki",
              "shafii",
              "hanbali"
            ],
            "type": "string"
          },
          "maxItems": 4,
          "type": "array"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "description": "Only works of these schools (madhhab). Any of them matches.",
      "title": "Schools"
    }
  },
  "required": [
    "query"
  ],
  "$defs": {
    "Discipline": {
      "description": "The disciplines of the library, in the order a reader meets them.",
      "enum": [
        "quran",
        "hadith",
        "commentaries",
        "fiqh_hanafi",
        "fiqh_maliki",
        "fiqh_shafii",
        "fiqh_hanbali",
        "usul_fiqh",
        "hadith_sciences",
        "narrators",
        "aqida",
        "quran_sciences",
        "arabic",
        "lexicons",
        "hadith_criticism",
        "atraf",
        "other"
      ],
      "title": "Discipline",
      "type": "string"
    },
    "OpenKind": {
      "description": "What a search finds in the open library.",
      "enum": [
        "passage",
        "hadith",
        "work"
      ],
      "title": "OpenKind",
      "type": "string"
    }
  },
  "title": "searchArguments"
}

Esquema de salida

{
  "type": "object",
  "properties": {
    "query": {
      "title": "Query",
      "type": "string"
    },
    "semantic": {
      "description": "Whether the semantic stage took part; false means words only.",
      "title": "Semantic",
      "type": "boolean"
    },
    "hits": {
      "items": {
        "$ref": "#/$defs/SearchHitView"
      },
      "title": "Hits",
      "type": "array"
    }
  },
  "required": [
    "query",
    "semantic",
    "hits"
  ],
  "$defs": {
    "CitationView": {
      "additionalProperties": false,
      "description": "Where a passage sits, as it is cited.",
      "properties": {
        "work": {
          "description": "The work's title in the requested language (Arabic for ar).",
          "title": "Work",
          "type": "string"
        },
        "work_ar": {
          "description": "The work's title as printed, in Arabic.",
          "title": "Work Ar",
          "type": "string"
        },
        "author": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Author"
        },
        "volume": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "Volume"
        },
        "page_start": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "Page Start"
        },
        "page_end": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "Page End"
        },
        "number": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "description": "The hadith or entry number the corpus states, when it states one.",
          "title": "Number"
        },
        "edition": {
          "description": "The edition the passage is read in.",
          "title": "Edition",
          "type": "string"
        },
        "reference": {
          "description": "The whole reference, worded in the requested language.",
          "title": "Reference",
          "type": "string"
        }
      },
      "required": [
        "work",
        "work_ar",
        "author",
        "volume",
        "page_start",
        "page_end",
        "number",
        "edition",
        "reference"
      ],
      "title": "CitationView",
      "type": "object"
    },
    "OpenKind": {
      "description": "What a search finds in the open library.",
      "enum": [
        "passage",
        "hadith",
        "work"
      ],
      "title": "OpenKind",
      "type": "string"
    },
    "SearchHitView": {
      "additionalProperties": false,
      "properties": {
        "kind": {
          "$ref": "#/$defs/OpenKind"
        },
        "ref": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "description": "The public passage ref, for a passage or a hadith.",
          "title": "Ref"
        },
        "title": {
          "title": "Title",
          "type": "string"
        },
        "snippet": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Snippet"
        },
        "citation": {
          "anyOf": [
            {
              "$ref": "#/$defs/CitationView"
            },
            {
              "type": "null"
            }
          ]
        },
        "url": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "description": "The public page of the passage or hadith.",
          "title": "Url"
        },
        "work": {
          "anyOf": [
            {
              "$ref": "#/$defs/WorkView"
            },
            {
              "type": "null"
            }
          ],
          "description": "The work, for a work hit."
        }
      },
      "required": [
        "kind",
        "ref",
        "title",
        "snippet",
        "citation",
        "url",
        "work"
      ],
      "title": "SearchHitView",
      "type": "object"
    },
    "WorkView": {
      "additionalProperties": false,
      "properties": {
        "slug": {
          "description": "The work's identifier: what `works` takes.",
          "title": "Slug",
          "type": "string"
        },
        "title": {
          "description": "The work's title in the requested language (Arabic for ar).",
          "title": "Title",
          "type": "string"
        },
        "title_ar": {
          "title": "Title Ar",
          "type": "string"
        },
        "author": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "description": "The author's name in the requested language.",
          "title": "Author"
        },
        "author_key": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "The author as the library keys him, in Arabic: what `authors` takes.",
          "title": "Author Key"
        },
        "era": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Era"
        },
        "death_year_hijri": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "The author's death year in hijri, when the library states it.",
          "title": "Death Year Hijri"
        },
        "kind": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "The discipline the library shelves the work under: what `genres` takes.",
          "title": "Kind"
        },
        "school": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "The school (madhhab) the work belongs to, when it belongs to one: what `schools` takes.",
          "title": "School"
        }
      },
      "required": [
        "slug",
        "title",
        "title_ar",
        "author",
        "era"
      ],
      "title": "WorkView",
      "type": "object"
    }
  },
  "additionalProperties": false,
  "title": "SearchView"
}
🟢get_passage(ref, context, language)

Read a passage by its ref: the Arabic text, its stored translation when there is one, its citation, the edition's attribution and neighbouring passages.

Esquema de entrada

{
  "type": "object",
  "properties": {
    "ref": {
      "description": "A passage ref from search.",
      "maxLength": 22,
      "minLength": 22,
      "title": "Ref",
      "type": "string"
    },
    "context": {
      "default": 0,
      "description": "Neighbouring passages of the same edition to add on each side.",
      "maximum": 3,
      "minimum": 0,
      "title": "Context",
      "type": "integer"
    },
    "language": {
      "default": "en",
      "description": "Language of titles and of the translation attached.",
      "enum": [
        "ar",
        "en",
        "fr"
      ],
      "title": "Language",
      "type": "string"
    }
  },
  "required": [
    "ref"
  ],
  "title": "get_passageArguments"
}

Esquema de salida

{
  "type": "object",
  "properties": {
    "ref": {
      "title": "Ref",
      "type": "string"
    },
    "kind": {
      "enum": [
        "passage",
        "hadith"
      ],
      "title": "Kind",
      "type": "string"
    },
    "text": {
      "description": "The Arabic text as the edition prints it.",
      "title": "Text",
      "type": "string"
    },
    "translation": {
      "anyOf": [
        {
          "$ref": "#/$defs/TranslationView"
        },
        {
          "type": "null"
        }
      ]
    },
    "citation": {
      "$ref": "#/$defs/CitationView"
    },
    "work": {
      "$ref": "#/$defs/WorkView"
    },
    "attribution": {
      "$ref": "#/$defs/AttributionView"
    },
    "url": {
      "title": "Url",
      "type": "string"
    },
    "before": {
      "items": {
        "$ref": "#/$defs/NeighbourView"
      },
      "title": "Before",
      "type": "array"
    },
    "after": {
      "items": {
        "$ref": "#/$defs/NeighbourView"
      },
      "title": "After",
      "type": "array"
    }
  },
  "required": [
    "ref",
    "kind",
    "text",
    "translation",
    "citation",
    "work",
    "attribution",
    "url",
    "before",
    "after"
  ],
  "$defs": {
    "AttributionView": {
      "additionalProperties": false,
      "description": "The edition a passage is read in, as the reader credits it (D-029, D-034).",
      "properties": {
        "edition": {
          "title": "Edition",
          "type": "string"
        },
        "details": {
          "$ref": "#/$defs/EditionAttributionSchema",
          "description": "What the library records of the printed edition and of its digital source (``digital_source``)."
        },
        "source_url": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "description": "The full edition online, for a public-domain edition only.",
          "title": "Source Url"
        }
      },
      "required": [
        "edition",
        "details",
        "source_url"
      ],
      "title": "AttributionView",
      "type": "object"
    },
    "CitationView": {
      "additionalProperties": false,
      "description": "Where a passage sits, as it is cited.",
      "properties": {
        "work": {
          "description": "The work's title in the requested language (Arabic for ar).",
          "title": "Work",
          "type": "string"
        },
        "work_ar": {
          "description": "The work's title as printed, in Arabic.",
          "title": "Work Ar",
          "type": "string"
        },
        "author": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Author"
        },
        "volume": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "Volume"
        },
        "page_start": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "Page Start"
        },
        "page_end": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "Page End"
        },
        "number": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "description": "The hadith or entry number the corpus states, when it states one.",
          "title": "Number"
        },
        "edition": {
          "description": "The edition the passage is read in.",
          "title": "Edition",
          "type": "string"
        },
        "reference": {
          "description": "The whole reference, worded in the requested language.",
          "title": "Reference",
          "type": "string"
        }
      },
      "required": [
        "work",
        "work_ar",
        "author",
        "volume",
        "page_start",
        "page_end",
        "number",
        "edition",
        "reference"
      ],
      "title": "CitationView",
      "type": "object"
    },
    "EditionAttributionSchema": {
      "description": "D-034: what the source metadata establishes about the printed\nedition (clients render the localized label from these fields).",
      "properties": {
        "edition_basis": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Edition Basis"
        },
        "pagination_basis": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Pagination Basis"
        },
        "numbering_scheme": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Numbering Scheme"
        },
        "digital_source": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Digital Source"
        },
        "editor": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Editor"
        },
        "publisher": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Publisher"
        },
        "place": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Place"
        },
        "year_h": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Year H"
        },
        "year_g": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Year G"
        },
        "printing": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Printing"
        }
      },
      "title": "EditionAttributionSchema",
      "type": "object"
    },
    "NeighbourView": {
      "additionalProperties": false,
      "properties": {
        "ref": {
          "title": "Ref",
          "type": "string"
        },
        "text": {
          "title": "Text",
          "type": "string"
        },
        "citation": {
          "$ref": "#/$defs/CitationView"
        }
      },
      "required": [
        "ref",
        "text",
        "citation"
      ],
      "title": "NeighbourView",
      "type": "object"
    },
    "TranslationView": {
      "additionalProperties": false,
      "properties": {
        "text": {
          "title": "Text",
          "type": "string"
        },
        "language": {
          "enum": [
            "ar",
            "en",
            "fr"
          ],
          "title": "Language",
          "type": "string"
        },
        "translator": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "description": "Who the published translation is by.",
          "title": "Translator"
        },
        "machine_translated": {
          "description": "The translation is the library's machine rendering, not a published one.",
          "title": "Machine Translated",
          "type": "boolean"
        },
        "translation_verified": {
          "description": "A machine rendering checked against its Arabic by a second reading; always true for a published one.",
          "title": "Translation Verified",
          "type": "boolean"
        }
      },
      "required": [
        "text",
        "language",
        "translator",
        "machine_translated",
        "translation_verified"
      ],
      "title": "TranslationView",
      "type": "object"
    },
    "WorkView": {
      "additionalProperties": false,
      "properties": {
        "slug": {
          "description": "The work's identifier: what `works` takes.",
          "title": "Slug",
          "type": "string"
        },
        "title": {
          "description": "The work's title in the requested language (Arabic for ar).",
          "title": "Title",
          "type": "string"
        },
        "title_ar": {
          "title": "Title Ar",
          "type": "string"
        },
        "author": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "description": "The author's name in the requested language.",
          "title": "Author"
        },
        "author_key": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "The author as the library keys him, in Arabic: what `authors` takes.",
          "title": "Author Key"
        },
        "era": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Era"
        },
        "death_year_hijri": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "The author's death year in hijri, when the library states it.",
          "title": "Death Year Hijri"
        },
        "kind": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "The discipline the library shelves the work under: what `genres` takes.",
          "title": "Kind"
        },
        "school": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "The school (madhhab) the work belongs to, when it belongs to one: what `schools` takes.",
          "title": "School"
        }
      },
      "required": [
        "slug",
        "title",
        "title_ar",
        "author",
        "era"
      ],
      "title": "WorkView",
      "type": "object"
    }
  },
  "additionalProperties": false,
  "title": "PassageView"
}
🟢get_verse(sura, aya, end_aya, language)

Read one verse of the Quran or a run of verses: the Arabic text, the translation with its credit, and refs to the tafsir passages linked to them.

Esquema de entrada

{
  "type": "object",
  "properties": {
    "sura": {
      "maximum": 114,
      "minimum": 1,
      "title": "Sura",
      "type": "integer"
    },
    "aya": {
      "maximum": 286,
      "minimum": 1,
      "title": "Aya",
      "type": "integer"
    },
    "end_aya": {
      "anyOf": [
        {
          "maximum": 286,
          "minimum": 1,
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "description": "Last verse of a range of at most 10 verses.",
      "title": "End Aya"
    },
    "language": {
      "default": "en",
      "description": "Language of titles and of the translation attached.",
      "enum": [
        "ar",
        "en",
        "fr"
      ],
      "title": "Language",
      "type": "string"
    }
  },
  "required": [
    "sura",
    "aya"
  ],
  "title": "get_verseArguments"
}

Esquema de salida

{
  "type": "object",
  "properties": {
    "sura": {
      "title": "Sura",
      "type": "integer"
    },
    "aya": {
      "title": "Aya",
      "type": "integer"
    },
    "end_aya": {
      "title": "End Aya",
      "type": "integer"
    },
    "verses": {
      "items": {
        "$ref": "#/$defs/OpenVerseView"
      },
      "title": "Verses",
      "type": "array"
    },
    "translation_credit": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Who the translation is by, as the Quran space credits it.",
      "title": "Translation Credit"
    },
    "text_source": {
      "description": "The source of the Arabic text.",
      "title": "Text Source",
      "type": "string"
    },
    "tafsirs": {
      "items": {
        "$ref": "#/$defs/TafsirRefView"
      },
      "title": "Tafsirs",
      "type": "array"
    },
    "url": {
      "title": "Url",
      "type": "string"
    }
  },
  "required": [
    "sura",
    "aya",
    "end_aya",
    "verses",
    "translation_credit",
    "text_source",
    "tafsirs",
    "url"
  ],
  "$defs": {
    "CitationView": {
      "additionalProperties": false,
      "description": "Where a passage sits, as it is cited.",
      "properties": {
        "work": {
          "description": "The work's title in the requested language (Arabic for ar).",
          "title": "Work",
          "type": "string"
        },
        "work_ar": {
          "description": "The work's title as printed, in Arabic.",
          "title": "Work Ar",
          "type": "string"
        },
        "author": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Author"
        },
        "volume": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "Volume"
        },
        "page_start": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "Page Start"
        },
        "page_end": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "Page End"
        },
        "number": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "description": "The hadith or entry number the corpus states, when it states one.",
          "title": "Number"
        },
        "edition": {
          "description": "The edition the passage is read in.",
          "title": "Edition",
          "type": "string"
        },
        "reference": {
          "description": "The whole reference, worded in the requested language.",
          "title": "Reference",
          "type": "string"
        }
      },
      "required": [
        "work",
        "work_ar",
        "author",
        "volume",
        "page_start",
        "page_end",
        "number",
        "edition",
        "reference"
      ],
      "title": "CitationView",
      "type": "object"
    },
    "OpenVerseView": {
      "additionalProperties": false,
      "properties": {
        "sura": {
          "title": "Sura",
          "type": "integer"
        },
        "aya": {
          "title": "Aya",
          "type": "integer"
        },
        "text": {
          "title": "Text",
          "type": "string"
        },
        "translation": {
          "anyOf": [
            {
              "$ref": "#/$defs/VerseTranslationView"
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "required": [
        "sura",
        "aya",
        "text",
        "translation"
      ],
      "title": "OpenVerseView",
      "type": "object"
    },
    "TafsirRefView": {
      "additionalProperties": false,
      "properties": {
        "ref": {
          "title": "Ref",
          "type": "string"
        },
        "url": {
          "title": "Url",
          "type": "string"
        },
        "citation": {
          "$ref": "#/$defs/CitationView"
        },
        "first_aya": {
          "title": "First Aya",
          "type": "integer"
        },
        "last_aya": {
          "title": "Last Aya",
          "type": "integer"
        }
      },
      "required": [
        "ref",
        "url",
        "citation",
        "first_aya",
        "last_aya"
      ],
      "title": "TafsirRefView",
      "type": "object"
    },
    "VerseTranslationView": {
      "additionalProperties": false,
      "properties": {
        "text": {
          "title": "Text",
          "type": "string"
        },
        "translator": {
          "title": "Translator",
          "type": "string"
        }
      },
      "required": [
        "text",
        "translator"
      ],
      "title": "VerseTranslationView",
      "type": "object"
    }
  },
  "additionalProperties": false,
  "title": "VersesView"
}
🟢lookup_work(query, language)

Find works of the library by title, author or slug; a slug restricts a search to its work.

Esquema de entrada

{
  "type": "object",
  "properties": {
    "query": {
      "description": "A title, an author or a slug, in Arabic or Latin letters.",
      "maxLength": 200,
      "minLength": 1,
      "title": "Query",
      "type": "string"
    },
    "language": {
      "default": "en",
      "description": "Language of titles and of the translation attached.",
      "enum": [
        "ar",
        "en",
        "fr"
      ],
      "title": "Language",
      "type": "string"
    }
  },
  "required": [
    "query"
  ],
  "title": "lookup_workArguments"
}

Esquema de salida

{
  "type": "object",
  "properties": {
    "query": {
      "title": "Query",
      "type": "string"
    },
    "works": {
      "items": {
        "$ref": "#/$defs/WorkView"
      },
      "title": "Works",
      "type": "array"
    }
  },
  "required": [
    "query",
    "works"
  ],
  "$defs": {
    "WorkView": {
      "additionalProperties": false,
      "properties": {
        "slug": {
          "description": "The work's identifier: what `works` takes.",
          "title": "Slug",
          "type": "string"
        },
        "title": {
          "description": "The work's title in the requested language (Arabic for ar).",
          "title": "Title",
          "type": "string"
        },
        "title_ar": {
          "title": "Title Ar",
          "type": "string"
        },
        "author": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "description": "The author's name in the requested language.",
          "title": "Author"
        },
        "author_key": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "The author as the library keys him, in Arabic: what `authors` takes.",
          "title": "Author Key"
        },
        "era": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Era"
        },
        "death_year_hijri": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "The author's death year in hijri, when the library states it.",
          "title": "Death Year Hijri"
        },
        "kind": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "The discipline the library shelves the work under: what `genres` takes.",
          "title": "Kind"
        },
        "school": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "The school (madhhab) the work belongs to, when it belongs to one: what `schools` takes.",
          "title": "School"
        }
      },
      "required": [
        "slug",
        "title",
        "title_ar",
        "author",
        "era"
      ],
      "title": "WorkView",
      "type": "object"
    }
  },
  "additionalProperties": false,
  "title": "WorksView"
}
🟢list_works(language, works, authors, death_year_from, death_year_to, ...)

List the works of the library with their slug, author_key, author's death year (hijri), genre and school, and the authors, genres and schools they cover: the values search's filters take. The same filters narrow the list.

Esquema de entrada

{
  "type": "object",
  "properties": {
    "language": {
      "default": "en",
      "description": "Language of titles and of the translation attached.",
      "enum": [
        "ar",
        "en",
        "fr"
      ],
      "title": "Language",
      "type": "string"
    },
    "works": {
      "anyOf": [
        {
          "items": {
            "maxLength": 200,
            "minLength": 1,
            "type": "string"
          },
          "maxItems": 20,
          "type": "array"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "description": "Only these works: their slugs, from list_works or lookup_work. Any of them matches.",
      "title": "Works"
    },
    "authors": {
      "anyOf": [
        {
          "items": {
            "maxLength": 200,
            "minLength": 1,
            "type": "string"
          },
          "maxItems": 20,
          "type": "array"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "description": "Only works by these authors: each an author_key from list_works, the Arabic name exactly as listed (e.g. \"محمد بن إسماعيل البخاري\"), not the Latin name. Any of them matches.",
      "title": "Authors"
    },
    "death_year_from": {
      "anyOf": [
        {
          "maximum": 1500,
          "minimum": 1,
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "description": "Only works whose author died in this hijri year or later (e.g. 200). Works without a stated year are left out.",
      "title": "Death Year From"
    },
    "death_year_to": {
      "anyOf": [
        {
          "maximum": 1500,
          "minimum": 1,
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "description": "Only works whose author died in this hijri year or earlier (e.g. 300). Works without a stated year are left out.",
      "title": "Death Year To"
    },
    "genres": {
      "anyOf": [
        {
          "items": {
            "$ref": "#/$defs/Discipline"
          },
          "maxItems": 17,
          "type": "array"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "description": "Only works of these genres, the library's disciplines as list_works names them. Any of them matches.",
      "title": "Genres"
    },
    "schools": {
      "anyOf": [
        {
          "items": {
            "enum": [
              "hanafi",
              "maliki",
              "shafii",
              "hanbali"
            ],
            "type": "string"
          },
          "maxItems": 4,
          "type": "array"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "description": "Only works of these schools (madhhab). Any of them matches.",
      "title": "Schools"
    }
  },
  "$defs": {
    "Discipline": {
      "description": "The disciplines of the library, in the order a reader meets them.",
      "enum": [
        "quran",
        "hadith",
        "commentaries",
        "fiqh_hanafi",
        "fiqh_maliki",
        "fiqh_shafii",
        "fiqh_hanbali",
        "usul_fiqh",
        "hadith_sciences",
        "narrators",
        "aqida",
        "quran_sciences",
        "arabic",
        "lexicons",
        "hadith_criticism",
        "atraf",
        "other"
      ],
      "title": "Discipline",
      "type": "string"
    }
  },
  "title": "list_worksArguments"
}

Esquema de salida

{
  "type": "object",
  "properties": {
    "works": {
      "description": "Every work matching the filters, in the library's order.",
      "items": {
        "$ref": "#/$defs/WorkView"
      },
      "title": "Works",
      "type": "array"
    },
    "authors": {
      "description": "The authors of those works.",
      "items": {
        "$ref": "#/$defs/AuthorView"
      },
      "title": "Authors",
      "type": "array"
    },
    "genres": {
      "description": "The genres of those works.",
      "items": {
        "$ref": "#/$defs/FacetView"
      },
      "title": "Genres",
      "type": "array"
    },
    "schools": {
      "description": "The schools of those works.",
      "items": {
        "$ref": "#/$defs/FacetView"
      },
      "title": "Schools",
      "type": "array"
    }
  },
  "required": [
    "works",
    "authors",
    "genres",
    "schools"
  ],
  "$defs": {
    "AuthorView": {
      "additionalProperties": false,
      "properties": {
        "key": {
          "description": "What `authors` takes.",
          "title": "Key",
          "type": "string"
        },
        "name": {
          "description": "The author's name in the requested language.",
          "title": "Name",
          "type": "string"
        },
        "death_year_hijri": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "Death Year Hijri"
        },
        "works": {
          "description": "Works of his the library holds.",
          "title": "Works",
          "type": "integer"
        }
      },
      "required": [
        "key",
        "name",
        "death_year_hijri",
        "works"
      ],
      "title": "AuthorView",
      "type": "object"
    },
    "FacetView": {
      "additionalProperties": false,
      "description": "A genre or a school, with the works the library holds under it.",
      "properties": {
        "name": {
          "description": "What `genres` or `schools` takes.",
          "title": "Name",
          "type": "string"
        },
        "works": {
          "title": "Works",
          "type": "integer"
        }
      },
      "required": [
        "name",
        "works"
      ],
      "title": "FacetView",
      "type": "object"
    },
    "WorkView": {
      "additionalProperties": false,
      "properties": {
        "slug": {
          "description": "The work's identifier: what `works` takes.",
          "title": "Slug",
          "type": "string"
        },
        "title": {
          "description": "The work's title in the requested language (Arabic for ar).",
          "title": "Title",
          "type": "string"
        },
        "title_ar": {
          "title": "Title Ar",
          "type": "string"
        },
        "author": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "description": "The author's name in the requested language.",
          "title": "Author"
        },
        "author_key": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "The author as the library keys him, in Arabic: what `authors` takes.",
          "title": "Author Key"
        },
        "era": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Era"
        },
        "death_year_hijri": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "The author's death year in hijri, when the library states it.",
          "title": "Death Year Hijri"
        },
        "kind": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "The discipline the library shelves the work under: what `genres` takes.",
          "title": "Kind"
        },
        "school": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "The school (madhhab) the work belongs to, when it belongs to one: what `schools` takes.",
          "title": "School"
        }
      },
      "required": [
        "slug",
        "title",
        "title_ar",
        "author",
        "era"
      ],
      "title": "WorkView",
      "type": "object"
    }
  },
  "additionalProperties": false,
  "title": "CatalogueView"
}

Comunidad

Califica este servidor

Evidencia

Observaciones recientes

verificadoversión no registrada5 herramientas