Skip to main content
Glama

delete_shelf

Remove a shelf from the BookStack wiki by moving it to the recycle bin using its unique ID.

Instructions

Delete a shelf (moves to recycle bin)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYesShelf ID

Implementation Reference

  • The handler logic for the 'delete_shelf' tool within the handleContentTool function. It parses the shelf ID from arguments, calls the BookStackClient's deleteShelf method, and returns a success message.
    case "delete_shelf": { const id = parseInteger(args.id); await client.deleteShelf(id); return `Shelf ${id} deleted successfully`; }
  • The input schema definition for the 'delete_shelf' tool, specifying that a numeric 'id' parameter is required.
    inputSchema: { type: "object", properties: { id: { type: "number", description: "Shelf ID" }, }, required: ["id"], },
  • The tool registration object for 'delete_shelf' returned by createContentTools, including name, description, and input schema.
    { name: "delete_shelf", description: "Delete a shelf (moves to recycle bin)", inputSchema: { type: "object", properties: { id: { type: "number", description: "Shelf ID" }, }, required: ["id"], }, }, ];
  • The helper method in BookStackClient that performs the actual API DELETE request to remove a shelf.
    async deleteShelf(id: number): Promise<void> { return this.delete(`/shelves/${id}`); }
  • src/index.ts:97-100 (registration)
    'delete_shelf' is listed in the contentToolNames array used by the MCP server dispatcher to route calls to handleContentTool.
    "create_shelf", "update_shelf", "delete_shelf", ];

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