Skip to main content
Glama

restart_service

Restart a service in Coolify by providing its UUID. Use confirm parameter when COOLIFY_REQUIRE_CONFIRM is enabled for safety.

Instructions

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

Input Schema

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

Implementation Reference

  • The handler implementation for the 'restart_service' tool within the main switch statement in handleTool. It validates the 'uuid' parameter and calls the Coolify API GET /services/{uuid}/restart to restart the service.
    case 'restart_service': requireParam(args, 'uuid'); return client.get(`/services/${args.uuid}/restart`);
  • The tool definition and input schema for 'restart_service', including name, description, and JSON schema requiring 'uuid' and optionally 'confirm' for safety.
    name: 'restart_service', description: 'Restart a service. When COOLIFY_REQUIRE_CONFIRM=true, requires confirm: true parameter.', inputSchema: { type: 'object', properties: { uuid: { type: 'string', description: 'Service UUID' }, confirm: { type: 'boolean', description: 'Confirm the dangerous operation (required when COOLIFY_REQUIRE_CONFIRM=true)' } }, required: ['uuid'] } },
  • Warning message for the 'restart_service' tool used in confirmation prompts.
    restart_service: 'This will restart the service, causing brief downtime.',
  • The DANGEROUS_OPERATIONS array listing 'restart_service' as a dangerous operation requiring confirmation check.
    // 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' ];

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