coolify_stop_service
Stop a running service in Coolify by specifying its UUID to halt operations and conserve resources.
Instructions
Stop service
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| uuid | Yes | Service UUID |
Implementation Reference
- src/handlers.ts:402-418 (handler)Handler function serviceLifecycle that implements stop action for services by posting to /services/{uuid}/stop endpointasync serviceLifecycle(action: string, uuid: string) { if (!uuid) throw new Error('Service UUID is required for all lifecycle actions'); switch (action) { case 'start': const startResponse = await this.apiClient.post(`/services/${uuid}/start`); return { content: [{ type: 'text', text: JSON.stringify(startResponse.data, null, 2) }] }; case 'stop': const stopResponse = await this.apiClient.post(`/services/${uuid}/stop`); return { content: [{ type: 'text', text: JSON.stringify(stopResponse.data, null, 2) }] }; case 'restart': const restartResponse = await this.apiClient.post(`/services/${uuid}/restart`); return { content: [{ type: 'text', text: JSON.stringify(restartResponse.data, null, 2) }] }; default: throw new Error(`Unknown service lifecycle action: ${action}`); } }
- src/tools.ts:611-629 (schema)Tool definition and input schema for 'coolify_service_lifecycle' which includes 'stop' action for stopping services{ name: 'coolify_service_lifecycle', description: 'Service lifecycle management - start, stop, and restart services', inputSchema: { type: 'object', properties: { action: { type: 'string', enum: ['start', 'stop', 'restart'], description: 'Action to perform: start (start service), stop (stop service), restart (restart service)' }, uuid: { type: 'string', description: 'Service UUID (required for all actions)' }, }, required: ['action', 'uuid'], }, },
- src/index.ts:130-131 (registration)Wires the 'coolify_service_lifecycle' tool call to the serviceLifecycle handler methodcase 'coolify_service_lifecycle': return await this.handlers.serviceLifecycle(args.action, args.uuid);