Skip to main content
Glama

islamqa-org-mcp

Claude、Codex、その他あらゆるMCPクライアントに、出典付きの約98,000件のファトワーへのアクセスを提供します。

IslamQA.org 用の MCP サーバーです。スンニ派四大法学派にわたる47の独立したダルル・イフター機関の回答を集約しています。

CI Python 3.11+ License: MIT MCP

ウェブサイト · インストール · ChatGPT · ツール · 仕組み · エチケット


なぜ

言語モデルにフィクフの質問をすると、訓練データのぼんやりとした混ざり物から、出典もなく、法学派もなく、検証手段もないまま回答します。これはこの種の質問に対しては間違った形です。

このサーバーはそのデフォルトを変えます。あなたのアシスタントは、学者の回答の実際のアーカイブを検索し、ムフティー、法学派、機関、そして開けるURL付きで回答を引用します。学派によって見解が異なる場合、一つの見解があたかもイスラームの定めであるかのように提示されるのではなく、異なることがわかるようになっています。

You:  Can I wipe over ordinary cotton socks in wudu?

Claude: [searches IslamQA.org]

        The Hanafi position (Askimam.org, Mufti Ebrahim Desai) is that masah
        is only valid on socks with the characteristics of leather khuffayn —
        thick enough that water does not seep through, able to stand upright
        unaided, and durable over three to four miles of walking. Ordinary
        cotton socks do not qualify.
        https://islamqa.org/hanafi/askimam/127638/...

        Bin Bayyah (Maliki) notes the Hanbali school permits wiping over cloth
        socks, while the Maliki position restricts it to leather.
        https://islamqa.org/maliki/binbayyah/29891/...

Related MCP server: quran-mcp

インストール

クローンも手動セットアップも不要です。すでに持っているランナーを選んでください。

uv を使う場合(推奨 — 実際にサーバーを実行するのはこれです):

uvx --from git+https://github.com/RealYusufIsmail/islamqa-org-mcp islamqa-mcp

npx を使う場合、Node の方が手軽なら:

npx -y islamqa-mcp

npm パッケージは薄いラッパーです — uv に処理を委ね、uv が隔離されたキャッシュ環境でPythonサーバーを取得して実行します。それでも uv のインストールは必要です。ラッパーが不足している場合のインストール方法を教えてくれます。

curl -LsSf https://astral.sh/uv/install.sh | sh    # macOS / Linux
brew install uv                                    # Homebrew
powershell -c "irm https://astral.sh/uv/install.ps1 | iex"   # Windows

Claude Code

claude mcp add islamqa -- uvx --from git+https://github.com/RealYusufIsmail/islamqa-org-mcp islamqa-mcp

Claude Desktop

claude_desktop_config.json に追加します — macOS では ~/Library/Application Support/Claude/claude_desktop_config.json:

{
  "mcpServers": {
    "islamqa": {
      "command": "uvx",
      "args": [
        "--from",
        "git+https://github.com/RealYusufIsmail/islamqa-org-mcp",
        "islamqa-mcp"
      ]
    }
  }
}

Codex

~/.codex/config.toml に追加します:

[mcp_servers.islamqa]
command = "uvx"
args = ["--from", "git+https://github.com/RealYusufIsmail/islamqa-org-mcp", "islamqa-mcp"]

クライアントを再起動してください。最初の検索でローカルインデックスが構築されます(約1分、約22リクエスト)。それ以降は即座に動作します。

git clone https://github.com/RealYusufIsmail/islamqa-org-mcp.git
cd islamqa-org-mcp && uv sync

その後、クライアントに次のように指定します: uv --directory /absolute/path/to/islamqa-org-mcp run islamqa-mcp。

ChatGPT

ChatGPTは上記のクライアントとは異なります。ローカルプロセスを起動できないため、サーバーを公開HTTPS URLでホストする必要があります。そこから2つのことが導かれます。

1. stdio ではなく HTTP で実行します。

islamqa-mcp --transport streamable-http --host 0.0.0.0 --port 8000

ChatGPTが必要とするエンドポイントは https://your-host/mcp になります。

2. このモードでは search と fetch を公開します。 ChatGPTは、Developer Modeを有効にしていない限り、正確にその名前のツールを持たないコネクタを拒否します。また、Deep Researchは常にこの2つだけを呼び出します。そのため、HTTPで実行する場合、サーバーはこれらを search_fatwas / get_fatwa のアダプターとして、OpenAIが要求する形式で追加します — search は結果ごとに {id, title, url} を返し、fetch は {id, title, text, url, metadata} を返します。すべての結果に実際の islamqa.org のURLが含まれるため、ChatGPTは適切な引用を表示します。

これらは意図的に stdio では登録されていません。Claude と Codex はよりリッチな search_fatwas を利用でき、弱いエイリアスを追加すると、より劣った方を使うように誘導してしまうからです。

デプロイせずに試す

ローカルで実行し、トンネルを向けます — これがChatGPTのコネクタダイアログにあるTunnelトグルの目的です:

islamqa-mcp --transport streamable-http --port 8000
cloudflared tunnel --url http://localhost:8000     # or: ngrok http 8000

その後、ChatGPTで: Settings → Apps → Advanced → Developer mode に進み、https://<your-tunnel>/mcp を指すコネクタを追加し、認証は None にします。

適切にホストする

Dockerfile が同梱されており、Render、Railway、Fly.io、Cloud Runで動作します:

docker build -t islamqa-mcp .
docker run -p 8000:8000 islamqa-mcp

これはイメージのビルド時にURLインデックスを構築します。これが重要なのは、インデックスに約22リクエストの islamqa.org へのアクセスが必要であり、イメージに焼き込むことで、各レプリカのコールドスタートごとではなく、リリースごとに1回で済むからです。これがないと、オートスケーリングする無料枠が一日中サイトマップを再クロールすることになります。また、最初のユーザー検索も即座になります。

公開する前に: 認証のないコネクタは、URLを見つけた誰にでも開かれています。そして彼らが行うすべてのリクエストは、あなたのサーバーの名義で islamqa.org に対するリクエストになります。自分専用でないならOAuthまたは認証プロキシの背後に置き、レート制限は現在のままにしてください。

スキル

MCPサーバーはモデルにツールを与えます。しかし、それをうまく使う方法は教えません — そしてフィクフにおいては、何を使うかよりもどのように使うかの方が重要です。

skills/islamqa-fatwa は、サーバーと一緒に提供されるClaudeスキルです。これによりアシスタントは次のことを行います:

  • 回答前にどの法学派に従うかを尋ねる — または、従う学派がない場合は4つの立場を並べて提示する

  • 取得していない裁定を決して下さない。 捏造されたハディースも、うろ覚えの「ハナフィー派の見解は…」も、でっち上げのアラビア語引用もありません。アーカイブに何もなければ、穴を埋める代わりにその旨を伝えます

  • 伝統の実際のカテゴリーを使う — すべてをハラール/ハラームに平たくするのではなく、ハナフィー派の七段階の区分も含み、makrūh taḥrīmī が「好ましくない」に格下げされたり「ハラーム」に格上げされたりしないようにします

  • カバレッジが薄い場合にそれを伝える。 アーカイブはハナフィー派に偏っています。マーリキー派の回答がない場合は、推測するのではなくその旨を報告します

  • 離婚、相続、親権など、検索インデックスではなく人を必要とする事項については紹介する

グローバルにインストールします:

git clone https://github.com/RealYusufIsmail/islamqa-org-mcp.git /tmp/islamqa-mcp
cp -r /tmp/islamqa-mcp/skills/islamqa-fatwa ~/.claude/skills/

質問が裁定に関するものであると判明すると、自動的に有効になります。

ツール

ツール

機能

search_fatwas

アーカイブ全体の全文検索。madhhab または source でフィルタリング可能。

get_fatwa

1件の回答を全文で取得: 質問、回答、アラビア語引用、発行機関。

list_sources

47すべてのダルル・イフターサイトと、サイトごとの回答数。

browse_fatwas

最新の回答。オプションでフィルタリング可能。

index_status

インデックスサイズ、キャッシュサイズ、最終再構築日時。

rebuild_index

サイトマップからインデックスを更新。ほとんど必要ありません。

HTTPでは、ChatGPT互換性のために search と fetch が追加されます — ChatGPT を参照。

すべての回答には、出典情報と、モデルにURLを引用し、裁定を一人のムフティーの見解として扱い、普遍的なものとして扱わないよう促す注記が付いて返されます。

コマンドライン

MCPクライアントなしで同じ操作を行う場合:

uv run islamqa search "wiping over socks" --madhhab hanafi
uv run islamqa get https://islamqa.org/hanafi/askimam/127638/can-i-wipe-make-masah-over-the-new-socks/
uv run islamqa sources
uv run islamqa status

仕組み

IslamQA.org はREST APIが無効化されたWordPressで動作しているため、呼び出せるJSONエンドポイントはありません。公開されているのは完全なサイトマップとサーバーサイドレンダリングされたページ — 読者や検索エンジンのクローラーが見るのと同じ公開ページです。

サーバーは2つの層で動作します:

インデックス。 サイトマップを1回スキャン(約22リクエスト)して、すべての回答URLを、そのID、法学派、発行元、スラッグから導出されたタイトルとともに記録します。約98,000件の回答が数メガバイトと約1分で収まり、以降の検索はローカルかつ即時になります。

キャッシュ。 回答を読むとその1ページを取得して解析し、保存します。検索は両方の層に対するSQLite FTS5インデックス上で実行されるため、回答はタイトルで即座に見つかり、誰かが読んだ後は全文でも見つかります — 使えば使うほどアーカイブの検索可能性が高まります。

sitemap ──► index (~98k URLs + titles) ──┐
                                         ├──► FTS5 (BM25) ──► search_fatwas
answer page ──► parse ──► cache (full) ──┘                    get_fatwa

回答は長年にわたって47の異なるサイトからインポートされたため、ページには3つのテンプレート形状があり、すべて処理されます: 現代的な .ai-question / .ai-answer-content ラッパー。明示的な Question: / Answer: ラベルの付いた素の段落。そしてラベルのない素の段落。余分な Q: プレフィックスと末尾の「Original Source Link」テキストは削除され、古典テキストを引用するアラビア語の脚注は別の citations フィールドに分割されるため、回答はその背後にある証拠を失うことなくきれいに読めます。

islamqa.org にAPIはありますか?

公開JSON APIはありません。 サイトはWordPressを実行していますが、REST APIはサイト全体でオフになっています。2026年8月に調査済み:

エンドポイント

結果

/wp-json/

401 — {"code":"rest_disabled"}

/wp-json/wp/v2/posts

401 — rest_disabled

/wp-json/wp/v2/search

401 — rest_disabled

/wp-json/elasticpress/v1/search

401 — rest_disabled

/graphql, /api/

404

サイト内検索ボックスはElasticPressによってクライアントサイドでレンダリングされるため、その結果もHTMLには含まれていません — そのため、このサーバーはサイト検索をプロキシするのではなく、独自のインデックスを構築しています。

機械可読でオープンなもの:

エンドポイント

形式

備考

/sitemap_index.xml

XML

22の子サイトマップ

/sitemap-posts.xml?page=N

XML

ページあたり5,000件の回答URL、lastmod 付き

/feed/

RSS 2.0

サイト全体の最新回答

/category/{madhhab}/{source}/feed/

RSS 2.0

機関ごとの最新回答

回答ページ

HTML + JSON-LD

NewsArticle スキーマに公開/更新日が含まれる

/robots.txt

—

空で配信: 禁止事項なし

このサーバーはサイトマップと回答ページを使用します。RSSフィードは、新しい回答だけが必要で検索が不要な場合の軽量なオプションです — インデックスもスクレイピングも不要です:

curl -s https://islamqa.org/hanafi/askimam/feed/

回答URLは構造化されているため、任意の回答に直接アクセスできます:

https://islamqa.org/{madhhab}/{source}/{post_id}/{slug}/
                     hanafi   askimam  127638   can-i-wipe-make-masah-over-the-new-socks

islamqa.org がいつかREST APIを有効にした場合、このサーバーはそれに切り替えるべきです — 復活に気づいたらissueを開いてください。

設定

すべてオプションで、環境変数として設定します:

変数

デフォルト

目的

ISLAMQA_DATA_DIR

~/.cache/islamqa-mcp

インデックスとキャッシュの保存場所

ISLAMQA_REQUEST_DELAY

1.0

リクエスト間の秒数

ISLAMQA_CACHE_TTL_DAYS

90

キャッシュされた回答の鮮度保持期間

ISLAMQA_INDEX_TTL_DAYS

30

インデックスを再構築するタイミング

ISLAMQA_USER_AGENT

このツールを識別

すべてのリクエストに付与される

エチケット(アダブ)

これは寄付で運営されている無料サービスを読み取るものなので、良いゲストであるように設計されています:

  • 1秒あたり1リクエスト、グローバルに直列化 — 同時のツール呼び出しがバーストに広がることはありません。

  • 積極的にキャッシュします。 ファトワーは公開されると事実上不変なので、ページは一度取得され、90日間再利用されます。

  • 要求されたものだけを取得します。 一括パスはサイトマップを読み、10万の回答ページは読みません。ここにクローラーはありません。

  • 身元を明らかにします — このリポジトリを指す実際のUser-Agentを使用します。

  • 1つのホストに固定。 ソケットが開く前にすべてのURLが許可リストと照合されるため、モデルからの引数でこれがオープンプロキシになることはありません。

  • すべての帰属を明示します。 発行機関、名前が挙がっている場合はムフティー、そしてダール・アル=イフター自身のコピーへのリンクが、すべての回答に付随します。

islamqa.orgを管理されていて、ここで何かを変更したい場合 — レート制限、User-Agent、またはツールの存在自体 — は、issueを開いていただければ対応します。

使用について。 これらは資格のあるムフティーからの回答ですが、ファトワーは特定の文脈における特定の人物に対して与えられるものです。検索結果はあなたの状況に対する裁定ではなく、それを伝える言語モデルは学者ではありません。重要なことについては、資格のある人に直接尋ねてください。

開発

uv sync --extra dev
uv run pytest          # 81 tests, no network — runs against saved fixtures
uv run ruff check .
uv run mypy src/islamqa_mcp

パーサーテストは実際のページのトリミングされたコピーに対して実行されます。islamqa.orgがテンプレートを変更すると、テストは明示的に失敗します。これは意図的です。静かなパース回帰は、空の回答をモデルに静かに渡してしまうからです。

ライセンス

MIT — LICENSEを参照。

ライセンスはこのソフトウェアのみを対象とします。ファトワーはそれを発行した学者と機関に帰属します。このツールは公開ページを読み、リンクを返すだけであり、アーカイブを再配布するものではありません。

Available Tools

6 tools
browse_fatwasA
Read-only

List the most recent fatwas, optionally filtered to one madhhab or issuing source. For browsing; prefer search_fatwas to answer a specific question.

ParametersJSON Schema
NameRequiredDescriptionDefault
limitNoMaximum results.
offsetNoSkip this many results.
sourceNoIssuing site slug.
madhhabNoRestrict to one school.

Output Schema

ParametersJSON Schema
NameRequiredDescription

No output parameters

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, openWorldHint=true, and destructiveHint=false, so the safety profile is covered. The description adds that it returns the 'most recent' fatwas (ordering behavior) and mentions optional filters, which goes beyond annotations. It omits details like pagination, but that is standard and the bar is lower given the annotations.

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

Conciseness5/5

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

Two sentences, no filler. The first sentence delivers the core function, the second gives usage guidance. It is front-loaded and every sentence earns its place.

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?

The tool has an output schema, so the return format is covered. Annotations handle safety. The description covers the purpose, filtering, and usage distinction. For a read-only browse tool with optional filters, nothing essential is missing.

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% with each parameter (limit, offset, source, madhhab) already described. The description only reiterates the madhhab and source filters ('optionally filtered to one madhhab or issuing source') without adding new semantics, so it adds marginal value beyond the schema. Baseline 3 is appropriate.

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?

The description states a specific verb ('List') and resource ('most recent fatwas'), and explicitly differentiates from the sibling search_fatwas by noting that browsing is for exploration while search is for specific questions. This makes the tool's purpose unambiguous.

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?

It explicitly says 'For browsing; prefer search_fatwas to answer a specific question.' This gives clear when-to-use guidance and a direct alternative, which is exactly what the dimension asks for.

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

get_fatwaA
Read-only

Fetch one full fatwa from IslamQA.org by URL: the original question, the mufti's answer, the Arabic citations of classical texts, the issuing darul ifta and a link to their own copy. Cached locally after the first read.

ParametersJSON Schema
NameRequiredDescriptionDefault
urlYesAn islamqa.org answer URL, as returned by search_fatwas.
refreshNoBypass the local cache and re-fetch the page.

Output Schema

ParametersJSON Schema
NameRequiredDescription

No output parameters

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, openWorldHint=true, and destructiveHint=false. The description adds valuable behavioral context beyond annotations: it discloses local caching after first read and the existence of a refresh parameter to bypass cache. No contradiction with annotations.

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

Conciseness5/5

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

Two sentences with no fluff. The main purpose is front-loaded, and the caching/refresh detail is placed logically after. Every sentence earns its place.

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?

With annotations covering safety and an output schema present (stated in context), the description covers the essential usage details: what it fetches, the source URL, and caching behavior. An agent can call it correctly without additional information.

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%, with both url and refresh already well-described in the schema. The description adds the note 'as returned by search_fatwas' for url and mentions caching for refresh, but both are also implied in the schema. Baseline 3 is appropriate since the description adds minimal extra meaning.

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?

The description clearly states the tool fetches one full fatwa by URL and enumerates the specific content (question, answer, citations, issuing darul ifta, link). This is a specific verb+resource and distinguishes it from sibling tools like search_fatwas (search) and browse_fatwas (browse).

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

Usage Guidelines4/5

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

The description notes the URL comes from search_fatwas, which implies its usage context, and mentions caching behavior. However, it does not explicitly state when to prefer this over alternatives or provide when-not-to-use guidance. The context is clear but lacks explicit exclusions.

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

index_statusA
Read-only

Report how many fatwas are indexed, how many have been read into the local full-text cache, and when the index was last rebuilt.

ParametersJSON Schema
NameRequiredDescriptionDefault

No parameters

Output Schema

ParametersJSON Schema
NameRequiredDescription

No output parameters

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and destructiveHint=false, so the tool is clearly a safe read operation. The description adds valuable context by specifying exactly what metrics are reported (number indexed, number in cache, last rebuild time), which goes beyond the annotations. It does not contradict the annotations and provides helpful detail about the tool's output.

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

Conciseness5/5

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

The description is a single, concise sentence that immediately states the core function. It is front-loaded with the action ('Report') and lists the three key metrics in a clear, organized manner. There is no redundancy or filler, making it highly efficient and well-structured.

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?

Given the tool's simplicity (no parameters, no complex inputs) and the presence of an output schema, the description is complete. It explains what the tool reports without needing to describe return values (which are covered by the output schema). For a status-reporting tool with this straightforward scope, nothing essential is missing.

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

Parameters4/5

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

The tool has zero parameters, so the schema is trivially 100% described. The description does not need to explain parameters, and the baseline for zero-parameter tools is 4. The description focuses on the output, which is appropriate given there are no inputs to clarify.

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?

The description clearly states the tool's purpose: reporting on fatwa index status, including counts and last rebuild time. It uses the specific verb 'report' with a clear resource 'index status', and it distinguishes itself from siblings like search_fatwas, list_sources, get_fatwa, and rebuild_index by focusing on status metrics rather than data retrieval or modification.

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

Usage Guidelines3/5

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

The description implies usage for checking index health and statistics, but it does not explicitly state when to use this tool versus alternatives. For instance, it doesn't mention 'use this before searching to ensure the index is up-to-date' or 'use this to diagnose why search results may be incomplete.' The purpose makes usage obvious, but there is no explicit guidance or mention of exclusions.

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

list_sourcesA
Read-only

List every darul ifta indexed by IslamQA.org, grouped by madhhab, with how many answers each contributed. Use to discover valid 'source' values for search_fatwas, or to see how the schools are represented.

ParametersJSON Schema
NameRequiredDescriptionDefault

No parameters

Output Schema

ParametersJSON Schema
NameRequiredDescription

No output parameters

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already cover readOnlyHint and destructiveHint, so the description adds value by disclosing that the list is exhaustive ('every'), grouped by madhhab, and includes answer counts. These are behavioral traits beyond the safety annotations.

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

Conciseness5/5

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

Two sentences with zero waste: the first states the core function, the second gives actionable usage guidance. The most important information is front-loaded.

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?

An output schema exists, so return format details are unnecessary. The description covers purpose, scope, grouping, and ties to sibling usage, making it fully adequate for an agent to know when and why to call it.

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

Parameters4/5

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

The tool has zero parameters, and the schema coverage is 100%, so there is nothing to explain. The description correctly focuses on what the output provides (grouped list with counts), which still aids the agent in interpreting results.

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 (list) and resource (darul ifta indexed by IslamQA.org), with grouping and count detail. It also explicitly ties to searching for valid source values, distinguishing it from sibling tools like search_fatwas.

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

Usage Guidelines4/5

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

Gives clear, explicit use cases ('discover valid source values' and 'see how schools are represented') and implicitly positions it as a prerequisite to search_fatwas. It does not state when not to use it, but the purpose is sufficiently distinct from siblings.

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

rebuild_indexA

Rebuild the local URL index from islamqa.org's sitemap. Rarely needed — the index builds itself on first search and refreshes when stale. Takes about a minute and makes roughly 22 requests to the site.

ParametersJSON Schema
NameRequiredDescriptionDefault

No parameters

Output Schema

ParametersJSON Schema
NameRequiredDescription

No output parameters

TDQS

A4.4/5.0
Behavior4/5

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

Annotations (readOnlyHint: false, destructiveHint: false, openWorldHint: true) are already present, but the description adds concrete behavioral details: it takes ~1 minute and makes ~22 requests to an external site. This discloses side effects (network traffic, delay) beyond the annotations without contradicting them.

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

Conciseness5/5

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

Three efficient sentences: purpose, when-to-use, and cost. Every sentence adds value and the most important guidance (rarely needed) is front-loaded.

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?

For a zero-parameter, side-effectful maintenance tool, the description covers purpose, usage context, behavior, and cost. The presence of an output schema further reduces the need to explain return values. Nothing essential is missing.

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

Parameters4/5

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

The tool has zero parameters, so the schema already fully documents this aspect (coverage 100%). No parameter description is needed; the baseline of 4 applies since there's nothing to add.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states a specific verb ('Rebuild') and resource ('local URL index from islamqa.org's sitemap'), making the core function clear. It does not explicitly differentiate from siblings like index_status, but the uniqueness is implied given it's a one-off maintenance operation.

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?

Explicitly says 'Rarely needed' and explains the index 'builds itself on first search and refreshes when stale.' This gives clear guidance on when NOT to call it and contrasts with automatic behavior. Also adds cost information (time, requests) that discourages casual use.

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

search_fatwasA
Read-only

Search roughly 100,000 fatwas (Islamic legal answers) on IslamQA.org by keyword or question. Use this whenever a question concerns Islamic rulings, fiqh, worship or practice and you want sourced scholarly answers rather than your own knowledge. Returns ranked results with title, madhhab, issuing source and URL; call get_fatwa on a result to read the full answer.

ParametersJSON Schema
NameRequiredDescriptionDefault
limitNoMaximum results.
queryYesKeywords or a question, e.g. 'wiping over socks in wudu'.
sourceNoRestrict to one issuing site's slug, e.g. 'askimam'. See list_sources.
madhhabNoRestrict to one school of law.

Output Schema

ParametersJSON Schema
NameRequiredDescription

No output parameters

TDQS

A3.8/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and destructiveHint=false, covering the safety profile. The description adds useful behavioral details: it returns ranked results with title, madhhab, source and URL, and explicitly says the full text requires a separate get_fatwa call. However, it does not mention pagination, sorting behavior, or any rate limits, so transparency is only partially enhanced beyond annotations.

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

Conciseness5/5

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

The description is two well-structured sentences, with the core purpose front-loaded and the usage guidance following. Every sentence earns its place, providing purpose, scope, result format, and a directive to the next step without any fluff or repetition.

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

Completeness4/5

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

For a search tool with an existing output schema and clear annotations, the description provides sufficient context: when to use, what results contain, and how to proceed (call get_fatwa). It omits any explanation of limit semantics or result ordering, but the schema covers limits and the output schema defines the return structure, so the description is adequate.

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

Parameters3/5

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

Schema description coverage is 100%, so all four parameters are already documented in the schema. The description adds value by giving an example query ('wiping over socks in wudu') and by explicitly pointing to list_sources when using the source parameter. Yet it does not explain parameter relationships or default behaviors beyond what the schema already states.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states a specific action (search) on a specific resource (fatwas on IslamQA.org) and the scope (keyword or question). It also distinguishes itself from siblings like get_fatwa by noting that it returns summaries and that full answers require a follow-up call, though it doesn't explicitly contrast with browse_fatwas.

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

Usage Guidelines4/5

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

The description gives explicit guidance on when to use the tool ('whenever a question concerns Islamic rulings, fiqh, worship or practice and you want sourced scholarly answers rather than your own knowledge') and provides a clear trigger condition. It also hints at an alternative (using own knowledge) but does not explicitly mention when to use siblings like browse_fatwas, so a small gap remains.

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

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

  1. 6 tool updatesv0.1.0
    • First observedbrowse_fatwas
    • First observedget_fatwa
    • First observedindex_status
    • First observedlist_sources
    • First observedrebuild_index
    • First observedsearch_fatwas

TDQS

A4.4/5.0

Scored across 6 tools

Disambiguation5/5

Each tool serves a unique, clearly defined purpose: search for fatwas, browse recent ones, fetch a specific fatwa, list sources, check index status, and rebuild the index. There is no overlap or ambiguity between them.

Naming Consistency5/5

All six tools follow the verb_noun pattern in snake_case (search_fatwas, list_sources, get_fatwa, browse_fatwas, index_status, rebuild_index), with consistent verb choices that clearly indicate the action taken.

Tool Count5/5

Six tools is well within the ideal range for a domain-specific server. Each tool is necessary and none are redundant; the count is neither too sparse nor too heavy for the server's stated purpose of accessing IslamQA fatwas.

Completeness5/5

The tool surface covers the full workflow: searching, browsing, retrieving individual fatwas, understanding available sources, and maintaining the local index. There are no obvious missing operations for a read-only scholarly answer API.

Maintenance

ActivitySlowing
ResponsivenessNo issues

Related MCP Connectors

Related MCP Servers

  • A
    license
    Not graded
    quality
    C
    maintenance
    Enables fetching and searching canonical hadith texts (Arabic and English) with cross-references and citation-safe URLs for assistants, built on FastMCP.
    3
    GPL 3.0
  • A
    license
    Not graded
    quality
    D
    maintenance
    MCP server to search and retrieve passages from a corpus of 7,872 classical Islamic books via the Sahifah API, with full citations and mu'tabar filtering.
    14 npm
    MIT
  • F
    license
    A
    quality
    C
    maintenance
    Serves a scholar-approved Islamic corpus of Qur'an and hadith passages to any MCP client with server-side refusal enforcement. Enables natural-language questioning, retrieval, policy checking, and honest corpus coverage reporting while preventing fabricated answers.
    6
    -