disable_proxy_host
Disable a proxy host in Nginx Proxy Manager by specifying its ID to temporarily stop routing traffic through that configuration.
Instructions
Disable a proxy host
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| host_id | Yes | The ID of the proxy host to disable |
Implementation Reference
- src/npm_mcp/client.py:168-170 (handler)The actual implementation of the tool handler in the NPM client.
async def disable_proxy_host(self, host_id: int) -> None: host_id = _validate_int_id(host_id, "host_id") await self._request("POST", f"/api/nginx/proxy-hosts/{host_id}/disable") - src/npm_mcp/server.py:77-77 (registration)Registration of the "disable_proxy_host" tool in the server list.
Tool(name="disable_proxy_host", description="Disable a proxy host", inputSchema=_id_schema("host_id", "The ID of the proxy host to disable")), - src/npm_mcp/server.py:381-383 (handler)The request handling logic that dispatches to the client's disable_proxy_host method.
elif name == "disable_proxy_host": await npm_client.disable_proxy_host(arguments["host_id"]) return _msg_response("Proxy host disabled successfully")