Skip to main content
Glama

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

NameRequiredDescriptionDefault
keyNo
dataNoBulk update data. Format: { data: [{ key, value, is_preview, is_literal, is_multiline, is_shown_once }] }
uuidYesResource UUID
valueNo
actionYes
env_uuidNoEnv var UUID (for delete)
resourceYesResource type
is_literalNo
is_previewNoWhether this env var is for preview deployments
is_multilineNo
is_build_timeNoOnly for applications. NOT supported for services — sending it causes errors.
is_shown_onceNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.1

TDQS

B3.1/5.0
Behavior3/5

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

With no annotations, the description carries the full behavioral burden. It does disclose a real failure mode (service create returning 500) plus a workaround, and a cross-resource constraint on is_build_time, which is valuable non-obvious context. However it says nothing about whether delete is irreversible, whether update merges or replaces values, whether secrets are echoed back, or how list handles pagination.

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

Conciseness4/5

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

Three short, front-loaded sentences with the action set first and the operational warnings immediately after; nothing is padded. Minor redundancy in restating the is_build_time rule that the schema already documents, but it costs little.

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

Completeness2/5

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

For a 12-parameter action-dispatched mutation tool with no annotations and no output schema, the definition should map parameters to actions and describe mutation/return behavior. It covers the known API bug well but leaves the per-action parameter contract almost entirely undocumented, which is the largest gap given the tool's complexity.

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

Parameters2/5

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

Schema coverage is only 50% across 12 parameters, so the description needs to compensate and largely does not. The is_build_time constraint it restates is already present verbatim in the schema, and it never explains the uuid vs env_uuid distinction, which parameters are required per action (e.g. key/value for create, env_uuid for delete, data for update_bulk).

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

Purpose4/5

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

Names the resource (environment variables) and enumerates the exact action set (list, create, update, update_bulk, delete), so an agent knows precisely what capability this tool exposes. It is stated as a single facade over both applications and services, which distinguishes it from the sibling resource tools, though it never explicitly contrasts itself with them.

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

Usage Guidelines3/5

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

Usage is implied by the action list and the resource enum, but there is no explicit when-to-use/when-not guidance and no statement of prerequisites. The one genuinely useful routing hint is the workaround telling the agent to use services update on docker_compose_raw when a service env var create fails, which is the closest thing to alternative-selection guidance in the text.

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