Skip to main content
Glama

Create Application Environment Variable

coolify_create_app_env

Adds an environment variable to a Coolify application with configurable runtime, build-time, and preview flags. Secrets must originate from BWS.

Instructions

Add a new environment variable to an application. Remember: per infra standards, secrets should originate from BWS — this tool sets them in Coolify.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
keyYesVariable name (e.g. DATABASE_URL)
uuidYesApplication UUID
valueYesVariable value
revealNoReveal redacted secret values in the response (default false; the call is audited)
instanceYesREQUIRED — which Coolify instance to mutate: 'prod' (Hetzner VPS) or 'dev' (local OrbStack VM). No default: state the target explicitly so a write never lands on prod by accident.
is_previewNoOnly for preview deployments (default: false)
is_runtimeNoAvailable at runtime (default: true)
is_buildtimeNoAvailable during build phase (default: false). Use false for runtime-only vars like secrets.
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations indicate a write operation and no idempotency. The description adds safety context by requiring explicit instance specification to avoid accidental writes to production. It does not detail rate limits or auth, but the annotations already cover the basic behavioral profile.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two sentences with no redundancy. The first sentence states the purpose, the second adds essential guidelines. Every word earns its place.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a tool with no output schema and 8 parameters, the description is reasonably complete. It might have mentioned that env var changes take effect on redeploy, but the core information is present.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

All 8 parameters have schema descriptions (100% coverage), so the tool description adds minimal new meaning. The note about secrets origins adds indirect value for the 'value' parameter, but overall the schema does the heavy lifting.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the verb 'Add' and the resource 'new environment variable to an application', distinguishing it from sibling tools like coolify_bulk_create_app_envs. The additional note about secrets does not obscure the primary purpose.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides clear context: it is for single env var creation and advises against using for secrets (use BWS). However, it does not explicitly state when to use this tool over alternatives like the bulk versions.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

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/AlobarQuest/infraops-mcp-server'

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