Skip to main content
Glama

get_user

Retrieve specific user details from BookStack by providing a user ID to access account information and profile data.

Instructions

Get details of a specific user

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYesUser ID

Implementation Reference

  • Handler logic for the 'get_user' tool within handleSearchAndUserTool switch statement. Parses the 'id' from input arguments, fetches the user using BookStackClient.getUser, and formats the response using formatApiResponse.
    case "get_user": { const id = parseInteger(args.id); const result = await client.getUser(id); return formatApiResponse(result); }
  • Tool object definition in createSearchAndUserTools, providing the name, description, and inputSchema for 'get_user' tool, which requires a numeric 'id' parameter.
    { name: "get_user", description: "Get details of a specific user", inputSchema: { type: "object", properties: { id: { type: "number", description: "User ID" }, }, required: ["id"], }, },
  • src/index.ts:56-59 (registration)
    Registration of 'get_user' tool: includes tools from createSearchAndUserTools (which defines 'get_user') in the allTools array, returned by the list_tools handler.
    const allTools: Tool[] = [ ...createContentTools(bookStackClient), ...createSearchAndUserTools(bookStackClient), ];
  • src/index.ts:103-122 (registration)
    Lists 'get_user' in searchUserToolNames array used to route tool calls to handleSearchAndUserTool dispatcher.
    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", ];
  • BookStackClient helper method that retrieves user details by ID via the BookStack API endpoint `/users/{id}`.
    async getUser(id: number): Promise<User> { const response: AxiosResponse<User> = await this.api.get(`/users/${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