Skip to main content
Glama
VeryBigSad

Nginx Proxy Manager MCP

by VeryBigSad

delete_certificate

Remove SSL certificates by ID from Nginx Proxy Manager to manage certificate lifecycle and maintain security.

Instructions

Delete an SSL certificate by ID

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
certificate_idYesThe ID of the certificate to delete

Implementation Reference

  • The handler method in the NPMClient class that performs the actual API call to delete an SSL certificate.
    async def delete_certificate(self, cert_id: int) -> None:
        cert_id = _validate_int_id(cert_id, "certificate_id")
        await self._request("DELETE", f"/api/nginx/certificates/{cert_id}")
  • The handler logic in the server's 'call_tool' implementation for 'delete_certificate'.
    elif name == "delete_certificate":
        await npm_client.delete_certificate(arguments["certificate_id"])
        return _msg_response("Certificate deleted successfully")
  • The registration of the 'delete_certificate' tool in the MCP server.
    Tool(name="delete_certificate", description="Delete an SSL certificate by ID", inputSchema=_id_schema("certificate_id", "The ID of the certificate to delete")),

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