Get book or author details
shamela_get_detailsCatalogue record for one book (kind=book, default) or one author (kind=author), installed or not.
book: authors, category, type, printed-edition flag, whether the text is installed here, the scanned printing and the other editions of the same work (same_group). When a reader tool says BOOK_NOT_DOWNLOADED, pick an installed entry from same_group or answer from this record. Read book_date, edition, editor and publisher per their field notes: never supply a missing one.
author: name, Hijri death year (null = unknown or living) and every catalogued book they wrote or co-wrote, each flagged installed or not. Volumes → shamela_read(unit='parts'); a book by title or subject → shamela_find(kind='book'). Errors: BOOK_NOT_FOUND, AUTHOR_NOT_FOUND.
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": "shamela_get_details"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | No | Selects what the call does: book | author. Default book. | |
| book_id | No | The book id (e.g. 9942). (kind=book only.) | |
| author_id | No | The author id (e.g. 474 for Ibn Qudama, 57 for Ibn Uthaymeen), from shamela_find(kind='name') with type 'author' or a book's authors[]. A catalogue id, not a death year or book id; shamela_find(kind='author') also gives it. (kind=author only.) | |
| include_books | No | If true (default), include every catalogued book by this author, main or co-author, ordered by book_id. False returns name and death year only. (kind=author only.) | |
| include_cover | No | Attach the book's cover image as an MCP image block when Shamela ships one (1,368 of 8,594 books). The picture is a ~310x460 thumbnail of the scanned printing's title page, so it costs roughly 190 image tokens. Set false to keep the reply text-only; `cover.available` still reports whether one exists. Default: true. (kind=book only.) | |
| response_format | No | Format of the human-readable text: 'markdown' (default) for display; 'json' the same data as one JSON code block; 'none' only a one-line pointer, leaving structuredContent as the whole answer. structuredContent is always returned, so a caller that parses it should pass 'none': the character budget counts both channels, and the unread copy otherwise spends most of it. Requires the 'response_format.none' capability (see shamela_get_brief). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scan | No | The scanned printing Shamela holds; null when none. (kind=book only.) | |
| books | No | The author's books by ascending book_id; empty when include_books is false. (kind=author only.) | |
| cover | No | Title-page thumbnail of the scanned printing; null when none. Says nothing about the real binding or whether a scan exists (377 books have a `scan` but no cover): read `scan`. (kind=book only.) | |
| notes | No | Caveats, including citation fields the catalogue lacks. (kind=book only.) | |
| editor | No | Editor (محقق) from the front matter; null when absent. (kind=book only.) | |
| authors | No | Authors, main author first. (kind=book only.) | |
| book_id | No | Catalogue book id. (kind=book only.) | |
| edition | No | Edition read from the book's front matter; null when absent. Never invent one. (kind=book only.) | |
| printed | No | 1 when page numbers follow a printed edition; otherwise Shamela numbers the pages itself. (kind=book only.) | |
| category | No | Category name. (kind=book only.) | |
| author_id | No | Author id. (kind=author only.) | |
| available | No | True when Shamela offers the book for download. (kind=book only.) | |
| book_date | No | Shamela «تاريخ الكتاب», Hijri; on 98.5% of dated books the main author's death year, not a composition year: never cite it as one. (kind=book only.) | |
| book_name | No | Catalogue title of the book (Arabic). (kind=book only.) | |
| book_type | No | Numeric book type. (kind=book only.) | |
| pdf_links | No | Raw scan descriptor from the catalogue; prefer `scan`. (kind=book only.) | |
| publisher | No | Publisher from the front matter; null when absent. (kind=book only.) | |
| sub_books | No | Catalogue ids of books bound inside this one. (kind=book only.) | |
| truncated | No | ||
| book_count | No | Number of catalogue books (main or co-author). (kind=author only.) | |
| death_text | No | Death date as display text. (kind=author only.) | |
| death_year | No | Hijri death year; null when unknown or living. (kind=author only.) | |
| downloaded | No | True only when the text is installed on this server and has pages. (kind=book only.) | |
| same_group | No | Other catalogue entries of the same work (editions, abridgments: Sahih al-Bukhari is 8, five editions and three abridgments). Quotes from two of them are one source. (kind=book only.) | |
| author_name | No | Author name. (kind=author only.) | |
| category_id | No | Category id (see shamela_find(kind='category')). (kind=book only.) | |
| rows_dropped | No | ||
| content_status | No | 'readable', 'downloaded_no_pages' or 'not_downloaded'. (kind=book only.) | |
| book_type_label | No | Book type in Arabic: printed, manuscript, journal, thesis, electronic or audio. (kind=book only.) | |
| publication_date | No | Hijri publication date, DDMMYYYY, from meta_data, when recorded. (kind=book only.) | |
| truncation_message | No |