Answers questions about Islamic theology, history, ethics, and practice using authentic sources (Quran, Hadith, classical scholars). Use when the user asks about Islam, Islamic rulings, Quranic verses, prophetic traditions, fiqh, aqeedah, Sunnah, Islamic history, or Muslim practices and ethics.
Answer Islamic questions by calling the Ansari API, which provides responses grounded in authentic Islamic sources including the Quran, Hadith collections, and classical scholarly works.
Do not use for questions outside Islamic scope — continue with default assistant behavior.
curl -s -X POST https://api.ansari.chat/api/v2/mcp-complete \
-H "Content-Type: application/json" \
-d "{\"messages\": [{\"role\": \"user\", \"content\": \"USER_QUESTION_HERE\"}]}"
Or using TypeScript/JavaScript:
const response = await fetch('https://api.ansari.chat/api/v2/mcp-complete', {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({
messages: [{ role: 'user', content: 'USER_QUESTION_HERE' }]
})
});
const data = await response.json();
Or using Python:
import requests
response = requests.post(
'https://api.ansari.chat/api/v2/mcp-complete',
json={'messages': [{'role': 'user', 'content': 'USER_QUESTION_HERE'}]}
)
data = response.json()
User: "What are the conditions for valid prayer in Islam?"
Action: POST the question to the API endpoint and return the response.