Skip to main content
Glama

islamqa-org-mcp

Geben Sie Claude, Codex und jedem anderen MCP-Client Zugriff auf ~98.000 belegte Fatwas.

Ein MCP-Server für IslamQA.org, das Antworten von 47 unabhängigen Darul-Ifta-Institutionen aus den vier sunnitischen Madhahib bündelt.

CI Python 3.11+ License: MIT MCP

Website · Installation · ChatGPT · Tools · So funktioniert es · Etikette


Warum

Stellen Sie einem Sprachmodell eine Fiqh-Frage, und es antwortet aus einem Brei von Trainingsdaten – ohne Quelle, ohne Madhhab und ohne Möglichkeit der Überprüfung. Das ist die falsche Form für diese Art von Frage.

Dieser Server ändert den Standard. Ihr Assistent durchsucht ein echtes Archiv wissenschaftlicher Antworten und zitiert eine davon mit Mufti, Madhhab, Institution und einer URL, die Sie öffnen können. Wenn sich die Schulen unterscheiden, sehen Sie, dass sie sich unterscheiden, statt eine Position als die islamische Regelung präsentiert zu bekommen.

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

Installation

Kein Klonen, keine manuelle Einrichtung. Wählen Sie den Runner, den Sie bereits haben.

Mit uv (empfohlen – es ist das, was den Server tatsächlich ausführt):

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

Mit npx, wenn Node das ist, wozu Sie greifen:

npx -y islamqa-mcp

Das npm-Paket ist ein dünner Wrapper – es übergibt an uv, das den Python-Server in einer isolierten Cache-Umgebung abruft und ausführt. Sie benötigen trotzdem uv; der Wrapper sagt Ihnen, wie, falls es fehlt.

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

Fügen Sie zu claude_desktop_config.json hinzu – auf 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

Fügen Sie zu ~/.codex/config.toml hinzu:

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

Starten Sie den Client neu. Die erste Suche erstellt einen lokalen Index (etwa eine Minute, ~22 Anfragen); alles danach ist sofort.

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

Zeigen Sie den Client dann mit uv --directory /absolute/path/to/islamqa-org-mcp run islamqa-mcp darauf.

ChatGPT

ChatGPT unterscheidet sich von den obigen Clients: Es kann keinen lokalen Prozess starten, also benötigt es den Server gehostet unter einer öffentlichen HTTPS-URL. Daraus folgen zwei Dinge.

1. Führen Sie ihn über HTTP statt stdio aus.

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

Der Endpunkt, den ChatGPT möchte, ist dann https://your-host/mcp.

2. Es stellt in diesem Modus search und fetch bereit. ChatGPT lehnt jeden Connector ab, der keine Tools mit genau diesen Namen hat, es sei denn, Sie haben den Entwicklermodus aktiviert, und Deep Research ruft nur diese beiden auf. Wenn der Server also über HTTP läuft, fügt er sie als Adapter über search_fatwas / get_fatwa hinzu, in OpenAIs erforderlicher Form – search gibt {id, title, url} pro Ergebnis zurück, fetch gibt {id, title, text, url, metadata} zurück. Jedes Ergebnis trägt eine echte islamqa.org-URL, sodass ChatGPT ordentliche Zitate rendert.

Sie sind absichtlich nicht für stdio registriert: Claude und Codex erhalten das reichhaltigere search_fatwas, und ein schwächerer Alias würde sie nur einladen, das schlechtere zu verwenden.

Ausprobieren ohne Bereitstellung

Führen Sie es lokal aus und richten Sie einen Tunnel darauf – dafür ist der Tunnel-Schalter im Connector-Dialog von ChatGPT da:

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

Dann in ChatGPT: Einstellungen → Apps → Erweitert → Entwicklermodus, einen Connector hinzufügen, der auf https://<your-tunnel>/mcp zeigt, Authentifizierung Keine.

Ordnungsgemäßes Hosten

Ein Dockerfile ist enthalten und funktioniert auf Render, Railway, Fly.io oder Cloud Run:

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

Es erstellt den URL-Index zur Image-Build-Zeit, was wichtig ist: Der Index kostet ~22 Anfragen an islamqa.org, und ihn ins Image zu backen bedeutet, dass dies einmal pro Release geschieht statt bei jedem Kaltstart jeder Replik. Ohne das würde eine autoskalierende Gratis-Stufe den ganzen Tag die Sitemap neu crawlen. Es macht auch die erste Benutzersuche sofort.

Bevor Sie es öffentlich freigeben: Ein Connector ohne Authentifizierung ist für jeden offen, der die URL findet, und jede Anfrage, die sie stellen, ist eine Anfrage an islamqa.org unter dem Namen Ihres Servers. Stellen Sie es hinter OAuth oder einen Auth-Proxy, wenn es nicht nur für Sie ist, und behalten Sie das Ratenlimit bei.

Die Fähigkeit

Ein MCP-Server gibt dem Modell Werkzeuge. Er sagt ihm nicht, wie es sie gut einsetzt – und bei Fiqh zählt wie mehr als was.

skills/islamqa-fatwa ist eine Claude-Fähigkeit, die zusammen mit dem Server ausgeliefert wird. Sie bewirkt, dass der Assistent:

  • Fragt, welchem Madhhab Sie folgen, bevor er antwortet – oder alle vier Positionen nebeneinander präsentiert, wenn Sie keinem folgen

  • Nie eine Regelung erlässt, die er nicht abgerufen hat. Kein erfundener Hadith, kein halb erinnertes „die hanafitische Ansicht ist…", keine fabrizierten arabischen Zitate. Wenn das Archiv nichts hat, sagt er das, statt die Lücke zu füllen

  • Die tatsächlichen Kategorien der Tradition verwendet, statt alles auf halal/haram zu reduzieren – einschließlich des hanafitischen Siebenfach-Schemas, sodass makrūh taḥrīmī nicht stillschweigend zu „missbilligt" herabgestuft oder zu „haram" hochgestuft wird

  • Sagt, wenn die Abdeckung dünn ist. Das Archiv ist stark hanafitisch; wenn es keine malikitische Antwort gibt, berichtet es das, statt eine abzuleiten

  • Weiterverweist bei Scheidung, Erbschaft, Sorgerecht und anderen Angelegenheiten, die eine Person statt eines Suchindex benötigen

Installieren Sie es global:

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

Es aktiviert sich von selbst, wenn sich eine Frage als Regelungsfrage herausstellt.

Tools

Tool

Was es tut

search_fatwas

Volltextsuche im Archiv. Filtern nach madhhab oder source.

get_fatwa

Eine Antwort vollständig: Frage, Antwort, arabische Zitate, ausstellende Institution.

list_sources

Alle 47 Darul-Ifta-Websites mit Antwortzahlen pro Website.

browse_fatwas

Neueste Antworten, optional gefiltert.

index_status

Indexgröße, Cache-Größe, letzter Neuaufbau.

rebuild_index

Index aus der Sitemap aktualisieren. Selten nötig.

Über HTTP werden search und fetch für die ChatGPT-Kompatibilität hinzugefügt – siehe ChatGPT.

Jede Antwort wird mit ihrer Quellenangabe und einem Hinweis zurückgegeben, der das Modell daran erinnert, die URL zu zitieren und die Regelung als Position eines einzelnen Mufti zu behandeln, nicht als universelle.

Befehlszeile

Dieselben Operationen ohne MCP-Client:

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

So funktioniert es

IslamQA.org läuft mit WordPress und deaktivierter REST-API, es gibt also keinen JSON-Endpunkt. Was es veröffentlicht, ist eine vollständige Sitemap und serverseitig gerenderte Seiten – dieselben öffentlichen Seiten, die jeder Leser oder Suchmaschinen-Crawler sieht.

Der Server arbeitet in zwei Schichten:

Der Index. Ein Durchlauf über die Sitemap (~22 Anfragen) erfasst jede Antwort-URL zusammen mit ihrer ID, Madhhab, Quelle und einem aus dem Slug abgeleiteten Titel. Das sind ~98.000 Antworten für ein paar Megabyte und etwa eine Minute, und es bedeutet, dass die Suche von da an lokal und sofort ist.

Der Cache. Das Lesen einer Antwort ruft diese eine Seite ab und parst sie, dann speichert er sie. Die Suche läuft auf einem SQLite-FTS5-Index über beide Schichten, sodass eine Antwort sofort per Titel auffindbar ist und per Volltext, sobald jemand sie gelesen hat – das Archiv wird mit zunehmender Nutzung durchsuchbarer.

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

Da Antworten über viele Jahre von 47 verschiedenen Websites importiert wurden, kommen Seiten in drei Vorlagenformen vor, und alle drei werden behandelt: die modernen .ai-question / .ai-answer-content-Wrapper; nackte Absätze mit expliziten Question: / Answer:-Beschriftungen; und nackte Absätze ohne Beschriftungen. Verirrte Q:-Präfixe und nachgestellter „Original Source Link"-Text werden entfernt, und arabische Endnoten, die klassische Texte zitieren, werden in ein separates citations-Feld aufgeteilt, sodass eine Antwort sauber liest, ohne die Belege dahinter zu verlieren.

Hat islamqa.org eine API?

Keine öffentliche JSON-API. Die Website läuft mit WordPress, aber die REST-API ist seitenweit abgeschaltet. Getestet August 2026:

Endpunkt

Ergebnis

/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

Das Suchfeld auf der Website wird clientseitig von ElasticPress gerendert, daher sind seine Ergebnisse auch nicht im HTML – weshalb dieser Server seinen eigenen Index erstellt, statt die Website-Suche zu proxien.

Was maschinenlesbar und offen ist:

Endpunkt

Format

Hinweise

/sitemap_index.xml

XML

22 untergeordnete Sitemaps

/sitemap-posts.xml?page=N

XML

5.000 Antwort-URLs pro Seite, mit lastmod

/feed/

RSS 2.0

Neueste Antworten seitenweit

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

RSS 2.0

Neueste pro Institution

Antwortseiten

HTML + JSON-LD

NewsArticle-Schema trägt Veröffentlichungs-/Änderungsdaten

/robots.txt

—

Leer ausgeliefert: nichts gesperrt

Dieser Server verwendet die Sitemap und die Antwortseiten. Die RSS-Feeds sind eine leichtgewichtige Option, wenn Sie nur neue Antworten wollen und keine Suche benötigen – sie brauchen keinen Index und kein Scraping:

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

Antwort-URLs sind strukturiert, sodass Sie jede Antwort direkt adressieren können:

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

Falls islamqa.org jemals seine REST-API aktiviert, sollte dieser Server darauf umsteigen – eröffnen Sie ein Issue, wenn Sie bemerken, dass sie zurückkommt.

Konfiguration

Alle optional, als Umgebungsvariablen gesetzt:

Variable

Standard

Zweck

ISLAMQA_DATA_DIR

~/.cache/islamqa-mcp

Wo Index und Cache leben

ISLAMQA_REQUEST_DELAY

1.0

Sekunden zwischen Anfragen

ISLAMQA_CACHE_TTL_DAYS

90

Wie lange eine gecachte Antwort frisch bleibt

ISLAMQA_INDEX_TTL_DAYS

30

Wann der Index neu aufgebaut wird

ISLAMQA_USER_AGENT

identifiziert dieses Tool

Wird mit jeder Anfrage gesendet

Etikette (adab)

Dies liest einen kostenlosen Dienst, der von Spenden betrieben wird, daher ist es darauf ausgelegt, ein guter Gast zu sein:

  • Eine Anfrage pro Sekunde, global serialisiert — gleichzeitige Tool-Aufrufe können nicht zu einem Burst ausufern.

  • Cachet aggressiv. Fatwas sind nach der Veröffentlichung praktisch unveränderlich, daher wird eine Seite einmal abgerufen und 90 Tage lang wiederverwendet.

  • Holt nur, was angefragt wird. Der Massendurchlauf liest die Sitemap, nicht 100.000 Antwortseiten. Hier gibt es keinen Crawler.

  • Identifiziert sich mit einem echten User-Agent, der auf dieses Repository verweist.

  • Auf einen Host beschränkt. Jede URL wird vor dem Öffnen eines Sockets gegen eine Allowlist geprüft, sodass kein Argument eines Modells dies in einen offenen Proxy verwandeln kann.

  • Schreibt alles zu. Die ausstellende Institution, der Mufti, sofern genannt, und ein Link zur eigenen Kopie des darul ifta begleiten jede Antwort.

Wenn Sie islamqa.org betreiben und hier etwas geändert haben möchten — das Rate-Limit, den User-Agent oder die Existenz des Tools —, öffnen Sie bitte ein Issue, und es wird bearbeitet.

Zur Verwendung. Dies sind Antworten qualifizierter Muftis, aber eine Fatwa wird einer bestimmten Person in einem bestimmten Kontext gegeben. Ein Suchergebnis ist kein Urteil über Ihre Situation, und ein Sprachmodell, das eines übermittelt, ist kein Gelehrter. Bei allem, was Konsequenzen hat, fragen Sie direkt eine qualifizierte Person.

Entwicklung

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

Die Parser-Tests laufen gegen gekürzte Kopien echter Seiten. Wenn islamqa.org seine Vorlage ändert, schlagen sie laut fehl, was beabsichtigt ist: Eine stille Parse-Regression würde dem Modell leise leere Antworten zuführen.

Lizenz

MIT — siehe LICENSE.

Die Lizenz deckt nur diese Software ab. Die Fatwas gehören den Gelehrten und Institutionen, die sie ausgestellt haben. Dieses Tool liest öffentliche Seiten und verlinkt zurück; es verteilt das Archiv nicht weiter.

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
    -