Skip to main content
Glama

restart_database

Restart a database in Coolify to resolve issues or apply changes. Provide the database UUID and confirmation when required for safety.

Instructions

Restart a database. When COOLIFY_REQUIRE_CONFIRM=true, requires confirm: true parameter.

Input Schema

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

Implementation Reference

  • The core handler logic for the 'restart_database' tool. It requires a 'uuid' parameter for the database and calls the Coolify API's restart endpoint.
    case 'restart_database':
      requireParam(args, 'uuid');
      return client.get(`/databases/${args.uuid}/restart`);
  • The input schema and metadata for the 'restart_database' tool, defining parameters uuid (required) and confirm (optional). This is part of the allToolDefinitions array used for MCP tool registration.
    {
      name: 'restart_database',
      description: 'Restart a database. When COOLIFY_REQUIRE_CONFIRM=true, requires confirm: true parameter.',
      inputSchema: {
        type: 'object',
        properties: {
          uuid: { type: 'string', description: 'Database UUID' },
          confirm: { type: 'boolean', description: 'Confirm the dangerous operation (required when COOLIFY_REQUIRE_CONFIRM=true)' }
        },
        required: ['uuid']
      }
    },
  • 'restart_database' is listed as a dangerous operation, which may require confirmation based on COOLIFY_REQUIRE_CONFIRM environment variable.
    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 'restart_database' dangerous operation.
    restart_database: 'This will restart the database, causing brief downtime.',
  • src/index.ts:36-38 (registration)
    MCP server registers all tools (including 'restart_database') by providing the list from getToolDefinitions() in response to ListTools requests.
    this.server.setRequestHandler(ListToolsRequestSchema, async () => ({
      tools: getToolDefinitions()
    }));
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