env_vars
List, create, update, bulk-update, and delete environment variables for Coolify applications or services using resource UUIDs to manage deployment configuration.
Instructions
Manage environment variables for applications or services: list, create, update, update_bulk, delete. KNOWN ISSUE: Service env var create may return 500 due to Coolify API bug. Workaround: update docker_compose_raw via services update instead. NOTE: is_build_time is only supported for applications, not services.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"action": "<action>",
"resource": "<resource>",
"uuid": "<uuid>"
},
"name": "env_vars"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | No | ||
| data | No | Bulk update data. Format: { data: [{ key, value, is_preview, is_literal, is_multiline, is_shown_once }] } | |
| uuid | Yes | Resource UUID | |
| value | No | ||
| action | Yes | ||
| env_uuid | No | Env var UUID (for delete) | |
| resource | Yes | Resource type | |
| is_literal | No | ||
| is_preview | No | Whether this env var is for preview deployments | |
| is_multiline | No | ||
| is_build_time | No | Only for applications. NOT supported for services — sending it causes errors. | |
| is_shown_once | No |