Skip to main content
Glama

Update an application version

edgegap_update_app_version
DestructiveIdempotent

Modify settings on an existing Edgegap app version—image tag, active state, resources, ports, env vars, caching, or restart policy—without creating a new version.

Instructions

Change settings on an existing version instead of creating a new one: point it at a new image tag, turn it on or off, change max_duration, set the registry login (the API cannot add registry_profile "Edgegap" to an existing version: create a new version for that), turn on image caching (force_cache: Edgegap pre-loads the image so deployments start faster), set the restart policy, or set the shutdown grace period. Only the fields you pass change. Deployments already running keep their old settings; new deployments get the new ones. Same refusals as edgegap_create_app_version: "latest" or empty tags, a docker_image holding a host or tag, and the API token in the registry login or env vars. ports and env REPLACE the version's whole list (per the API): read the current ones with edgegap_get_app_version and pass every port or variable to keep; secret env values are not readable, so get them from the developer. Refused, with nothing sent, for a registry login or env value equal to the API's "This value is set and encrypted" placeholder; leave the registry login out to keep it. cpu_units and memory_mb change together (both or neither); to try other resources for one deployment only, override them in edgegap_deploy instead.

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": {
      "application": "<application>",
      "version": "<version>"
    },
    "name": "edgegap_update_app_version"
  }
}

Input Schema

NameRequiredDescriptionDefault
envNoREPLACES every env var on the version; [] removes them all. Values are never echoed back.
portsNoREPLACES every port on the version. Include the ports to keep, not only new ones.
dry_runNoShow the exact request (method, host, path, body) with secrets masked, and send nothing. Local checks still run. Use it to confirm a billable or destructive call before making it.
versionYesVersion name to change.
cpu_unitsNoNew vCPU units for later deployments, with memory_mb. 1024 = 1 vCPU.
is_activeNofalse blocks new deployments of this version.
memory_mbNoNew memory in MB for later deployments, with cpu_units. At most 2x cpu_units.
docker_tagNoNew image tag: a build ID, commit SHA or timestamp.
applicationYesApplication name.
force_cacheNoPre-load the image on Edgegap so deployments start faster.
docker_imageNoImage path, e.g. "my-org-abc123/my-game-server".
verify_imageNoCheck Edgegap can pull the image when saving.
registry_tokenNoRegistry password or token. Never echoed back.
restart_policyNoWhat Edgegap does when the server process exits. "never" for match servers that stop themselves (an exit or crash ends the deployment instead of restarting a half-played match); "on_failure" restarts only after a crash (persistent servers); "always" (the API default) restarts after any exit.
endpoint_storageNoEndpoint Storage name (edgegap_list_endpoint_storage) to export container logs to when deployments end.
docker_repositoryNoRegistry host, e.g. "registry.edgegap.com".
registry_usernameNo
max_duration_minutesNoAuto-stop after this many minutes. Capped by EDGEGAP_MAX_DURATION_MINUTES.
termination_grace_period_secondsNoSeconds between SIGTERM and SIGKILL when a deployment stops.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.16.0
    • addedInput schema / properties / restart_policy
      Added value: +{
      +  "description": "What Edgegap does when the server process exits. \"never\" for match servers that stop themselves (an exit or crash ends the deployment instead of restarting a half-played match); \"on_failure\" restarts only after a crash (persistent servers); \"always\" (the API default) restarts after any exit.",
      +  "enum": [
      +    "never",
      +    "on_failure",
      +    "always"
      +  ],
      +  "type": "string"
      +}
  2. Changed3 schema fields changedv0.15.1
    • addedInput schema / properties / cpu_units
      Added value: +{
      +  "description": "New vCPU units for later deployments, with memory_mb. 1024 = 1 vCPU.",
      +  "maximum": 9007199254740991,
      +  "minimum": 256,
      +  "type": "integer"
      +}
    • addedInput schema / properties / endpoint_storage
      Added value: +{
      +  "description": "Endpoint Storage name (edgegap_list_endpoint_storage) to export container logs to when deployments end.",
      +  "minLength": 1,
      +  "type": "string"
      +}
    • addedInput schema / properties / memory_mb
      Added value: +{
      +  "description": "New memory in MB for later deployments, with cpu_units. At most 2x cpu_units.",
      +  "maximum": 9007199254740991,
      +  "minimum": 256,
      +  "type": "integer"
      +}
  3. Changed2 schema fields changedv0.12.0
    • addedInput schema / properties / env
      Added value: +{
      +  "description": "REPLACES every env var on the version; [] removes them all. Values are never echoed back.",
      +  "items": {
      +    "properties": {
      +      "key": {
      +        "type": "string"
      +      },
      +      "value": {
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "key",
      +      "value"
      +    ],
      +    "type": "object"
      +  },
      +  "type": "array"
      +}
    • addedInput schema / properties / ports
      Added value: +{
      +  "description": "REPLACES every port on the version. Include the ports to keep, not only new ones.",
      +  "items": {
      +    "properties": {
      +      "name": {
      +        "description": "Label, e.g. \"gameport\".",
      +        "type": "string"
      +      },
      +      "port": {
      +        "description": "Port the server listens on.",
      +        "maximum": 59999,
      +        "minimum": 1,
      +        "type": "integer"
      +      },
      +      "protocol": {
      +        "description": "One of UDP, TCP, TCP/UDP, HTTP, HTTPS, WS, WSS. Most game servers use UDP.",
      +        "type": "string"
      +      },
      +      "tls_upgrade": {
      +        "description": "wss:// / https:// for browser clients. WS and HTTP ports only.",
      +        "type": "boolean"
      +      },
      +      "to_check": {
      +        "description": "Readiness check on this port. Default true.",
      +        "type": "boolean"
      +      }
      +    },
      +    "required": [
      +      "port",
      +      "protocol"
      +    ],
      +    "type": "object"
      +  },
      +  "minItems": 1,
      +  "type": "array"
      +}
  4. Addedv0.7.1

TDQS

A4.5/5.0
Behavior3/5

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

Annotations already declare destructiveHint=true, idempotentHint=true, and openWorldHint=true, so the bar is lower, and the description still adds real context: only passed fields change, running deployments keep old settings, and the ports/env replacement is destructive to omitted entries. That is meaningful disclosure beyond the annotations, though return behavior and failure handling for the write itself are not described.

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?

Front-loaded with the core purpose and mutation scope, and every sentence carries operative information. It is dense with nested parentheses and long clause lists, which costs some readability, and the ports/env replacement rule is stated twice (in prose and again in the schema descriptions).

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

Completeness5/5

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

For a 19-parameter destructive mutation with no output schema, the description covers the gaps an agent would otherwise hit: partial-update semantics, replacement vs merge behavior, refusal cases inherited from create, encrypted-value handling, and per-deployment overrides in a sibling tool. Nothing essential for a correct call is missing.

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

Parameters5/5

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

Schema coverage is 95%, so the baseline is 3, but the description goes beyond it with cross-parameter constraints the schema cannot express: cpu_units and memory_mb must change together (both or neither), ports and env replace the whole list, and registry_profile cannot be set at all here. It also explains why force_cache helps and that a 'set and encrypted' placeholder is rejected before any request is sent.

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?

Opens with a specific verb and resource plus an explicit contrast: 'Change settings on an existing version instead of creating a new one'. The sibling edgegap_create_app_version is named outright, so the agent can route between create and update without opening either schema.

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

Usage Guidelines5/5

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

Gives when-to-use (modify an existing version), when-not (registry_profile 'Edgegap' cannot be added to an existing version — create a new one), and a concrete alternative for a different need (per-deployment resource overrides belong in edgegap_deploy). It also points at edgegap_get_app_version as the prerequisite read for ports/env.

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