list_dead_hosts
Identify and display all proxy hosts returning 404 errors in Nginx Proxy Manager to detect broken links and maintain web infrastructure.
Instructions
List all 404 dead hosts
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/npm_mcp/client.py:310-312 (handler)The method that performs the API call to list dead hosts.
async def list_dead_hosts(self) -> List[DeadHost]: response = await self._request("GET", "/api/nginx/dead-hosts") return [DeadHost(**h) for h in response.json()] - src/npm_mcp/server.py:166-166 (registration)Registration of the list_dead_hosts tool in the MCP server.
Tool(name="list_dead_hosts", description="List all 404 dead hosts", inputSchema=_empty_schema()), - src/npm_mcp/server.py:434-435 (handler)The handler logic in call_tool that routes to the npm_client implementation.
elif name == "list_dead_hosts": return _list_response(await npm_client.list_dead_hosts())