Search Books
openlibrary_search_booksFull-text book search across Open Library works. Supports field filters (title, author, subject, publisher, ISBN, language) and returns work-level records with edition counts, cover IDs, and reading availability. Use query for general search or combine specific field filters; a search needs at least one of query, title, author, subject, publisher, or isbn with a non-blank value, and language and sort only narrow or order it. Results are work-level — drill into editions via openlibrary_get_editions.
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": "openlibrary_search_books"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| isbn | No | Find works that have editions with this ISBN (10 or 13 digits, hyphens ignored). | |
| sort | No | Sort order. "relevance" uses Solr scoring. "new"/"old" sort by first publish year. "rating" by average community rating. "editions" by edition count. | relevance |
| limit | No | Max results to return; values above 1000 apply 1000 when limit clamping is enabled. Higher values increase response size; prefer 10–20 for exploration. | |
| query | No | Full-text search query. Supports Solr field prefixes: title:, author:, subject:, publisher:, isbn:, language: (MARC codes), plus ia:<ia_identifier> (the work holding an Internet Archive scan, with that scan's edition in matching_edition), author_key:<author_id> (one author's works; pair with sort "editions" to rank them), first_publish_year:[1900 TO 1950] (an era), and ebook_access:public (freely readable). Omit, or leave blank, to search by title, author, subject, publisher, or isbn instead. | |
| title | No | Filter by title. Matched against work title and alternative titles. | |
| author | No | Filter by author name. Partial names work. | |
| offset | No | Zero-based offset for pagination. | |
| subject | No | Filter by subject tag (e.g., "science fiction", "history"). | |
| language | No | Restrict results to one language. Takes a 3-letter MARC code (e.g., "eng", "fre", "ger", "chi") — the same vocabulary openlibrary_get_edition and openlibrary_get_editions return. A 2-letter ISO 639-1 code ("en", "fr") or an ISO 639-2/T code ("deu", "fra", "zho") is accepted in any case and translated to its MARC equivalent; a code that is neither a MARC code nor an Open Library language record is rejected rather than silently matching nothing. Chinese is indexed under both "chi" and "cmn" (958,147 and 76,029 works as of November 2026), so search each to cover both. The in-query form language:eng takes MARC codes only. | |
| publisher | No | Filter by publisher name. Partial names work (e.g., "Penguin"). | |
| include_availability | No | Include live reading availability from Internet Archive (borrow/read status). Costs one additional search request per 100 returned works with an Internet Archive scan. Use when the user needs to know if they can read the book online. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| error | No | Present when the call failed. Absent on success. | |
| total | No | Total matching works across all pages. | |
| works | No | Matching works, up to limit. | |
| notice | No | Guidance when the page is empty, a requested page limit was reduced to 1000, or availability is unknown for some works. Absent when none applies. | |
| offset | No | Zero-based offset of the first returned result. | |
| queryEcho | No | The effective search criteria as the server interpreted them — query string plus any active field filters. Absent when only a bare query is used. | |
| totalCount | No | Total matching works across all pages — the upstream match count, reported even when this page is empty because offset ran past the end. |