get_dead_host
Retrieve configuration details for a specific inactive proxy host by its ID to review or troubleshoot proxy settings in Nginx Proxy Manager.
Instructions
Get a specific dead host by ID
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| host_id | Yes | The ID of the dead host |
Implementation Reference
- src/npm_mcp/client.py:314-317 (handler)The implementation of `get_dead_host` in the `NPMClient` class, which performs the actual API request to retrieve a dead host.
async def get_dead_host(self, host_id: int) -> DeadHost: host_id = _validate_int_id(host_id, "host_id") response = await self._request("GET", f"/api/nginx/dead-hosts/{host_id}") return DeadHost(**response.json()) - src/npm_mcp/server.py:436-437 (handler)The handler in `server.py` that receives the tool call `get_dead_host` and invokes the corresponding client method.
elif name == "get_dead_host": return _model_response(await npm_client.get_dead_host(arguments["host_id"])) - src/npm_mcp/server.py:167-167 (registration)Registration of the `get_dead_host` tool in the MCP server.
Tool(name="get_dead_host", description="Get a specific dead host by ID", inputSchema=_id_schema("host_id", "The ID of the dead host")),