get_book
Retrieve detailed information about a specific book from BookStack knowledge management systems by providing its unique ID.
Instructions
Get detailed information about a specific book
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Book ID |
Implementation Reference
- src/index.ts:133-147 (handler)Registration and handler implementation for the get_book MCP tool.
server.registerTool( "get_book", { title: "Get Book Details", description: "Get detailed information about a specific book", inputSchema: { id: z.coerce.number().min(1).describe("Book ID") } }, async (args) => { const book = await client.getBook(args.id); return { content: [{ type: "text", text: JSON.stringify(book, null, 2) }] }; } - src/bookstack-client.ts:343-346 (handler)Implementation of the underlying getBook logic in the BookStack client class.
async getBook(id: number): Promise<any> { const response = await this.client.get(`/books/${id}`); return this.enhanceBookResponse(response.data); }