Skip to main content
Glama

get_role

Retrieve detailed information about a specific BookStack role, including its permissions and configuration settings, by providing the role ID.

Instructions

Get details of a specific role including permissions

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYesRole ID

Implementation Reference

  • Handler logic for the 'get_role' tool: parses the role ID from input arguments, calls BookStackClient.getRole(id), and returns a formatted API response.
    case "get_role": { const id = parseInteger(args.id); const result = await client.getRole(id); return formatApiResponse(result); }
  • Input schema definition for the 'get_role' tool, requiring a numeric 'id' parameter for the role.
    { name: "get_role", description: "Get details of a specific role including permissions", inputSchema: { type: "object", properties: { id: { type: "number", description: "Role ID" }, }, required: ["id"], }, },
  • src/index.ts:103-122 (registration)
    Registration of the 'get_role' tool name in the array used to dispatch calls to the search-user-tools handler.
    const searchUserToolNames = [ "search_all", "list_users", "get_user", "create_user", "update_user", "delete_user", "list_roles", "get_role", "create_role", "update_role", "delete_role", "list_attachments", "get_attachment", "delete_attachment", "list_images", "get_image", "update_image", "delete_image", ];
  • Supporting utility in BookStackClient: makes the API GET request to retrieve role details by ID.
    async getRole(id: number): Promise<Role> { const response: AxiosResponse<Role> = await this.api.get(`/roles/${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