renew_certificate
Renew a Let's Encrypt SSL certificate in Nginx Proxy Manager to maintain secure HTTPS connections for your proxy hosts.
Instructions
Renew a Let's Encrypt certificate
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| certificate_id | Yes | The ID of the certificate to renew |
Implementation Reference
- src/npm_mcp/client.py:193-196 (handler)The implementation of the `renew_certificate` method in `NPMClient` class, which makes the API call to renew the certificate.
async def renew_certificate(self, cert_id: int) -> Certificate: cert_id = _validate_int_id(cert_id, "certificate_id") response = await self._request("POST", f"/api/nginx/certificates/{cert_id}/renew") return Certificate(**response.json()) - src/npm_mcp/server.py:223-223 (registration)The MCP tool registration for `renew_certificate`.
Tool(name="renew_certificate", description="Renew a Let's Encrypt certificate", inputSchema=_id_schema("certificate_id", "The ID of the certificate to renew")), - src/npm_mcp/server.py:467-468 (handler)The MCP tool handler dispatch logic for `renew_certificate`, which calls the `NPMClient` method.
elif name == "renew_certificate": return _model_response(await npm_client.renew_certificate(arguments["certificate_id"]))