Skip to main content
Glama

Read an audiobook's text

read_book
Read-onlyIdempotent

Read a public audiobook's bilingual text: its sentence pairs (each original sentence with its translation, plus a Latin-script romanization for languages that have one), in reading order. Returns at most limit pairs starting at offset; continue with offset + limit while has_more is true. total_pairs is the book's length.

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": {
      "book_id": "<book_id>"
    },
    "name": "read_book"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMaximum number of sentence pairs to return.
offsetNoIndex of the first sentence pair to return.
book_idYesThe book's id (the `id` field of a Book).

Output Schema

NameRequiredDescriptionDefault
limitYesMaximum number of pairs in this window.
pairsYes
offsetYesIndex of the first pair in this window.
book_idYes
has_moreYesWhether pairs exist after this window.
total_pairsYesNumber of sentence pairs in the whole book.
audio_patternYesWhich languages the audio speaks for each sentence pair, in order, e.g. "source-target-source". "source-only" books are not translated: they speak only the source language and every target_text is empty.
source_languageYes
target_languageYesSame as the book's target_language: the language being learned.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changed
    • changedOutput schema / $defs / TextPair / properties / target_text / description
      Previous value: -"Its translation in the target language."New value: +"Its translation in the target language. Empty when the book has no translation (audio_pattern \"source-only\")."
    • addedOutput schema / properties / audio_pattern
      Added value: +{
      +  "description": "Which languages the audio speaks for each sentence pair, in order, e.g. \"source-target-source\". \"source-only\" books are not translated: they speak only the source language and every target_text is empty.",
      +  "title": "Audio Pattern",
      +  "type": "string"
      +}
    • addedOutput schema / properties / target_language / description
      Added value: +"Same as the book's target_language: the language being learned."
    • changedOutput schema / required
      Previous value: -[
      -  "book_id",
      -  "source_language",
      -  "target_language",
      -  "total_pairs",
      -  "offset",
      -  "limit",
      -  "has_more",
      -  "pairs"
      -]New value: +[
      +  "book_id",
      +  "source_language",
      +  "target_language",
      +  "audio_pattern",
      +  "total_pairs",
      +  "offset",
      +  "limit",
      +  "has_more",
      +  "pairs"
      +]
  2. First observed

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare the safe read-only, idempotent, non-destructive profile, so the bar is lower. The description still adds real value beyond them: the pagination contract with has_more and offset+limit, the meaning of total_pairs, the exact composition of each pair including optional romanization, and the access scope ('public' audiobook).

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 tight sentences, front-loaded with what is returned, then the paging rule, then a definition of total_pairs. No filler; the final clause about total_pairs is the only one that could be folded into the preceding paging sentence.

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?

Covers content shape, ordering, paging, and access scope, and an output schema exists so return values need no further explanation. Gaps are minor: no note on failure behavior for an unknown or non-public book_id, and no statement about whether paging is stable across calls.

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 limit, offset, and book_id are already documented in the schema; baseline 3 applies. The description does add the relationship between the two paging parameters ('at most `limit` pairs starting at `offset`'), which is a modest gain over the independently documented fields.

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 ('Read a public audiobook's bilingual text') and enumerates the payload precisely: sentence pairs, each with original, translation, and a Latin-script romanization where applicable, in reading order. It is clearly distinguishable from the metadata-oriented siblings (get_book, list_languages) and search tools, though it never names an alternative explicitly.

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?

Provides solid guidance for one dimension — how to page through the book ('continue with offset + limit while has_more is true') — which an agent genuinely needs. It gives no guidance on when to choose this tool over get_book or search_books, or on prerequisites such as book availability.

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.