Search Gutenberg Books
gutenberg_search_booksSearch the Project Gutenberg catalog by title or author. The local mirror also searches alternative titles. Filter by author, contributor, table of contents, topic, language, translator, author lifespan, IDs, media type, Library of Congress Classification, MIME prefix or copyright status. Check each filter’s local mirror requirements. Results include media type, classification, download counts and readability. Use gutenberg_get_book for full metadata.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "gutenberg_search_books"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ids | No | Narrow results to these Gutenberg IDs, intersected with other filters. An empty list selects nothing; omit for unrestricted IDs. Use gutenberg_get_book for full single-ID metadata. | |
| lcc | No | Any listed Library of Congress Classification prefix, ignoring case. Example: ["PS", "PR"]. Requires the local mirror. | |
| page | No | Page number for paginated results (1-indexed). Each page returns up to 32 books. Use totalCount to determine total pages. | |
| sort | No | Result ordering. "popular" (default) sorts by downloads in the last 30 days at the source snapshot, descending. "ascending" and "descending" sort by Gutenberg ID number. | popular |
| query | No | Every word must match the title or an author name as a literal substring. The local mirror also searches alternative titles and ignores case and accents. The live catalog may require accents and accepts at most four words. Example: "dickens expectations". | |
| topic | No | Phrase to match against subjects and bookshelves, ignoring case and, on the local mirror, accents. Example: "detective" matches the "Detective Fiction" bookshelf and "Detective and mystery stories" subject. Separate from query — topic searches categorization metadata, not title/author. | |
| author | No | Every word must match one creator’s name or aliases, ignoring case and accents. Requires the local mirror. | |
| contents | No | Literal phrase in the catalog table of contents, ignoring case, accents and whitespace runs. Requires the local mirror. | |
| copyright | No | Any selected source copyright status: "true" copyrighted, "false" public domain in the USA, "null" unknown. Empty means all statuses; this is not worldwide legal clearance. | |
| languages | No | Filter to books in any of these catalog language codes, exactly as results report them ("en", not "eng"). Example: ["en"] for English, ["fr", "de"] for French or German, ["enm"] for Middle English. | |
| mime_type | No | Literal prefix of a format MIME key, such as "text/plain" or "application/pdf". Type and subtype casing is normalized; parameter suffixes retain literal case. Blank means unset. | |
| media_type | No | Any listed catalog media type, matched exactly ignoring case. Examples: ["Text"], ["Sound"]. Requires the local mirror. | |
| translator | No | Every nonblank whitespace-separated word must match a translator name as a literal substring, ignoring case and accents; words can land on different translators of one book. Requires the local mirror. Example: "maude" finds the Aylmer and Louise Maude translations. Result rows omit translators; gutenberg_get_book reports them. | |
| contributor | No | Every word must match a contributor name, ignoring case and accents. Requires the local mirror. | |
| author_year_end | No | Include only books with an author who has a known birth or death year on or before this year. With author_year_start, one author must meet both bounds. Example: author_year_start=1800 with author_year_end=1899 returns books with 19th-century authors. | |
| author_year_start | No | Include only books with an author who has a known birth or death year on or after this year (positive = CE, negative = BCE). With author_year_end, one author must meet both bounds. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | No | Current page number. | |
| books | No | Matching books, ordered by the sort parameter. | |
| error | No | Present when the call failed. Absent on success. | |
| notice | No | Actionable guidance for an empty selection, or a caveat that the live catalog checked author_year_start and author_year_end separately. The caveat can accompany results. | |
| hasMore | No | True if there are additional pages of results. | |
| totalCount | No | Total number of books matching the query across all pages. | |
| catalogAsOf | No | Last recorded bulk RDF archive checkpoint, or null when unavailable or inapplicable. | |
| catalogSource | No | Catalog that answered. Omitted when an empty ID list selects nothing. | |
| effectiveCriteria | No | Normalized search criteria, including sort and page defaults. |