Skip to main content
Glama

delete_page

Remove a page from BookStack by moving it to the recycle bin using its page ID.

Instructions

Delete a page (moves to recycle bin)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYesPage ID

Implementation Reference

  • Executes the delete_page tool by parsing the page ID argument and delegating to the BookStack client's deletePage method, returning a success message.
    case "delete_page": { const id = parseInteger(args.id); await client.deletePage(id); return `Page ${id} deleted successfully`; }
  • Defines the tool schema including name, description, and input schema requiring a numeric page ID.
    { name: "delete_page", description: "Delete a page (moves to recycle bin)", inputSchema: { type: "object", properties: { id: { type: "number", description: "Page ID" }, }, required: ["id"], }, },
  • BookStack API client helper method that performs the actual DELETE request to /pages/{id} endpoint.
    async deletePage(id: number): Promise<void> { return this.delete(`/pages/${id}`); }
  • src/index.ts:124-126 (registration)
    Registers the dispatch logic for content tools, including delete_page, by checking if the tool name is in contentToolNames and calling the appropriate handler.
    if (contentToolNames.includes(name)) { result = await handleContentTool(name, args, bookStackClient); } else if (searchUserToolNames.includes(name)) {

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