Skip to main content
Glama

create_service

Create a new service in Coolify by specifying type, name, project, environment, and server to deploy applications or manage databases.

Instructions

Create a new service

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
typeYesService type
nameYesService name
project_uuidYesProject UUID
environment_nameYesEnvironment name
server_uuidYesServer UUID

Implementation Reference

  • Handler logic for 'create_service' tool: validates required parameters and sends POST request to /services endpoint.
    case 'create_service':
      requireParam(args, 'type');
      requireParam(args, 'name');
      requireParam(args, 'project_uuid');
      requireParam(args, 'environment_name');
      requireParam(args, 'server_uuid');
      return client.post('/services', args);
  • Tool registration in the allToolDefinitions array, including name, description, and input schema. Used by getToolDefinitions() for MCP tool list.
      name: 'create_service',
      description: 'Create a new service',
      inputSchema: {
        type: 'object',
        properties: {
          type: { type: 'string', description: 'Service type' },
          name: { type: 'string', description: 'Service name' },
          project_uuid: { type: 'string', description: 'Project UUID' },
          environment_name: { type: 'string', description: 'Environment name' },
          server_uuid: { type: 'string', description: 'Server UUID' }
        },
        required: ['type', 'name', 'project_uuid', 'environment_name', 'server_uuid']
      }
    },
  • TypeScript interface defining the input shape for create_service, matching the tool schema.
    export interface CreateServiceInput {
      type: string;
      name: string;
      project_uuid: string;
      environment_name: string;
      server_uuid: string;
      destination_uuid?: string;
    }
Install Server

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

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