disable_redirection_host
Disable a redirection host in Nginx Proxy Manager to stop URL forwarding and manage web proxy configurations.
Instructions
Disable a redirection host
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| host_id | Yes | The ID of the redirection host to disable |
Implementation Reference
- src/npm_mcp/client.py:270-272 (handler)The implementation of disable_redirection_host in the Nginx Proxy Manager client.
async def disable_redirection_host(self, host_id: int) -> None: host_id = _validate_int_id(host_id, "host_id") await self._request("POST", f"/api/nginx/redirection-hosts/{host_id}/disable") - src/npm_mcp/server.py:123-123 (registration)Tool registration for disable_redirection_host in the MCP server.
Tool(name="disable_redirection_host", description="Disable a redirection host", inputSchema=_id_schema("host_id", "The ID of the redirection host to disable")), - src/npm_mcp/server.py:405-407 (handler)Tool handler call site in the MCP server.
elif name == "disable_redirection_host": await npm_client.disable_redirection_host(arguments["host_id"]) return _msg_response("Redirection host disabled successfully")