Skip to main content
Glama

stop_application

Gracefully shut down a running application container in Coolify by providing its UUID to stop the application.

Instructions

Stop a running application. This will gracefully shut down the application container.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
uuidYesUUID of the application to stop. Get this from list_applications.

Implementation Reference

  • The handler for the 'stop_application' tool. It extracts the application UUID from the request parameters and makes a GET request to the Coolify API endpoint `/applications/{uuid}/stop` to gracefully shut down the application container. Returns the API response as formatted text content.
    case 'stop_application':
      const stopAppResponse = await this.axiosInstance.get(`/applications/${request.params.arguments?.uuid}/stop`);
      return {
        content: [{ type: 'text', text: JSON.stringify(stopAppResponse.data, null, 2) }]
      };
  • src/index.ts:893-928 (registration)
    Registration of the 'stop_application' tool in the ListTools response. Defines the tool name, description, input schema requiring a 'uuid' parameter, examples, and additional workflow/related tools information.
    {
      name: 'stop_application',
      description: 'Stop a running application. This will gracefully shut down the application container.',
      inputSchema: {
        type: 'object',
        properties: {
          uuid: {
            type: 'string',
            description: 'UUID of the application to stop. Get this from list_applications.',
            pattern: '^[a-zA-Z0-9]+$'
          }
        },
        required: ['uuid'],
        examples: [
          {
            uuid: 'sg4gsws44wksg040o4ok80ww'
          }
        ],
        additionalInfo: {
          workflow: [
            '1. Get the application UUID from list_applications',
            '2. Stop the application',
            '3. Verify the application has stopped'
          ],
          relatedTools: [
            'list_applications - Get UUIDs of available applications',
            'start_application - Restart the application when needed'
          ],
          notes: [
            'Stopping an application will make it inaccessible',
            'Application data persists unless explicitly removed',
            'Use restart_application if you plan to start again immediately'
          ]
        }
      }
    },
  • Input schema definition for the 'stop_application' tool, specifying an object with a required 'uuid' string parameter matching the pattern '^[a-zA-Z0-9]+$', along with examples and custom additionalInfo.
    inputSchema: {
      type: 'object',
      properties: {
        uuid: {
          type: 'string',
          description: 'UUID of the application to stop. Get this from list_applications.',
          pattern: '^[a-zA-Z0-9]+$'
        }
      },
      required: ['uuid'],
      examples: [
        {
          uuid: 'sg4gsws44wksg040o4ok80ww'
        }
      ],
      additionalInfo: {
        workflow: [
          '1. Get the application UUID from list_applications',
          '2. Stop the application',
          '3. Verify the application has stopped'
        ],
        relatedTools: [
          'list_applications - Get UUIDs of available applications',
          'start_application - Restart the application when needed'
        ],
        notes: [
          'Stopping an application will make it inaccessible',
          'Application data persists unless explicitly removed',
          'Use restart_application if you plan to start again immediately'
        ]
      }
    }

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