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
| Name | Required | Description | Default |
|---|---|---|---|
| uuid | Yes | Service UUID | |
| confirm | No | Confirm the dangerous operation (required when COOLIFY_REQUIRE_CONFIRM=true) |
Implementation Reference
- src/tools/handlers.ts:312-314 (handler)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`);
- src/tools/definitions.ts:556-566 (schema)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'] } },
- src/tools/definitions.ts:71-71 (helper)Warning message for the 'restart_service' tool used in confirmation prompts.restart_service: 'This will restart the service, causing brief downtime.',
- src/tools/definitions.ts:44-64 (helper)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' ];