Skip to main content
Glama
VeryBigSad

Nginx Proxy Manager MCP

by VeryBigSad

update_user

Modify user details like name, email, roles, or status in Nginx Proxy Manager to maintain accurate access control and user management.

Instructions

Update an existing NPM user

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
user_idYesThe ID of the user to update
nameNo
nicknameNo
emailNo
rolesNo
is_disabledNo

Implementation Reference

  • Handler in server.py that processes the 'update_user' tool call, fetches the current user state, merges the updates, and calls the NPM client's update_user method.
    elif name == "update_user":
        args = dict(arguments)
        user_id = args.pop("user_id")
        current = await npm_client.get_user(user_id)
        updated_data = current.model_dump()
        updated_data.update(args)
        return _model_response(await npm_client.update_user(user_id, User(**updated_data)))
  • Definition of the 'update_user' tool, including its input schema, registered in the list of tools.
    Tool(
        name="update_user",
        description="Update an existing NPM user",
        inputSchema={
            "type": "object",
            "properties": {
                "user_id": {"type": "integer", "description": "The ID of the user to update"},
                "name": {"type": "string"},
                "nickname": {"type": "string"},
                "email": {"type": "string"},
                "roles": {"type": "array", "items": {"type": "string"}},
                "is_disabled": {"type": "boolean"},
            },
            "required": ["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