Bayān library

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

使うべきか

品質と安全性

A
説明の品質
96%
スキーマの完全性
89%
命名の品質
96%
ポイズニングのリスク
100%
権限の一致
100%
プロトコルへの準拠
100%

ツール定義とプロトコルへの準拠に関する自動分析に基づいています。

コンテキストコスト

~6,185トークン数(ツール定義)
~13.9 KB一般的なレスポンスサイズ
注意への影響は大きい(128k コンテキストの 4.83%)

これは、サーバーのツールがモデルのコンテキストに読み込まれるたびに消費されるおおよそのトークン数です。数が多いほど、ほかのタスクに使える注意が減ります。

インストール

ワンクリックインストール

これを `claude_desktop_config.json` ファイルに追加してください:

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

リモートエンドポイント

https://bayanlibrary.com/mcpstreamable-http

できること

ツール一覧

ツール(5)

🟢 読み取り専用🟡 書き込み🔴 削除⚪ 不明
🟢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.

入力スキーマ

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

出力スキーマ

{
  "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.

入力スキーマ

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

出力スキーマ

{
  "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.

入力スキーマ

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

出力スキーマ

{
  "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.

入力スキーマ

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

出力スキーマ

{
  "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.

入力スキーマ

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

出力スキーマ

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

コミュニティ

このサーバーを評価する

エビデンス

最近の観測

検証済みバージョンは記録されていませんツール 5 件