Skip to main content
Glama

get_private_key

Retrieve a private key using its UUID to manage Coolify PaaS instances, enabling secure access for application deployment and server operations.

Instructions

Get a private key by UUID

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
uuidYesPrivate key UUID

Implementation Reference

  • The core handler logic for the 'get_private_key' tool. It validates the presence of the 'uuid' parameter and calls the CoolifyClient to fetch the private key details from the API endpoint `/security/keys/{uuid}`.
    case 'get_private_key': requireParam(args, 'uuid'); return client.get(`/security/keys/${args.uuid}`);
  • The input schema definition and metadata for the 'get_private_key' tool, specifying that a 'uuid' string parameter is required.
    { name: 'get_private_key', description: 'Get a private key by UUID', inputSchema: { type: 'object', properties: { uuid: { type: 'string', description: 'Private key UUID' } }, required: ['uuid'] } },
  • src/index.ts:37-37 (registration)
    The MCP server registers all tools, including 'get_private_key', by returning the tool definitions (schemas) in response to ListTools requests.
    tools: getToolDefinitions()
  • src/index.ts:57-57 (registration)
    The MCP server dispatches tool calls to the shared handleTool function, which routes 'get_private_key' to its specific case handler.
    const result = await handleTool(this.client, name, args || {});
  • Generic helper function used by the 'get_private_key' handler to validate required parameters.
    function requireParam(args: ToolArgs, param: string): void { if (!args[param]) { throw new McpError(ErrorCode.InvalidParams, `${param} is required`); } }
Install Server

Other Tools

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/kof70/coolify-mcp-server'

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