Skip to main content
Glama
frogr
by frogr

Book details and chapters

get_book
Read-onlyIdempotent

Retrieve a Project Gutenberg book's metadata and table of contents—including chapters, acts, or scenes with start and end lines—to choose a chapter before reading passages.

Instructions

Get one Project Gutenberg book's metadata (title, authors, languages, subjects, summary) and its table of contents: every detected chapter, letter, stave, act or scene with start and end line numbers. Call this before read_passage to pick a chapter.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYesProject Gutenberg book id, e.g. 2701 (Moby Dick) or 1342 (Pride and Prejudice). Find ids with search_books.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYes
urlYes
noteNo
titleYes
authorsYes
summaryNo
chaptersYesDetected table of contents with line offsets. Empty when the book has no recognizable headings.
subjectsYes
languagesYes
line_countYesLines in the book text after the license header and footer are removed. All line numbers refer to this text.
attributionYesCredit line to keep with any quoted text.
bookshelvesYes
release_dateNoProject Gutenberg release date, from the file header.
chapter_countYes
download_countNo
metadata_sourceYestext_header means the catalog was unavailable and title/author come from the book file.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, openWorldHint, and destructiveHint=false, so safety is covered. The description adds useful behavioral context beyond that: the return payload includes metadata fields and a per-unit table of contents with line ranges, which tells the agent what granularity of chapter boundaries to expect.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two sentences, no filler. The payload description comes first and the workflow guidance ('call before read_passage') is front-loaded at the end where it is easiest to act on.

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

Completeness5/5

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

With an output schema present, the description need not enumerate return values, and it correctly focuses on scope, contents, and call ordering. Annotations cover safety, the sole parameter is fully documented in the schema, and the relationship to read_passage is stated — nothing needed to call this correctly is missing.

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 the single 'id' parameter is already documented with range and examples in the schema itself. The description adds no id syntax, format, or lookup detail beyond what the schema supplies, so the baseline of 3 is appropriate.

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 ('Get one Project Gutenberg book's metadata... and its table of contents') and enumerates exactly what the TOC contains (chapters, letters, staves, acts, scenes with start/end line numbers). It is clearly distinguishable from siblings like search_books and read_passage by naming the latter directly.

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?

Gives explicit sequencing guidance: 'Call this before read_passage to pick a chapter,' which tells the agent when this tool is the right entry point. It stops short of a full when-not/alternative matrix (e.g., when to prefer book_stats or find_in_book instead), but the primary workflow is unambiguous.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.