Skip to main content
Glama

Read a chapter (free) or its opening (paid)

get_chapter_preview
Read-onlyIdempotent

Return the text of one chapter. Free chapters come back in full. A paid chapter comes back whole to an account that owns it (the book, or the chapter bought with buy_chapter) when the call carries its token; to anybody else as its public lead-in only (about a fifth of the chapter), with what the chapter costs on its own. Get book slugs and chapter ids from list_books. Read-only.

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": "<book>",
      "chapter": "<chapter>",
      "locale": "<locale>"
    },
    "name": "get_chapter_preview"
  }
}

Input Schema

NameRequiredDescriptionDefault
bookYesBook slug.
localeYesLanguage of the result: en, ru, pt or es.
chapterYesChapter id, e.g. "ch01" or "prologue".

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / book / enum
      Previous value: -[
      -  "nobody-writes-code",
      -  "nobody-owns-money",
      -  "from-closures-to-autonomous-systems"
      -]New value: +[
      +  "nobody-writes-code",
      +  "nobody-owns-money",
      +  "from-closures-to-autonomous-systems",
      +  "beautiful-computer"
      +]
  2. Changed1 schema field changed
    • changedInput schema / properties / book / enum
      Previous value: -[
      -  "nobody-writes-code",
      -  "nobody-owns-money"
      -]New value: +[
      +  "nobody-writes-code",
      +  "nobody-owns-money",
      +  "from-closures-to-autonomous-systems"
      +]
  3. Changed1 schema field changed
    • removedInput schema / $schema
      Removed value: -"http://json-schema.org/draft-07/schema#"
  4. First observed

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already cover the read-only, idempotent, non-destructive profile, and the description goes well beyond them by disclosing the partial-content behavior for non-owners (roughly a fifth of the chapter) and that a price appears in the response. The one weak spot is the entitlement mechanism: it says the call must "carry its token," but no token parameter exists in the schema, leaving the agent unsure how that state is actually conveyed.

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 core action is front-loaded in the first sentence and the access rules follow in a single dense sentence. That middle sentence is somewhat tangled with nested parentheticals, which slows parsing, but no sentence is filler.

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?

There is no output schema, so the description carries the burden of describing return values, and it does — full text, partial lead-in, plus price. Locale/language behavior is left entirely to the schema, which is acceptable. The unexplained token mechanism is the remaining gap.

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% and both enums are already constrained in the schema, so the parameters are self-documenting. The description's only added parameter value is the hint to source book slugs and chapter ids from list_books. Baseline 3 applies where the schema does the heavy lifting.

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?

States a specific verb and resource ("Return the text of one chapter") and immediately splits the outcome by access tier, which is the tool's defining behavior. An agent can distinguish it from list_books (id lookup) and buy_chapter (purchase) without opening either schema.

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

Usage Guidelines4/5

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

Explains the conditions of use clearly: free chapters return whole, owned chapters (via book ownership or buy_chapter) return whole, everything else returns a lead-in with pricing. It names list_books as the source of slugs and ids. What it does not spell out explicitly is the follow-on routing — that an agent receiving only a lead-in plus a price should then call buy_chapter — though that is strongly 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