Skip to main content
Glama

Create Service Environment Variable

coolify_create_service_env

Add environment variables to Coolify docker-compose services with options for buildtime, runtime, preview, and instance targeting.

Instructions

Add a new environment variable to a Coolify service (Flavor C / docker-compose apps). Use this for multi-container compose services — NOT for single-container applications.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
keyYesVariable name (e.g. DATABASE_URL)
uuidYesService 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)
Behavior4/5

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

Annotations indicate write, non-idempotent, non-destructive. Description adds key safety context via instance parameter explanation ('no default... so a write never lands on prod by accident'). No contradictions.

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, zero filler: first defines purpose, second gives usage boundaries. 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?

High schema coverage and clear purpose. Lacks description of return value or post-creation behavior, which would be helpful given no output schema. Otherwise complete.

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?

Schema has 100% coverage with detailed parameter descriptions. The tool description adds no additional parameter-level info beyond 'multi-container compose services' context, which is minimal.

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?

Description clearly states the verb 'Add' and resource 'environment variable to a Coolify service', explicitly scopes to multi-container compose services (Flavor C), and distinguishes from single-container applications.

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?

Explicitly says 'Use this for multi-container compose services — NOT for single-container applications', providing clear when-to and when-not-to guidance. Could explicitly name alternative tool (e.g., coolify_create_app_env) but still strong.

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