Skip to main content
Glama

cancel_deployment

Stop an active deployment in Coolify by providing its UUID. Use this tool to halt deployments when needed, with optional confirmation for safety.

Instructions

Cancel a deployment. When COOLIFY_REQUIRE_CONFIRM=true, requires confirm: true parameter.

Input Schema

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

Implementation Reference

  • The switch case in handleTool function that implements cancel_deployment by requiring 'uuid' param and POSTing to Coolify API /deployments/{uuid}/cancel.
    case 'cancel_deployment':
      requireParam(args, 'uuid');
      return client.post(`/deployments/${args.uuid}/cancel`);
  • Input schema and metadata definition for the cancel_deployment tool, part of the allToolDefinitions array used for MCP tool registration.
      name: 'cancel_deployment',
      description: 'Cancel a deployment. When COOLIFY_REQUIRE_CONFIRM=true, requires confirm: true parameter.',
      inputSchema: {
        type: 'object',
        properties: {
          uuid: { type: 'string', description: 'Deployment UUID' },
          confirm: { type: 'boolean', description: 'Confirm the dangerous operation (required when COOLIFY_REQUIRE_CONFIRM=true)' }
        },
        required: ['uuid']
      }
    },
  • src/index.ts:36-38 (registration)
    MCP server request handler for listing tools, which includes cancel_deployment via getToolDefinitions() from tools/definitions.ts
    this.server.setRequestHandler(ListToolsRequestSchema, async () => ({
      tools: getToolDefinitions()
    }));
  • Helper array classifying 'cancel_deployment' as dangerous operation, triggering confirmation check in handlers.ts
    // Dangerous operations that require confirmation when COOLIFY_REQUIRE_CONFIRM=true
    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'
    ];
  • Danger warning message for cancel_deployment used when confirmation is required.
      cancel_deployment: 'This will cancel the deployment in progress.'
    };
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