Skip to main content
Glama

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
NameRequiredDescriptionDefault
uuidYesService UUID

Implementation Reference

  • Handler function serviceLifecycle that implements stop action for services by posting to /services/{uuid}/stop endpoint
    async 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}`); } }
  • 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 method
    case 'coolify_service_lifecycle': return await this.handlers.serviceLifecycle(args.action, args.uuid);

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/HowieDuhzit/CoolifyMCP'

If you have feedback or need assistance with the MCP directory API, please join our Discord server