Skip to main content
Glama

The Holy Quran

search_tafsir

Read-onlyIdempotent

Search Quran commentary using lexical matching. Returns matching Tafsir text with source attribution, availability and reference URLs. English fallback requires explicit permission and is identified in the response.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "query": "<query>"
    },
    "name": "search_tafsir"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNo
queryYesSearch text or Quran reference.
surahNoOptional restriction to one Surah.
offsetNo
languageNoRequested Quran.is language option.english
match_modeNoLexical phrase or substring keyword matching.phrase
allow_english_fallbackNoAllow English Al-Mukhtasar when native Tafsir is unavailable.

Schema Changelog

Changes observed during successful MCP inspections.

No schema history has been recorded yet.

TDQS

B3.4/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive and closed-world, so the safety profile is covered. The description adds value beyond them by disclosing what comes back (text with source attribution, availability, reference URLs) and by warning that English fallback needs explicit permission and is flagged in the response — a real behavioral consequence for the agent's choice of parameters.

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

Conciseness4/5

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

Three short sentences, front-loaded with the action and the return shape, with no filler. The final sentence carries the most decision-relevant caveat and is placed where it will be read.

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

Completeness3/5

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

With 7 parameters and no output schema, the description usefully sketches the return shape, which compensates somewhat. However, it leaves pagination (limit/offset with an offset ceiling of 6236) and the language/fallback interaction unexplained, which are gaps an agent needs to call this well.

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 71%, with query, surah, language, match_mode and allow_english_fallback documented in the schema. The description adds meaning only for the fallback flag; limit and offset are undocumented in both places, and the description says nothing about how the lexical match modes interact with the query.

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?

States a specific verb and resource: 'Search Quran commentary using lexical matching', and names the returned payload (Tafsir text, source attribution, reference URLs). It is clearly a commentary search, distinct in wording from siblings like search_quran or search_topics, though it never explicitly contrasts itself with them.

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

Usage Guidelines2/5

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

No when-to-use or when-not guidance is given; the agent must infer that this is for commentary rather than verse text. There is no mention of when to prefer search_quran, get_ayah, or search_topics, and no stated prerequisites for calling it.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources