Skip to main content
Glama
ttpears

BookStack MCP Server

by ttpears

get_chapter

Retrieve specific chapter details from BookStack documentation using the chapter ID to access structured content information.

Instructions

Get details of a specific chapter

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYesChapter ID

Implementation Reference

  • Registration of the 'get_chapter' tool in index.ts.
      "get_chapter",
      {
        title: "Get Chapter Details",
        description: "Get details of a specific chapter",
        inputSchema: {
          id: z.coerce.number().min(1).describe("Chapter ID")
        }
      },
      async (args) => {
        const chapter = await client.getChapter(args.id);
        return {
          content: [{ type: "text", text: JSON.stringify(chapter, null, 2) }]
        };
      }
    );
  • The underlying 'getChapter' method in the BookStackClient class that handles the API call and enhances the response.
    async getChapter(id: number): Promise<any> {
      const response = await this.client.get(`/chapters/${id}`);
      return await this.enhanceChapterResponse(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