disable_dead_host
Disable a non-responsive proxy host in Nginx Proxy Manager to maintain service reliability by removing it from active routing.
Instructions
Disable a dead host
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| host_id | Yes | The ID of the dead host to disable |
Implementation Reference
- src/npm_mcp/server.py:453-455 (handler)Handler in server.py that dispatches the call to the client.
elif name == "disable_dead_host": await npm_client.disable_dead_host(arguments["host_id"]) return _msg_response("Dead host disabled successfully") - src/npm_mcp/client.py:342-344 (handler)Actual API client method that performs the network request.
async def disable_dead_host(self, host_id: int) -> None: host_id = _validate_int_id(host_id, "host_id") await self._request("POST", f"/api/nginx/dead-hosts/{host_id}/disable") - src/npm_mcp/server.py:205-205 (registration)MCP tool registration in server.py.
Tool(name="disable_dead_host", description="Disable a dead host", inputSchema=_id_schema("host_id", "The ID of the dead host to disable")),