Skip to main content
Glama

Validate a game server Dockerfile and port config

edgegap_validate_server_config
Read-onlyIdempotent

Validates a game server Dockerfile, ports, and resources against Edgegap requirements before build and push, catching image, engine, port, protocol, tag, and CPU/memory issues early.

Instructions

Check a game server Dockerfile and the ports/resources you intend to register against what Edgegap requires, BEFORE building and pushing. Catches the failures that otherwise only show up after a build, push, version and deploy: ARM or Windows images (Edgegap runs linux/amd64), Unreal running as root, missing Unity -batchmode -nographics, a server bound to localhost, EXPOSE ports that do not match the version ports, a protocol that does not match the netcode transport, the "latest" tag, and bad CPU/memory ratios. Pass the Dockerfile text (read it from disk first). If there is no Dockerfile yet, call edgegap_generate_dockerfile instead. Makes no API calls.

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_validate_server_config"
  }
}

Input Schema

NameRequiredDescriptionDefault
portsNoPorts you plan to pass to edgegap_create_app_version.
engineNoGame engine. Detected from the Dockerfile when omitted.
netcodeNoNetworking transport, to check the port protocol. Known: mirror-kcp, kcp, mirror-telepathy, telepathy, mirror-simpleweb, simpleweb, websocket, fishnet-tugboat, tugboat, netcode-for-gameobjects, ngo, unity-transport, utp, photon-fusion, litenetlib, enet, unreal-netdriver, godot-enet, godot-websocket.
cpu_unitsNo
memory_mbNo
docker_tagNo
dockerfileNoFull text of the Dockerfile.
docker_imageNo
docker_repositoryNo

Output Schema

NameRequiredDescriptionDefault
engineNo
errorsNo
verdictNo
warningsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.12.0
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "$schema": "http://json-schema.org/draft-07/schema#",
      +  "additionalProperties": {},
      +  "properties": {
      +    "engine": {
      +      "type": "string"
      +    },
      +    "errors": {
      +      "items": {
      +        "additionalProperties": {},
      +        "properties": {
      +          "code": {
      +            "type": "string"
      +          },
      +          "fix": {
      +            "type": "string"
      +          },
      +          "line": {
      +            "type": "number"
      +          },
      +          "message": {
      +            "type": "string"
      +          },
      +          "severity": {
      +            "type": "string"
      +          }
      +        },
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    "verdict": {
      +      "type": "string"
      +    },
      +    "warnings": {
      +      "items": {
      +        "additionalProperties": {},
      +        "properties": {
      +          "code": {
      +            "type": "string"
      +          },
      +          "fix": {
      +            "type": "string"
      +          },
      +          "line": {
      +            "type": "number"
      +          },
      +          "message": {
      +            "type": "string"
      +          },
      +          "severity": {
      +            "type": "string"
      +          }
      +        },
      +        "type": "object"
      +      },
      +      "type": "array"
      +    }
      +  },
      +  "type": "object"
      +}
  2. Changed1 schema field changedv0.5.2
    • addedInput schema / properties / ports / items / properties / tls_upgrade
      Added value: +{
      +  "description": "TLS Upgrade (wss/https) on a WS or HTTP port, for browser clients.",
      +  "type": "boolean"
      +}
  3. Addedv0.2.0

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false, idempotentHint=true, openWorldHint=false, so the safety profile is covered; the description still adds real value by enumerating the concrete failure classes it detects (ARM/Windows images, root Unreal, missing Unity flags, localhost binding, EXPOSE/version port mismatch, protocol/netcode mismatch, "latest" tag, bad CPU/memory ratios) and by stating it "Makes no API calls." The remaining gap is what happens on a failed validation — whether it returns a report of findings or errors out — though an output schema partly covers the return shape.

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?

Purpose and timing lead, the failure catalog occupies the informative middle, and the two routing/mode statements (generate_dockerfile alternative, no API calls) close. Four sentences with no restatement of the title and no filler.

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?

For a 9-parameter validator with an output schema and full annotations, the description covers purpose, timing, alternatives, semantics of the key input, and the diagnostic scope. What it leaves implicit is the minimum viable invocation — notably that no parameters are marked required, so an agent is not told whether dockerfile alone, ports alone, or a combination is needed for a meaningful check.

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 coverage is 44%, so several parameters (cpu_units, memory_mb, docker_tag, docker_image, docker_repository) carry no explanatory text. The description partially compensates: "Pass the Dockerfile text (read it from disk first)" gives operational semantics for the dockerfile string, and the mention of the "latest" tag and "bad CPU/memory ratios" hints at what those numeric/tag fields are judged against. That is useful but not a substitute for documenting the remaining fields.

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?

States a specific verb and paired resources ("Check a game server Dockerfile and the ports/resources you intend to register") against a named target ("what Edgegap requires"), with explicit timing ("BEFORE building and pushing"). It is trivially distinguishable from the sibling that authors Dockerfiles, since it validates rather than generates.

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 an explicit when (before build/push, to catch what would otherwise surface after build/push/version/deploy) and an explicit alternative with its triggering condition: "If there is no Dockerfile yet, call edgegap_generate_dockerfile instead." Nothing about tool selection is left to inference.

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