Skip to main content
Glama

Bayān library

Search the library

search
Read-onlyIdempotent

Find passages, hadith and works of Bayān's library. Each passage or hadith comes with its ref, its citation and its public url.

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"
  }
}

Input Schema

NameRequiredDescriptionDefault
kindsNoWhat to find: passages, hadith, works.
limitNoHits to return.
queryYesWords to find, in Arabic, English or French.
worksNoRestrict passages and hadith to these works (slugs from lookup_work).
languageNoLanguage of titles and of the translation attached.en

Output Schema

NameRequiredDescriptionDefault
hitsYes
queryYes
semanticYesWhether the semantic stage took part; false means words only.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint=false, so the safety profile is fully covered. The description adds that results carry a ref, citation and public url, but with an output schema present even that is largely redundant, and nothing is said about matching behavior, ranking or empty results.

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?

Two short sentences with the purpose front-loaded and no filler. The second sentence on result fields is somewhat redundant given the output schema, which keeps it just short of ideal.

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

Completeness4/5

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

With rich annotations, a full output schema and 100% schema coverage, the description only needs to establish scope and it does so. A brief note on search-versus-fetch usage would make it complete for an agent choosing among the four library tools.

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 description coverage is 100%, including the kinds enum, limit bounds, query language options and the works slug constraint, so the schema carries the parameter burden entirely. The description contributes no additional meaning about how query terms are matched or how kinds interacts with works.

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?

"Find passages, hadith and works of Bayān's library" gives a specific verb (find) and enumerates the resource types, so the tool's role is unmistakable. It does not explicitly contrast itself with lookup_work or get_passage, so the sibling differentiation is left implicit.

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?

There is no statement of when to search versus when to fetch directly via get_passage, get_verse or lookup_work, and no prerequisites or exclusions are given. The only implied guidance is that this is a discovery tool, which the agent must infer from the verb alone.

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