Can you trust an AI with a Shariah question? Here is how to tell.
What is a Shariah agent? AI that answers Islamic questions, and the line it must not cross
A Shariah agent is an AI system that retrieves, explains, or acts on Islamic rulings and finance rules. The useful ones show their sources, name the school, date the ruling, admit uncertainty and send you to a scholar. None of them is a mufti, and Egypt's Dar al-Ifta has ruled that software may not be relied on to issue a fatwa. This site explains the difference and keeps score.
Type "is my pension halal" into any AI assistant and you will get a confident paragraph in under three seconds. The paragraph may be right. It may be a plausible blend of three schools and a Reddit thread. Nothing in its tone will tell you which. This site exists to give you a way to tell, and to hold the people building these tools, ourselves included, to a public standard.
- Agents can retrieve and apply; they cannot rule. Dar al-Ifta in Egypt has said relying on AI to obtain a fatwa is impermissible. In the Ja'fari school rulings come from a qualified living jurist. Both traditions leave no slot for software as a mufti.
- Grounded beats fluent. An answer that quotes a named, dated, linked source from a named scholar or institution can be checked. An answer generated from memory cannot, however good it sounds.
- The spectrum matters. Search, chatbot, grounded assistant, tool-using agent, autonomous agent: each step adds usefulness and risk. Know which one you are talking to.
- Five questions sort good tools from dangerous ones. Source, school, date, uncertainty, hand-off. The test is below and on its own page.
- We publish a standard and apply it to ourselves. The Shariah Agent Standard is seven commitments any builder can adopt. HalalScreener, which runs this site, is measured against it on that page.
The spectrum: from search box to autonomous agent
Search. Finds pages. You read them. Fine, because you are doing the reasoning.
Chatbot. Writes an answer from what the model absorbed in training. Fast, fluent, and unverifiable. Academic testing of general-purpose models on fiqh questions has found a systematic tilt toward permissiveness and a reliance on secondary sources rather than authoritative fatwa collections. The problem is not that the chatbot is always wrong; it is that you cannot tell when it is.
Grounded assistant. Retrieves a passage from a defined library of scholarly sources, quotes it, names the school and the scholar, and declines when nothing relevant is found. This is the first level at which an AI answer becomes checkable, and it is the minimum this site considers acceptable for religious questions.
Tool-using agent. Takes a goal and executes: screen these fifty stocks against this published ruleset, compute the purification amount, watch for changes and alert me. Powerful and legitimate when the rules were written by scholars and every action is logged. Dangerous when it is allowed to improvise.
Autonomous agent. Acts on money or on religious decisions with no human in the loop. Not acceptable today under any tradition's governance rules, and not offered by any responsible builder we know of.
What the scholars have actually said
Sunni schools
Egypt's Dar al-Ifta, in fatwa 22255, holds that using AI technology is permissible in principle and that its ruling depends on the purpose it serves, but that it is impermissible to rely on AI applications to obtain a fatwa. A fatwa requires a qualified, accountable, trustworthy human scholar; current tools lack sound methodology, knowledge of authoritative sources, and the ability to assess their own conclusions; and rulings tied to custom change with time and place.
In January 2026 the same body ruled that relying independently on AI to interpret the Quran is forbidden, while noting this is not a rejection of technology. Egypt has at the same time explored AI-assisted systems to support human muftis, which shows the line is drawn at authority, not at tools.
Ja'fari (Shia) school
In the Ja'fari school a layperson follows the rulings of a qualified living jurist (a marja' al-taqlid) whose authority rests on recognised scholarship, justice and accountability, as set out in the opening chapter of Ayatollah Sistani's Islamic Laws. The structure is personal and living by design: a ruling is followed because of who issued it and that they can be asked again.
Software cannot meet those conditions, so an AI's answer on a fiqh question has the standing of a reference lookup: potentially useful for finding what a marja' has said, with no authority of its own. The same reasoning covers Islamic finance questions, where Iran's capital-market Shariah committee is likewise a body of named jurists.
Different institutions, different chains of authority, the same operational rule: an agent may retrieve, explain and apply; a human rules.
The five-question test
Ask these of any AI answer on a religious or Islamic finance question. One minute. Any "no" means do not act on the answer without a human.
- Does it show the source? A link or citation to a named scholar, institution or standard. Not "scholars say".
- Does it name the school? Hanafi, Shafi'i, Maliki, Hanbali, Ja'fari, or a named institution's methodology. Rulings differ; an answer that hides which one it is giving is hiding something.
- Does it date the ruling? Positions change. AAOIFI's 2008 sukuk resolution changed a market. A dateless answer may be decades stale.
- Does it say when it is unsure? A tool that never declines is a tool that guesses.
- Does it send you to a human? For anything with consequences, a good agent ends with "ask a qualified scholar of your school", and means it.
The long form, with examples of good and bad answers, is at how to check an AI Islamic answer.
Where agents are genuinely useful
- Finding what a scholar said. A grounded assistant over a library of fatwas is a better index than any search engine, provided it quotes rather than paraphrases.
- Applying published rules at scale. Screening thousands of stocks against ratio thresholds and business-activity exclusions written by scholars is exactly the repetitive, rule-bound work software does well. This is what HalalScreener does for equities, ETFs and crypto. It applies rules; it does not write them, and it does not certify.
- Calculations. Zakat on mixed assets, purification of dividends, prayer times. Arithmetic with inputs you can inspect.
- Monitoring. Watching for a company's debt ratio crossing a threshold, or a ruling being updated, and alerting you.
In each case the agent is doing the work a careful assistant would do, and the authority stays where it was.
How agents call tools, and why you should care
Agents act by calling tools: a fatwa database, a screening service, a calculator. In November 2024 Anthropic published the Model Context Protocol, an open standard that lets an AI system connect to tools through one interface and record each call. The engineering detail matters to you for one reason: a logged tool call can be audited. "The agent checked this stock against ruleset version 4.2 on 12 October and got this answer" is a sentence an auditor, a scholar or you can verify. "The AI said it was fine" is not. Our page on AI agents and halal investing walks through what a well-built agent does with your portfolio and what it refuses to do.
What this site is for
Three jobs.
- Explain. What these tools are, how they work, and what the two major traditions have said about them, in language anyone can follow.
- Set a standard. The Shariah Agent Standard: seven commitments for anyone building AI that touches Islamic law or finance. Open, attributable, and applied first to the tools of the team that wrote it.
- Keep score. As institutions publish positions and builders publish products, we record them here with dates and sources.
We are not scholars and this site is not a fatwa service. We build software that applies scholars' rules and we think the public deserves a plain account of where software's authority ends. If you want a note when something on this site changes, the form at the bottom is the way.
Questions people ask
What is a Shariah agent?
Can a Shariah agent give me a fatwa?
Are AI Islamic assistants reliable?
What is the difference between a chatbot and an agent?
Who runs this site?
Sources
Every figure and ruling on this page links to where it came from. Check them.
- Using AI applications to obtain fatwas (fatwa 22255), Dar al-Ifta al-Misriyyah
- Egypt's Dar al-Ifta rules AI-based Quran interpretation impermissible, MEA Tech Watch, 28 January 2026
- Islamic Laws, Chapter One: Following a Jurist (Taqlid), Office of Ayatollah Sistani
- Islamic chatbots in the age of large language models, arXiv (presented at the Muslims in ML workshop, NeurIPS 2025), 31 December 2025
- Digital authority and Islamic legal reasoning: a comparative study of AI-generated and human-issued fatawa, University of Malaya
- Chat GPMufti, Center for Strategic and International Studies
- Gartner identifies the top 10 strategic technology trends for 2025, Gartner, 21 October 2024
- Introducing the Model Context Protocol, Anthropic, 25 November 2024
All guides
Be first when this becomes real
A short note when something changes: a new ruling, a live issuance, a tool worth testing. No weekly filler.