Skip to main content
Glama
This connector has been deprecated

Quick generic search of the whole library

search
Read-onlyIdempotent

Search the whole classical Islamic library (8,594 works, no scope) and get up to 10 pages as {id, title, url}; pass an id to fetch to read the page. This is the generic one-argument entry (the standard search/fetch pair); the scoped tools answer research questions better. Use shamela_search_library for a hadith, tafsir or fiqh question: unscoped ranking is by term frequency, so a poetry anthology can outrank Sahih al-Bukhari. Use shamela_search (match "words", "phrase", "near", "exact" or "boolean") to pin books, categories or a madhhab, match an exact or diacritized phrase, or page further; use shamela_cite (mode "printed_page") for printed-page citations. Exact phrase first; only when it finds nothing are the words matched separately. Title flags: [footnote match] = only an editor's footnote; [token match] = words occur apart; [near match] = only some words or their roots. Empty results mean no page carries the words. A query without Arabic words returns a tool error.

Input Schema

NameRequiredDescriptionDefault
queryYesArabic search text, e.g. "إنما الأعمال بالنيات"; 2-6 words work best. Quote the wording if known, else name the topic.

Output Schema

NameRequiredDescriptionDefault
resultsNoAt most 10 pages; empty when no page carries the words.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedOutput schema / properties / results / items / properties / url / description
      Previous value: -"The same page on shamela.ws."New value: +"The same page in the Quran Gallery Maktabah reader."
  2. Changed6 schema fields changed
    • changedInput schema / properties / query / description
      Previous value: -"Arabic search text — a quoted wording or a topic."New value: +"Arabic search text, e.g. \"إنما الأعمال بالنيات\"; 2-6 words work best. Quote the wording if known, else name the topic."
    • addedOutput schema / properties / results / description
      Added value: +"At most 10 pages; empty when no page carries the words."
    • addedOutput schema / properties / results / items / properties / title / description
      Added value: +"\"{book} — {author} ({volume}/{page})\", plus [footnote match], [token match] or [near match] when the match is weaker than the exact phrase in the main text."
    • addedOutput schema / properties / results / items / properties / url / description
      Added value: +"The same page on shamela.ws."
    • removedOutput schema / properties / results / items / required
      Removed value: -[
      -  "id",
      -  "title",
      -  "url"
      -]
    • removedOutput schema / required
      Removed value: -[
      -  "results"
      -]
  3. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already declare readOnly, idempotent, non-destructive, closed-world, but the description adds substantial behavioral context beyond them: a hard cap of 10 pages, the exact return shape, ranking being term-frequency based, the exact-phrase-first-then-split-words fallback, the meaning of the three title flags ([footnote match], [token match], [near match]), that empty results mean no page carries the words, and that a query with no Arabic words raises a tool error.

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?

The opening sentence front-loads the tool's identity, scope, and return contract, and every subsequent sentence carries real information. It is dense and slightly long, with the title-flag glossary and match-fallback detail sitting between the alternative-tool routing and the error note rather than in a clean order, but nothing is filler.

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?

Although an output schema exists and return values need not be explained, the description still covers limits, ranking, fallback matching, flag meanings, and error behavior for a single-parameter read tool. Nothing an agent needs to call it correctly or interpret empty results 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% and the single `query` parameter's description already specifies Arabic text, an example, and the 2–6 word sweet spot, so the baseline is 3. The description adds one genuinely new constraint not in the schema — that a query without Arabic words returns a tool error — but otherwise does not add syntax or matching-mode detail to the parameter itself.

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 first sentence gives a specific verb, resource, and scope: search the whole classical Islamic library across 8,594 works with no filtering, returning up to 10 {id, title, url} pages that chain into `fetch`. It explicitly positions itself as the generic one-argument entry in the search/fetch pair and names the scoped siblings that answer research questions better, so an agent can separate it from shamela_search and shamela_search_library without opening any schema.

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 gives explicit routing rules: use shamela_search_library for hadith/tafsir/fiqh questions because unscoped ranking is by term frequency and a poetry anthology can outrank Sahih al-Bukhari; use shamela_search to pin books, categories, or a madhhab, match exact/diacritized phrases, or paginate; use shamela_cite with mode "printed_page" for citations. The condition that selects each alternative is stated, not implied.

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