Skip to main content
Glama

restart_service

Restart a Coolify service to apply configuration changes or resolve operational issues by stopping and starting it using its UUID.

Instructions

Restart a service by stopping and starting it again. Useful for applying configuration changes or recovering from issues.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
uuidYesUUID of the service to restart. Get this from list_services.

Implementation Reference

  • The handler for the 'restart_service' tool. It extracts the service UUID from the request arguments and makes a GET request to the Coolify API endpoint `/services/{uuid}/restart`. The response from the API is then formatted and returned as tool content.
    case 'restart_service': const restartServiceResponse = await this.axiosInstance.get(`/services/${request.params.arguments?.uuid}/restart`); return { content: [{ type: 'text', text: JSON.stringify(restartServiceResponse.data, null, 2) }] };
  • The input schema definition for the 'restart_service' tool, specifying that a 'uuid' parameter (string) is required. Includes examples, workflow instructions, related tools, and notes.
    inputSchema: { type: 'object', properties: { uuid: { type: 'string', description: 'UUID of the service to restart. Get this from list_services.', pattern: '^[a-zA-Z0-9]+$' } }, required: ['uuid'], examples: [ { uuid: 'sg4gsws44wksg040o4ok80ww' } ], additionalInfo: { workflow: [ '1. Get the service UUID from list_services', '2. Restart the service', '3. Monitor the service status' ], relatedTools: [ 'list_services - Get UUIDs of available services', 'start_service - Start the service if restart fails', 'stop_service - Stop the service if restart hangs' ], notes: [ 'Restart performs a graceful stop and start', 'Service will be briefly unavailable during restart', 'Useful for applying configuration changes', 'Monitor service after restart to ensure proper operation' ] }
  • src/index.ts:724-760 (registration)
    Registration of the 'restart_service' tool in the list of tools returned by ListToolsRequestSchema. Includes name, description, and references the input schema.
    { name: 'restart_service', description: 'Restart a service by stopping and starting it again. Useful for applying configuration changes or recovering from issues.', inputSchema: { type: 'object', properties: { uuid: { type: 'string', description: 'UUID of the service to restart. Get this from list_services.', pattern: '^[a-zA-Z0-9]+$' } }, required: ['uuid'], examples: [ { uuid: 'sg4gsws44wksg040o4ok80ww' } ], additionalInfo: { workflow: [ '1. Get the service UUID from list_services', '2. Restart the service', '3. Monitor the service status' ], relatedTools: [ 'list_services - Get UUIDs of available services', 'start_service - Start the service if restart fails', 'stop_service - Stop the service if restart hangs' ], notes: [ 'Restart performs a graceful stop and start', 'Service will be briefly unavailable during restart', 'Useful for applying configuration changes', 'Monitor service after restart to ensure proper operation' ] } }

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/wrediam/coolify-mcp-server'

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