Skip to main content
Glama

Bayān library

Find a work

lookup_work
Read-onlyIdempotent

Find works of the library by title, author or slug; a slug restricts a search to its work.

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

Input Schema

NameRequiredDescriptionDefault
queryYesA title, an author or a slug, in Arabic or Latin letters.
languageNoLanguage of titles and of the translation attached.en

Output Schema

NameRequiredDescriptionDefault
queryYes
worksYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, destructiveHint=false and openWorldHint=false, so the safety profile is covered. The description adds one useful behavioral fact beyond the schema: that passing a slug narrows the lookup to that single work, whereas a title/author query is broader. It says nothing about match semantics (exact vs partial), result cardinality, or whether a slug hit returns a single item, which would matter for an agent choosing inputs.

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?

A single tight sentence with the resource and keys front-loaded and no filler. The trailing clause is compressed to the point of mild ambiguity ('restricts a search to its work'), but nothing is wasted.

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?

An output schema, full parameter descriptions, and rich annotations carry most of the burden, so the description only needs to add routing and behavior. It supplies the slug nuance but omits the one thing that most affects selection — how this differs from the sibling 'search' tool.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3, and the description genuinely adds meaning for 'query' by explaining the semantic difference between a slug (restricts to one work) and a title/author (general search) — something the schema's 'A title, an author or a slug' does not convey. The 'language' parameter is left entirely to the schema, but it is fully documented there.

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 ('Find works of the library') and names the lookup keys (title, author, slug). It implicitly separates itself from search/get_passage/get_verse by scoping to 'works', but never explicitly differentiates against the sibling 'search', which overlaps heavily with title/author lookup.

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

Usage Guidelines3/5

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

The clause 'a slug restricts a search to its work' gives one concrete usage nuance, but there is no guidance on when to prefer this over the sibling 'search' for a title/author query, nor any note on expected input format or ambiguity handling.

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