Skip to content

lookup_tafsirs

Look up available tafsir slugs and metadata as plain data (no UI widget).

Widget counterpart: list_tafsirs — use that when the user wants to browse tafsir collections visually.

Use This When

  • Preparatory step before calling ayah_tafsir — discover valid tafsir slugs for a language.
  • Answering factual questions about available tafsir collections without needing an interactive display.

Input

Optional:

  • languages (string[], optional): ISO 639-1 language code filters (for example ["en", "ar"]).

Example User Prompts

  • "Explain Ayat al-Kursi" (agent calls lookup_tafsirs to find English tafsir slugs, then ayah_tafsir)
  • "What tafsir sources do you have in Arabic?" (when text-only answer suffices)

Example Request

json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "lookup_tafsirs",
    "arguments": {
      "languages": ["en"]
    }
  }
}

Typical Chaining

lookup_tafsirs → resolve tafsir slugs → ayah_tafsir

Powered by