Skip to main content
Glama
VeryBigSad

Nginx Proxy Manager MCP

by VeryBigSad

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
NameRequiredDescriptionDefault
access_list_idYesThe ID of the access list

Implementation Reference

  • 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())
  • 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")),
  • 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"]))

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