Skip to main content
Glama

get_page

Retrieve detailed information and content from a specific BookStack wiki page using its unique ID to access documentation, articles, or knowledge base entries.

Instructions

Get details and content of a specific page

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYesPage ID

Implementation Reference

  • Handler for the 'get_page' tool: parses the page ID from arguments, calls client.getPage(id), and returns formatted API response.
    case "get_page": { const id = parseInteger(args.id); const result = await client.getPage(id); return formatApiResponse(result); }
  • Input schema for 'get_page' tool: requires an object with 'id' as number (Page ID).
    { name: "get_page", description: "Get details and content of a specific page", inputSchema: { type: "object", properties: { id: { type: "number", description: "Page ID" }, }, required: ["id"], }, },
  • src/index.ts:76-100 (registration)
    'get_page' is listed in contentToolNames array used to dispatch calls to handleContentTool in the MCP CallToolRequest handler.
    const contentToolNames = [ "list_books", "get_book", "create_book", "update_book", "delete_book", "export_book", "list_chapters", "get_chapter", "create_chapter", "update_chapter", "delete_chapter", "export_chapter", "list_pages", "get_page", "create_page", "update_page", "delete_page", "export_page", "list_shelves", "get_shelf", "create_shelf", "update_shelf", "delete_shelf", ];
  • src/index.ts:56-59 (registration)
    Tool definitions including 'get_page' schema from createContentTools are added to allTools, returned by ListToolsRequestHandler.
    const allTools: Tool[] = [ ...createContentTools(bookStackClient), ...createSearchAndUserTools(bookStackClient), ];
  • BookStackClient.getPage method: API call to fetch specific page by ID, used by the tool handler.
    async getPage(id: number): Promise<Page> { const response: AxiosResponse<Page> = await this.api.get(`/pages/${id}`); return 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/lautarobarba/bookstack_mcp_server'

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