Skip to main content
Glama
VeryBigSad

Nginx Proxy Manager MCP

by VeryBigSad

update_access_list

Modify an existing access control list in Nginx Proxy Manager to adjust authentication rules and access permissions for web applications.

Instructions

Update an existing access list

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
access_list_idYes
nameNo
satisfy_anyNo
pass_authNo

Implementation Reference

  • The client method that performs the actual API request to update the access list.
    async def update_access_list(self, access_list_id: int, access_list: AccessList) -> AccessList:
        access_list_id = _validate_int_id(access_list_id, "access_list_id")
        response = await self._request(
            "PUT",
            f"/api/nginx/access-lists/{access_list_id}",
            json=access_list.model_dump(exclude_none=True, exclude={"id", "created_on", "modified_on"}),
        )
        return AccessList(**response.json())
  • The server handler that processes the 'update_access_list' tool call by merging existing data with new arguments and calling the client.
    elif name == "update_access_list":
        args = dict(arguments)
        access_list_id = args.pop("access_list_id")
        current = await npm_client.get_access_list(access_list_id)
        updated_data = current.model_dump()
        updated_data.update(args)
        return _model_response(await npm_client.update_access_list(access_list_id, AccessList(**updated_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/VeryBigSad/nginx-proxy-manager-mcp'

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