Skip to main content
Glama
VeryBigSad

Nginx Proxy Manager MCP

by VeryBigSad

get_setting

Retrieve a specific configuration setting by ID from Nginx Proxy Manager to manage proxy hosts, SSL certificates, or access lists.

Instructions

Get a specific setting by ID

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
setting_idYesThe setting ID (e.g. 'default-site')

Implementation Reference

  • Implementation of the get_setting tool in the NPMClient class, including validation.
    async def get_setting(self, setting_id: str) -> Setting:
        setting_id = _validate_setting_id(setting_id)
        response = await self._request("GET", f"/api/settings/{setting_id}")
        return Setting(**response.json())
  • Tool handler registration and execution call for get_setting in server.py.
    elif name == "get_setting":
        return _model_response(await npm_client.get_setting(arguments["setting_id"]))
  • Tool definition/registration for get_setting with its input schema.
        name="get_setting",
        description="Get a specific setting by ID",
        inputSchema={
            "type": "object",
            "properties": {"setting_id": {"type": "string", "description": "The setting ID (e.g. 'default-site')"}},
            "required": ["setting_id"],
        },
    ),
  • Validation helper for setting_id.
    def _validate_setting_id(value) -> str:
        """Validate setting_id is a safe alphanumeric-dash string."""
        s = str(value)
        if not _SETTING_ID_PATTERN.match(s):
            raise ValueError(f"setting_id must match [a-z0-9-]{{1,64}}, got: {s!r}")
        return s

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