Skip to main content
Glama

create_application_env

Add environment variables to applications in Coolify to configure runtime settings, manage secrets, and control deployment behavior.

Instructions

Create an environment variable for an application

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
uuidYesApplication UUID
keyYesEnvironment variable key
valueNoEnvironment variable value
is_previewNoUse in preview deployments
is_literalNoIs literal value
is_multilineNoIs multiline value

Implementation Reference

  • The switch case handler for the 'create_application_env' tool. It validates required parameters 'uuid' and 'key', then sends a POST request to the Coolify API endpoint `/applications/{uuid}/envs` with the provided arguments to create the environment variable.
    case 'create_application_env': requireParam(args, 'uuid'); requireParam(args, 'key'); return client.post(`/applications/${args.uuid}/envs`, args);
  • The input schema definition for the 'create_application_env' tool, specifying parameters like application UUID, env key (required), value, and optional flags for preview, literal, and multiline values.
    name: 'create_application_env', description: 'Create an environment variable for an application', inputSchema: { type: 'object', properties: { uuid: { type: 'string', description: 'Application UUID' }, key: { type: 'string', description: 'Environment variable key' }, value: { type: 'string', description: 'Environment variable value' }, is_preview: { type: 'boolean', description: 'Use in preview deployments', default: false }, is_literal: { type: 'boolean', description: 'Is literal value', default: false }, is_multiline: { type: 'boolean', description: 'Is multiline value', default: false } }, required: ['uuid', 'key'] } }, {

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