get_access_list
Retrieve a specific access control list by its ID to manage authentication rules for Nginx Proxy Manager proxy hosts.
Instructions
Get a specific access list by ID
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| access_list_id | Yes | The ID of the access list |
Implementation Reference
- src/npm_mcp/client.py:229-232 (handler)The actual API client method that performs the request to get a specific access list.
async def get_access_list(self, access_list_id: int) -> AccessList: access_list_id = _validate_int_id(access_list_id, "access_list_id") response = await self._request("GET", f"/api/nginx/access-lists/{access_list_id}") return AccessList(**response.json()) - src/npm_mcp/server.py:239-239 (registration)Tool definition registration in the server for 'get_access_list'.
Tool(name="get_access_list", description="Get a specific access list by ID", inputSchema=_id_schema("access_list_id", "The ID of the access list")), - src/npm_mcp/server.py:477-478 (handler)Tool call handling implementation that maps the 'get_access_list' tool name to the client's 'get_access_list' method.
elif name == "get_access_list": return _model_response(await npm_client.get_access_list(arguments["access_list_id"]))