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
| Name | Required | Description | Default |
|---|---|---|---|
| user_id | Yes | The ID of the user |
Implementation Reference
- src/npm_mcp/client.py:350-353 (handler)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()) - src/npm_mcp/server.py:271-271 (registration)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")), - src/npm_mcp/server.py:495-496 (handler)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"]))