get_certificate
Retrieve SSL certificate details by ID from Nginx Proxy Manager for managing secure web proxy configurations.
Instructions
Get a specific SSL certificate by ID
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| certificate_id | Yes | The ID of the certificate |
Implementation Reference
- src/npm_mcp/client.py:184-187 (handler)The core handler logic that executes the API call to fetch a certificate.
async def get_certificate(self, cert_id: int) -> Certificate: cert_id = _validate_int_id(cert_id, "certificate_id") response = await self._request("GET", f"/api/nginx/certificates/{cert_id}") return Certificate(**response.json()) - src/npm_mcp/server.py:460-461 (handler)The MCP tool handler in the server that invokes the client's get_certificate method.
elif name == "get_certificate": return _model_response(await npm_client.get_certificate(arguments["certificate_id"])) - src/npm_mcp/server.py:209-209 (registration)The tool definition/registration in the MCP server.
Tool(name="get_certificate", description="Get a specific SSL certificate by ID", inputSchema=_id_schema("certificate_id", "The ID of the certificate")),