Skip to main content
Glama

delete_server

Remove a server from Coolify's self-hosted PaaS platform using its UUID, with optional confirmation for safety when required.

Instructions

Delete a server. When COOLIFY_REQUIRE_CONFIRM=true, requires confirm: true parameter.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
uuidYesServer UUID
confirmNoConfirm the dangerous operation (required when COOLIFY_REQUIRE_CONFIRM=true)

Implementation Reference

  • The core handler logic for the 'delete_server' tool. It requires a 'uuid' parameter and issues a DELETE request to the Coolify API endpoint `/servers/${uuid}` using the CoolifyClient.
    case 'delete_server': requireParam(args, 'uuid'); return client.delete(`/servers/${args.uuid}`);
  • The tool schema definition including name, description, and input schema (requires 'uuid'; optional 'confirm' for dangerous ops). Part of the allToolDefinitions array exported via getToolDefinitions().
    { name: 'delete_server', description: 'Delete a server. When COOLIFY_REQUIRE_CONFIRM=true, requires confirm: true parameter.', inputSchema: { type: 'object', properties: { uuid: { type: 'string', description: 'Server UUID' }, confirm: { type: 'boolean', description: 'Confirm the dangerous operation (required when COOLIFY_REQUIRE_CONFIRM=true)' } }, required: ['uuid'] } },
  • src/index.ts:36-38 (registration)
    Registration of all tools (including 'delete_server') via the MCP server's listTools handler, which returns getToolDefinitions() containing the schema.
    this.server.setRequestHandler(ListToolsRequestSchema, async () => ({ tools: getToolDefinitions() }));
  • 'delete_server' is listed as a dangerous operation, triggering confirmation checks in handleTool.
    export const DANGEROUS_OPERATIONS = [ 'stop_application', 'restart_application', 'stop_service', 'restart_service', 'stop_database', 'restart_database', 'deploy_application', 'deploy', 'execute_command', 'delete_server', 'delete_project', 'delete_environment', 'delete_application', 'delete_service', 'delete_database', 'delete_private_key', 'delete_github_app', 'cancel_deployment' ];
  • Warning message for the 'delete_server' tool, used when confirmation is required.
    delete_server: 'This will permanently delete the server and all its resources.',

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