Skip to main content
Glama
ttpears

BookStack MCP Server

by ttpears

get_shelf

Retrieve details for a specific BookStack shelf, including all books within it, by providing the shelf ID.

Instructions

Get details of a specific book shelf including all books

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYesShelf ID

Implementation Reference

  • The actual implementation of the getShelf client method.
    async getShelf(id: number): Promise<any> {
      const response = await this.client.get(`/shelves/${id}`);
      return this.enhanceShelfResponse(response.data);
    }
  • src/index.ts:386-401 (registration)
    Registration of the "get_shelf" tool and the handler logic that calls the client.
    server.registerTool(
      "get_shelf",
      {
        title: "Get Shelf Details",
        description: "Get details of a specific book shelf including all books",
        inputSchema: {
          id: z.coerce.number().min(1).describe("Shelf ID")
        }
      },
      async (args) => {
        const shelf = await client.getShelf(args.id);
        return {
          content: [{ type: "text", text: JSON.stringify(shelf, null, 2) }]
        };
      }
    );

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