Skip to main content
Glama

Update Environment

gitlab_update_environment

Modify an existing GitLab environment's external URL, tier, description, Kubernetes settings, and auto-stop behavior; environment names cannot be changed.

Instructions

Update an environment's external URL, tier, description, Kubernetes settings, or auto-stop behavior. GitLab does not allow renaming environments.

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": {
      "environment_id": "<environment_id>"
    },
    "name": "gitlab_update_environment"
  }
}

Input Schema

NameRequiredDescriptionDefault
tierNo
project_idNo
descriptionNo
external_urlNo
environment_idYes
cluster_agent_idNo
auto_stop_settingNo
flux_resource_pathNo
kubernetes_namespaceNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.7.0

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, destructiveHint=false, openWorldHint=true, idempotentHint=false, so the safety profile is covered structurally. The description adds one genuinely useful behavioral constraint (no renaming) that annotations cannot convey, but says nothing about required scopes, whether partial updates overwrite unset fields, or why the call is non-idempotent.

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, with the scope of the mutation front-loaded before the renaming caveat. Nothing is repeated from the name or title.

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

Completeness3/5

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

For a 9-parameter mutation tool with no schema descriptions and no output schema, the description gives a workable map of what can be changed but leaves the three Kubernetes parameters vague and the two enums unexplained. An agent could call it, but would likely guess at field formats and enum meaning.

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 description coverage is 0% across 9 parameters, so the description must compensate, and it only partly does: it names external_url, tier, description, and auto_stop_setting conceptually and lumps cluster_agent_id, kubernetes_namespace, and flux_resource_path under 'Kubernetes settings'. It adds no format rules (external_url must be http(s)), no enum semantics for tier or auto_stop_setting ('always' vs 'with_action'), and never mentions project_id or environment_id.

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?

The description states a specific verb ('Update') and resource ('environment') and enumerates the mutable facets: external URL, tier, description, Kubernetes settings, auto-stop behavior. That is enough to separate it from the create/get/delete/stop siblings, though no sibling is named explicitly.

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 enumeration of updatable fields, and there is one explicit exclusion ('GitLab does not allow renaming environments') that steers the agent away from an impossible operation. There is no guidance on prerequisites, permissions, or when to prefer gitlab_stop_environment for auto-stop-related changes.

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

Deploy Server

Other Tools