Skip to main content
Glama
VeryBigSad

Nginx Proxy Manager MCP

by VeryBigSad

get_user

Retrieve user details by ID from Nginx Proxy Manager to manage access permissions and administrative roles.

Instructions

Get a specific user by ID

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
user_idYesThe ID of the user

Implementation Reference

  • The actual implementation of the get_user tool logic, which performs an API request to fetch user data.
    async def get_user(self, user_id: int) -> User:
        user_id = _validate_int_id(user_id, "user_id")
        response = await self._request("GET", f"/api/users/{user_id}")
        return User(**response.json())
  • The definition and registration of the get_user tool in the MCP server.
    Tool(name="get_user", description="Get a specific user by ID", inputSchema=_id_schema("user_id", "The ID of the user")),
  • The handler block in the server that dispatches the get_user tool call to the client implementation.
    elif name == "get_user":
        return _model_response(await npm_client.get_user(arguments["user_id"]))

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/VeryBigSad/nginx-proxy-manager-mcp'

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