Skip to main content
Glama

Bayān library

Read a passage

get_passage
Read-onlyIdempotent

Read a passage by its ref: the Arabic text, its stored translation when there is one, its citation, the edition's attribution and neighbouring passages.

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": {
      "ref": "<ref>"
    },
    "name": "get_passage"
  }
}

Input Schema

NameRequiredDescriptionDefault
refYesA passage ref from search.
contextNoNeighbouring passages of the same edition to add on each side.
languageNoLanguage of titles and of the translation attached.en

Output Schema

NameRequiredDescriptionDefault
refYes
urlYes
kindYes
textYesThe Arabic text as the edition prints it.
workYes
afterYes
beforeYes
citationYes
attributionYes
translationYes

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, idempotentHint and destructiveHint=false, so the safety profile is fully covered. The description adds one genuinely useful trait — the translation is returned only 'when there is one', warning that it may be absent — but the rest restates return contents that the output schema already defines.

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 front-loaded sentence with the action first and the payload second; no filler or hedging. The trailing enumeration is slightly list-heavy but each element carries information an agent would otherwise have to infer.

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 full annotation coverage, 100% schema coverage and an output schema, the description only needs to state the action and payload, which it does. It stops short of noting that refs are fixed-length identifiers from search, but the schema supplies that.

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%, so all three parameters (ref, context, language) are already documented, and the baseline of 3 applies. The description's mention of 'neighbouring passages' loosely maps to context and 'translation' to language, but adds no syntax, limits, or defaults beyond the schema.

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?

"Read a passage by its ref" gives a specific verb and resource, and the sentence then enumerates exactly what comes back (Arabic text, translation, citation, edition attribution, neighbours). It is clearly distinct from a verse-reading sibling by naming 'passage', but it never explicitly contrasts itself with get_verse or lookup_work.

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?

Usage is only implied: 'by its ref' plus the schema note that refs come from search tells an agent this is the follow-up read after a search. There is no explicit statement of when to prefer this over get_verse, nor any precondition or exclusion.

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