Skip to main content
Glama

Search Books

search_books
Read-onlyIdempotent

Search the Livre Rare Book public marketplace — millions of rare, antiquarian, secondhand and collectible books from professional booksellers worldwide. Covers all subjects and periods, from children's books to first editions. Text criteria: quickSearch, author, title, description, keywords, ISBN, bookseller reference. Filters: price range (EUR), publication year range, century (real calendar centuries: 19 = 1801-1900, valid 14-22), book language (languageCode), book type, topic, bookseller (id, country, city, syndicate), autograph (SIGNED = signed incl. inscribed copies, INSCRIBED = inscribed/dedicated only), binary tags (FIRST_EDITION, DUST_JACKET, HARDCOVER, PAPERBACK), hasImage and hasIsbn tri-states, listing age. Multi-select filters (bookType, languageCode, syndicate, topicId, century, autograph, tags) accept a single value or an array: values within one filter are combined with OR, different filters are combined with AND. The autograph and tags vocabularies are names, the same ones their facet buckets report, so a facet value goes straight back into the filter. Every search must include at least one content criterion — a word of 3+ characters in quickSearch/author/title/description/keywords/isbn/reference, or booksellerSuggestion, bookType, booksellerId, booksellerCountryCode, topicId, booksellerCity, or latitude/longitude. Option filters alone (tags, autograph, languageCode, century, syndicate, hasIsbn, hasImage, price/year ranges, ageFilter) are rejected. A search is bounded in what it costs the engine, every text criterion together (isbn and reference do not count): at most 50 OR alternatives (the words of an ANY search, the alternatives of | in BOOLEAN), 1000 words, and 50 quoted phrases; the engine also stops a search after 2.5 s. A search over a bound is refused, never shortened: send a few distinctive words rather than a long list, and prefer ALL (or filters such as topicId) to a long ANY. Supports geographic search by latitude/longitude coordinates to find books from nearby booksellers (auto-expanding radius: 15km → 40km → 100km), or by bookseller country (ISO 3166-1 alpha-2) and city. Each result's price is the bookseller's own price, in the currency given by currency; comparablePrice is its EUR equivalent, which is what the price filters, brackets and percentiles work on. A book shown as 45 CHF can therefore match a filter capped at 50 EUR. Quote a price with its own currency, and use comparablePrice — never price — to compare copies across booksellers. Both are decimals with two places, and comparablePrice is ROUNDED to the cent while the filters read the unrounded value, so a result can sit up to half a cent outside the range asked for. Default sorting is RELEVANCE, which falls back to author A-Z when the query has no free-text term to rank on. Returns matching books (author, title, year, price, bookseller, autograph/tag badges, description truncated to fieldLength characters — default 400, 0 = untruncated; use get_book for the full text) plus, on the first page (faceted defaults to true on page 0 only, since facets describe the whole result set and are identical on every page), facet aggregations (bookType, languageCode, topicId, syndicate, century, autograph, tags — each facet value can be sent back as-is to the same-named filter, and the topicId facet is the reliable way to discover filterable topic ids) and adaptive EUR price brackets to refine the search. Results are paged: page is 0-based, resultsPerPage is 1-100 (default 25), and hasMore tells whether a next page exists. Page on hasMore, not on the number of books received: a page can hold fewer than resultsPerPage books — even none — without being the last, when books listed on it can no longer be served. Two counts come back: total is the exact number of books the search found — the one to quote — and reachable is how many of them paging can reach (capped by the engine). When total exceeds reachable the query is too broad to enumerate — say how many were found, and narrow it rather than paging: the topicId facet is usually the strongest lever, then the other facets and the price brackets. When the backend provides it, searchUrl is the public URL of this exact search on the Livre Rare Book website — hand it to the user to browse the full results.

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": "search_books"
  }
}

Input Schema

NameRequiredDescriptionDefault
isbnNoSearch by ISBN (10 or 13 digits)
pageNoPage number (0-based, default: 0). Only the first `reachable` results can be paged to: a page past them comes back empty.
tagsNoFilter by binary tags: FIRST_EDITION, DUST_JACKET, HARDCOVER, PAPERBACK. A copy can carry several at once. Accepts a single value or an array (tags facet values work as-is); multiple values are combined with OR — ["FIRST_EDITION", "DUST_JACKET"] returns books carrying either, not only those carrying both. An array holds at most 100 values.
titleNoSearch by book title
authorNoSearch by author name
centuryNoFilter by publication century using the real calendar definition: 19 means the 19th century, i.e. years 1801-1900. Valid values are 14 to 22 (14th to 22nd century), plus 0 which means "no century filter"; any other value is rejected with a validation error naming its position. Accepts a single century or an array, as numbers or digit strings (facet values work as-is); multiple values are combined with OR. An array holds at most 100 values.
facetedNoWhen true, the response includes facet aggregations (facets, priceBrackets, pricePercentiles) that describe how the whole result set breaks down — they are identical on every page of the same query. Default: true on page 0, false on later pages (you already hold the facets from the first page). Pass true explicitly to get facets on a later page, e.g. when entering a paginated search mid-way.
hasIsbnNoTri-state ISBN filter: true = only books with an ISBN, false = only books without one, omit = no filter.
sortingNoSort order for results (default: RELEVANCE). RELEVANCE falls back to author A-Z when the query contains no free-text term to rank on. PRICE_ASCENDING/PRICE_DESCENDING compare comparablePrice (EUR), not the displayed price. TIME_SEGMENTS lists the most recently changed listings first, by lastChangedAt — not the date a book was put on sale; books without that date come last. Sorting by seller is not supported on this public multi-bookseller search.
topicIdNoFilter by topic/theme ID(s) (use get_topics to list available topics). Accepts a single ID or an array, as numbers or digit strings (facet values work as-is); multiple IDs are combined with OR. An array holds at most 100 values.
bookTypeNoFilter by book type code(s) (use get_book_types to list available codes). Accepts a single code or an array; multiple codes are combined with OR. The code ALL is the one get_book_types serves for books whose bookseller never specified a type: as a filter it narrows nothing, so omit the parameter rather than sending it. An array holds at most 100 values.
hasImageNoTri-state image filter: true = only books with at least one photo, false = only books without photos, omit = no filter.
keywordsNoSearch by keywords
languageNoResponse language as a 2-letter ISO 639-1 code (e.g. "fr", "en"). Localizes server-generated labels in the response (sent as Accept-Language). This does NOT filter the books; use languageCode for that. Omit to follow the Accept-Language header of the MCP request, else the server default ("fr").
latitudeNoLatitude for geographic search. Use with longitude to find books from booksellers near these coordinates. The search automatically expands radius (15km → 40km → 100km) until results are found. Prefer this over booksellerCity for regional searches.
ageFilterNoKeep only listings whose lastChangedAt falls within the window: LAST_DAY (1 day), LAST_3_DAYS (3 days), LAST_WEEK (7 days), LAST_MONTH (31 days); ALL (the default) applies no window. It reads the last change to the listing, not the date a book was put on sale — a price change brings a listing back into the window.
autographNoFilter by autograph: SIGNED = carries a handwritten signature, which includes inscribed/dedicated copies; INSCRIBED = a personalised authorial inscription (presentation copy) only. Use SIGNED (or ["SIGNED", "INSCRIBED"]) for "signed" in the broad sense, ["INSCRIBED"] for inscriptions/dedications only. These two are the only accepted values — there is no value for "unsigned", since the absence of a signature is not a claim that the copy has none. Accepts a single value or an array (autograph facet values work as-is); multiple values are combined with OR. An array holds at most 100 values.
longitudeNoLongitude for geographic search. Must be used together with latitude.
matchTypeNoHow to match search terms: ALL (all words must match; the default), ANY (any word matches), PHRASE (exact phrase), BOOLEAN (boolean operators). An invalid BOOLEAN expression (unbalanced quotes or parentheses, dangling operator) is refused, and BOOLEAN cannot be combined with titleExactPhrase. ANY and the | of BOOLEAN hold at most 50 alternatives, every criterion together; BOOLEAN at most 50 quoted phrases.
referenceNoSearch by bookseller reference
syndicateNoFilter by bookseller syndicate(s), i.e. professional bookseller associations (e.g. "SLAM", "ILAB"). Use get_search_filters to list valid values — the filter needs the exact string, and an unknown value is rejected with a validation error naming its position. Accepts a single name or an array; multiple names are combined with OR. An array holds at most 100 values.
descriptionNoSearch in book description
fieldLengthNoMaximum length in characters of long text fields (e.g. description), truncated server-side. Default: 400. Pass 0 explicitly for untruncated text — but beware that 0 combined with a large resultsPerPage can exceed typical MCP client response-size limits. Use get_book to retrieve the full details of a specific book.
maximumYearNoMaximum publication year (must be >= 0; BC dates unsupported)
minimumYearNoMinimum publication year (must be >= 0; BC dates unsupported)
quickSearchNoGeneral search across all fields (author, title, description, keywords)
booksellerIdNoFilter by specific bookseller ID
languageCodeNoFilter by book language code(s) (ISO 639-1, e.g. "fr", "en", "de"; use get_search_filters to list valid codes — an unknown code is REJECTED with a validation error naming its position, not ignored). Accepts a single code or an array; multiple codes are combined with OR. This filters the books; it does not translate the response (see the language parameter). An array holds at most 100 values.
maximumPriceNoMaximum price in euros (must be >= 0)
minimumPriceNoMinimum price in euros (must be >= 0)
booksellerCityNoRestrict results to booksellers located in this city. Case- and accent-insensitive (e.g. "Paris", "lyon"). For broader regional searches, use latitude/longitude instead.
resultsPerPageNoNumber of results per page (default: 25, max: 100). Values above ~50 with the default fieldLength can exceed typical MCP client response-size limits; prefer paginating with the default page size.
titleExactPhraseNoIf true, title must match as an exact phrase. Cannot be combined with matchType BOOLEAN (the search is refused).
booksellerSuggestionNoRestrict results to booksellers whose corporate name contains this text (case-insensitive). Counts as a content criterion when it holds a word of 3+ characters. Combined with latitude/longitude it narrows the nearby booksellers; a text matching no bookseller returns no books. To look a bookseller up by name, use search_bookseller.
booksellerCountryCodeNoRestrict results to booksellers in this country (ISO 3166-1 alpha-2, e.g. "FR", "US", "GB"; use get_search_filters to list valid codes — an unknown code is rejected).

Output Schema

NameRequiredDescriptionDefault
pageYesCurrent page (0-based)
booksYes
totalYesExact number of matching books, uncapped — the count to quote when saying how many were found.
facetsNoHow the whole result set breaks down per filter; each entry value can be sent back as-is to the same-named search filter. Omitted when faceted=false.
hasMoreYesWhether a next page exists — judged against reachable, not total, and on the page window, not on the books received: a page can be short, even empty, without being the last
reachableYesNumber of those books reachable by paging: total, capped at the engine pagination ceiling. When total exceeds it, the extra ones cannot be paged to — narrow the search instead.
searchUrlNoPublic URL that opens this exact search on the Livre Rare Book website — give it to the user to browse the full results in a browser. Absent when the backend does not provide it.
priceBracketsNoAdaptive price bands in EUR covering the result set, stable under filtering; apply one via minimumPrice/maximumPrice. Omitted when faceted=false.
friendlyStringNoServer-generated, localized human-readable recap of the interpreted search criteria
resultsPerPageYesPage size this page was asked with
pricePercentilesNoPrice percentiles of the result set. Omitted when faceted=false.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.7/5.0
Behavior5/5

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

Annotations only declare a safe, idempotent, open-world read, so the description carries the real burden and does: engine cost bounds (50 OR alternatives, 1000 words, 50 phrases, 2.5s) that cause outright refusal rather than shortening, the content-criterion prerequisite, page-on-hasMore semantics, total vs reachable truncation, facets only on page 0 by default, and searchUrl provenance. This is behavior an agent could not infer from the schema or annotations.

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

Conciseness3/5

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

It is front-loaded with purpose, but the body is one dense paragraph running well past what a reader can scan, with some repetition (the price/comparablePrice caveat and the facet-identity point recur). Given 35 parameters the length is defensible, but segmentation into criteria / filters / paging sections would earn the space.

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?

For a 35-parameter tool this leaves nothing an agent needs unaddressed: inclusion criteria, filter combination logic, cost refusal, currency comparison, pagination edge cases, facet discovery and fallback behavior. The return-shape discussion is arguably redundant given the output schema, but it explains semantics (total vs reachable) rather than just fields.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3; the description still adds meaning the schema does not, notably that price filters/brackets/percentiles read the unrounded EUR comparablePrice rather than the displayed currency price, and that multi-select values OR within a filter and AND across filters while facet values feed straight back in. The century/autograph vocabulary explanations largely restate the schema, which keeps it below a 5.

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 ('Search the Livre Rare Book public marketplace') and immediately scopes the corpus: rare, antiquarian, secondhand and collectible books from professional booksellers. It also differentiates from siblings by pointing to get_book for full text and search_bookseller for looking up a bookseller by name.

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

Usage Guidelines5/5

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

Gives explicit when-to-use and when-not rules: every search must include a content criterion and option-only filters are rejected; when total exceeds reachable, 'say how many were found, and narrow it rather than paging'; use get_topics / get_search_filters to discover valid ids and codes; prefer latitude/longitude over booksellerCity for regional searches. Alternatives are named with the condition that selects them.

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