Get Random Book
get_random_bookGet a random book that has an image, optionally constrained to a price range in EUR (minPrice/maxPrice, both inclusive; defaults cover the whole catalog — the bounds are in EUR, while the book itself is priced in its own bookseller currency, so a book returned under a 50 EUR cap can be shown as 45 CHF). Useful for discovery and serendipity — "show me something interesting", gift ideas, sampling the marketplace. Every call is an independent draw that picks a bookseller first, then one of its books, so small catalogues show as often as large ones. The result has the same detailed format as get_book (full description, image URLs, bookseller contact), with topic names localized via the language parameter.
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": "get_random_book"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| language | No | Language code (ISO 639-1) for localized topic names (default: the language of the Accept-Language header of the MCP request, else "fr"). Examples: "fr", "en", "de" | |
| maxPrice | No | Maximum price in EUR, inclusive (default: 1000000, i.e. effectively no upper bound) | |
| minPrice | No | Minimum price in EUR, inclusive (default: 0) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| book | Yes |