Skip to main content
Glama

Get one application version

edgegap_get_app_version
Read-only

Read a full application version's configuration—image, resources, ports, caching, verification, restart policy, log endpoint storage, and env var names—to check behavior before updating or deploying.

Instructions

Read one version in full: image, resources, ports, max_duration, whether image caching (force_cache) and verify_image are on, restart policy, the Endpoint Storage its logs go to, and the names of its env vars (values are never shown). Use it before edgegap_update_app_version or edgegap_deploy to check what a version will do.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "edgegap_get_app_version"
  }
}

Input Schema

NameRequiredDescriptionDefault
versionNoVersion name, as listed by edgegap_list_app_versions. Required; without it the versions are listed.
applicationNoApplication name. Required; without it the applications are listed.

Output Schema

NameRequiredDescriptionDefault
envNo
nameNo
imageNo
portsNo
activeNo
warningNo
auto_stopNo
cpu_unitsNo
memory_mbNo
applicationNo
force_cacheNo
verify_imageNo
restart_policyNo
caching_percentNo
endpoint_storageNo
max_duration_minutesNo
auto_stop_after_minutesNo
registry_credentials_setNo
termination_grace_period_secondsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changedv0.19.5
    • changedInput schema / properties / application / description
      Previous value: -"Application name."New value: +"Application name. Required; without it the applications are listed."
    • changedInput schema / properties / version / description
      Previous value: -"Version name, as listed by edgegap_list_app_versions."New value: +"Version name, as listed by edgegap_list_app_versions. Required; without it the versions are listed."
    • removedInput schema / required
      Removed value: -[
      -  "application",
      -  "version"
      -]
  2. Changed1 schema field changedv0.15.1
    • addedOutput schema / properties / endpoint_storage
      Added value: +{
      +  "type": "string"
      +}
  3. Changed1 schema field changedv0.12.0
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "$schema": "http://json-schema.org/draft-07/schema#",
      +  "additionalProperties": {},
      +  "properties": {
      +    "active": {
      +      "type": "boolean"
      +    },
      +    "application": {
      +      "type": "string"
      +    },
      +    "auto_stop": {
      +      "type": "string"
      +    },
      +    "auto_stop_after_minutes": {
      +      "type": "number"
      +    },
      +    "caching_percent": {
      +      "type": "number"
      +    },
      +    "cpu_units": {
      +      "type": "number"
      +    },
      +    "env": {
      +      "items": {
      +        "additionalProperties": {},
      +        "properties": {
      +          "hidden": {
      +            "type": "boolean"
      +          },
      +          "key": {
      +            "type": "string"
      +          }
      +        },
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    "force_cache": {
      +      "type": "boolean"
      +    },
      +    "image": {
      +      "type": "string"
      +    },
      +    "max_duration_minutes": {
      +      "type": "number"
      +    },
      +    "memory_mb": {
      +      "type": "number"
      +    },
      +    "name": {
      +      "type": "string"
      +    },
      +    "ports": {
      +      "items": {
      +        "additionalProperties": {},
      +        "properties": {
      +          "name": {
      +            "type": "string"
      +          },
      +          "port": {
      +            "type": "number"
      +          },
      +          "protocol": {
      +            "type": "string"
      +          },
      +          "tls_upgrade": {
      +            "type": "boolean"
      +          }
      +        },
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    "registry_credentials_set": {
      +      "type": "boolean"
      +    },
      +    "restart_policy": {
      +      "type": "string"
      +    },
      +    "termination_grace_period_seconds": {
      +      "type": "number"
      +    },
      +    "verify_image": {
      +      "type": "boolean"
      +    },
      +    "warning": {
      +      "type": "string"
      +    }
      +  },
      +  "type": "object"
      +}
  4. Addedv0.7.1

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false and openWorldHint=true, so the safety profile is covered. The description adds genuinely non-structured facts: that env var *names* are returned but values are 'never shown' (a redaction guarantee an agent would otherwise have to discover empirically), and it previews the full field set including the log destination Endpoint Storage. It does not mention error behavior for a nonexistent version/application, which is the main residual gap.

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. The payload enumeration is front-loaded so the agent learns the scope of the read before the usage sentence, and the usage sentence ends with a purpose clause that justifies the call.

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?

An output schema exists, so the description need not explain return values, yet it still tells the agent what classes of data come back and what is deliberately withheld. With annotations covering safety and the schema covering both parameters, the only unaddressed area is failure behavior (missing version/application, auth), which is minor for a read-only lookup.

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 100%: both parameters are documented in the schema, including the fallback behavior ('without it the versions are listed'). The description adds nothing about the two parameters, so it earns the baseline 3 rather than credit for extra semantic meaning.

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 opens with a specific verb and resource ('Read one version in full') and then enumerates exactly what 'in full' means: image, resources, ports, max_duration, force_cache, verify_image, restart policy, Endpoint Storage, env var names. That enumeration makes it unmistakably distinct from edgegap_list_app_versions and from the update/create siblings, which only manipulate a subset of those fields.

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?

It gives an explicit when-to-use: 'Use it before edgegap_update_app_version or edgegap_deploy to check what a version will do,' naming two concrete alternatives and the decision point that selects this tool. It stops short of stating when not to use it (e.g., listing all versions, or reading a deployment rather than a version definition), so the guidance is clear but not exhaustive.

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