Skip to main content
Glama
VeryBigSad

Nginx Proxy Manager MCP

by VeryBigSad

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
NameRequiredDescriptionDefault
host_idYesThe ID of the dead host

Implementation Reference

  • 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())
  • 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"]))
  • 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")),

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/VeryBigSad/nginx-proxy-manager-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server