sgbr_search
sgbr_searchSearch over one million digitized books by relevance across full text and catalogue metadata, then narrow results by year, language, library, genre, and object type to find relevant records.
Instructions
Read sgbr_guide before your first search. Search records by relevance across full text and catalogue metadata. Each hit returns title, author, date, place, language, type, availability, and an id to pass to sgbr_get_record. Narrow with filters (library, language, genre, object_type/foldouts, …), a year_from/year_to range, scope (title/author/subject/call_number/fulltext/image_description/identifier), or full_text_only. For object type (work/multivolume/volume/foldout), filter with filters.object_type or survey with sgbr_facet_values — hits do not carry it; their availability tells a fold-out plate from a book.
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": "sgbr_search"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | No | 1-based page number. | |
| sort | No | Result ordering: "relevance" (default, best match first — the only ordering that makes snippets meaningful), "year_asc"/"year_desc" by publication date, or "title_asc"/"title_desc" by title. Use a catalogue sort to find the earliest/latest or to page a set alphabetically; keep relevance when the query is a research question rather than an enumeration. | relevance |
| query | No | Free-text query over the "Books as Data" corpus (~1.07M records, mostly German). Operators: bare terms AND; a|b OR; -term excludes (also -"phrase", -stem*); "exact phrase"; "a b"~N (proximity); term~1 (fuzzy; a bare term~ allows two edits, looser still); trailing * stem (Karte*). The backend never errors on misuse. This server refuses a query wrapped in parentheses (read as empty → whole corpus); everything else is forwarded as written, including forms that silently mis-search: parentheses elsewhere are stripped, mid-word ?/* wildcards return 0 in title/author/subject scope and an unrelated set in full text (use term~1 or OR the spellings), and the words AND/OR/NOT and field:value are literal text (warned). Empty query matches everything. | |
| scope | No | Restrict the query to one field group: all (default), title, author, subject, call_number, fulltext, image_description (the AI descriptions of foldout plates — German, one sentence each), or identifier (an exact MMS id like 991104550959705501 or scan id like UBBS-00173645; a partial id returns 0, and a scan id of a multivolume or multi-copy work also returns that parent work). | all |
| exclude | No | Drop records carrying ANY of these values, per dimension (same keys and exact values as `filters`). Unlike a filter it keeps records with no value for that dimension, e.g. the untyped records filters.object_type can never reach. A misspelled value silently excludes nothing — take values from sgbr_facet_values. | |
| filters | No | Narrow the result set by dimension. Values within one dimension are OR-ed; different dimensions are AND-ed. Dimension values are exact facet values — discover them with sgbr_facet_values facet=<dim> — except object_type, whose enum lists friendly keys. Note: subject_area, topic, foldout_type, genre_ai, content_flags are machine-derived enrichments (rule-based or AI), not catalogued data. | |
| year_to | No | Only records published in or before this year (inclusive publication-date range). | |
| page_size | No | Results per page (max 25). | |
| pages_max | No | Only records with at most this many page images (see pages_min). | |
| pages_min | No | Only records with at least this many page images (a multivolume work counts all its volumes'); records without scans are excluded. | |
| year_from | No | Only records published in or after this year (inclusive publication-date range). | |
| full_text_only | No | If true, only return digitised items with machine-readable full text. A shortcut for the matching `filters.availability` values — prefer it over spelling one out, since the backend renames them between releases and this flag tracks every spelling. | |
| ocr_quality_min | No | Only records whose OCR quality score (0–100, mostly 90–95) is at least this; records without their own scan (multivolume parent works, metadata-only records) are excluded. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | Yes | ||
| sort | Yes | ||
| total | Yes | ||
| results | Yes | ||
| has_more | Yes | More records match than this page and the ones before it hold. | |
| returned | Yes | ||
| warnings | No | ||
| next_page | Yes | The page to request next, or null — also while has_more is true, when the next page lies past the backend's result window (narrow the query to reach those records) or this page came back short (a warning says how to continue). | |
| page_size | Yes | ||
| parsed_error | No | ||
| applied_filters | No |