Skip to main content
Glama
ttpears

BookStack MCP Server

by ttpears

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
NameRequiredDescriptionDefault
idYesBook ID

Implementation Reference

  • 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) }]
        };
      }
  • 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);
    }

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/ttpears/bookstack-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server