Skip to main content
Glama
VeryBigSad

Nginx Proxy Manager MCP

by VeryBigSad

delete_redirection_host

Remove a redirection host configuration by its ID to stop redirecting web traffic through Nginx Proxy Manager.

Instructions

Delete a redirection host by ID

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
host_idYesThe ID of the redirection host to delete

Implementation Reference

  • The actual implementation of the delete_redirection_host tool in the NPMClient class.
    async def delete_redirection_host(self, host_id: int) -> None:
        host_id = _validate_int_id(host_id, "host_id")
        await self._request("DELETE", f"/api/nginx/redirection-hosts/{host_id}")
  • Registration of the delete_redirection_host tool in the server's list_tools function.
    Tool(name="delete_redirection_host", description="Delete a redirection host by ID", inputSchema=_id_schema("host_id", "The ID of the redirection host to delete")),
  • Handler logic in the server's call_tool function that maps the "delete_redirection_host" tool name to the client's method.
    elif name == "delete_redirection_host":
        await npm_client.delete_redirection_host(arguments["host_id"])
        return _msg_response("Redirection host deleted successfully")

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